vendor: 20,470 bytes, lines 1-34
1var INe=Object.defineProperty;var nK=e=>{throw TypeError(e)};var RNe=(e,t,n)=>t in e?INe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nt=(e,t,n)=>RNe(e,typeof t!="symbol"?t+"":t,n),UD=(e,t,n)=>t.has(e)||nK("Cannot "+n);var W=(e,t,n)=>(UD(e,t,"read from private field"),n?n.call(e):t.get(e)),it=(e,t,n)=>t.has(e)?nK("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ie=(e,t,n,r)=>(UD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ct=(e,t,n)=>(UD(e,t,"access private method"),n);var $_=(e,t,n,r)=>({set _(i){Ie(e,t,i,n)},get _(){return W(e,t,r)}});function MNe(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zle(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ule={exports:{}},JI={},Vle={exports:{}},Lt={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its 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 Q1=Symbol.for("react.element"),NNe=Symbol.for("react.portal"),DNe=Symbol.for("react.fragment"),LNe=Symbol.for("react.strict_mode"),$Ne=Symbol.for("react.profiler"),FNe=Symbol.for("react.provider"),BNe=Symbol.for("react.context"),jNe=Symbol.for("react.forward_ref"),zNe=Symbol.for("react.suspense"),UNe=Symbol.for("react.memo"),VNe=Symbol.for("react.lazy"),rK=Symbol.iterator;function WNe(e){return e===null||typeof e!="object"?null:(e=rK&&e[rK]||e["@@iterator"],typeof e=="function"?e:null)}var Wle={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hle=Object.assign,Kle={};function Db(e,t,n){this.props=e,this.context=t,this.refs=Kle,this.updater=n||Wle}Db.prototype.isReactComponent={};Db.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Db.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qle(){}qle.prototype=Db.prototype;function OU(e,t,n){this.props=e,this.context=t,this.refs=Kle,this.updater=n||Wle}var PU=OU.prototype=new qle;PU.constructor=OU;Hle(PU,Db.prototype);PU.isPureReactComponent=!0;var iK=Array.isArray,Gle=Object.prototype.hasOwnProperty,IU={current:null},Yle={key:!0,ref:!0,__self:!0,__source:!0};function Xle(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Gle.call(t,r)&&!Yle.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Q1,type:e,key:o,ref:s,props:i,_owner:IU.current}}function HNe(e,t){return{$$typeof:Q1,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function RU(e){return typeof e=="object"&&e!==null&&e.$$typeof===Q1}function KNe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oK=/\/+/g;function VD(e,t){return typeof e=="object"&&e!==null&&e.key!=null?KNe(""+e.key):t.toString(36)}function HC(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Q1:case NNe:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+VD(s,0):r,iK(i)?(n="",e!=null&&(n=e.replace(oK,"$&/")+"/"),HC(i,t,n,"",function(c){return c})):i!=null&&(RU(i)&&(i=HNe(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(oK,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",iK(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+VD(o,a);s+=HC(o,t,n,l,i)}else if(l=WNe(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+VD(o,a++),s+=HC(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function F_(e,t,n){if(e==null)return e;var r=[],i=0;return HC(e,r,"","",function(o){return t.call(n,o,i++)}),r}function qNe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Yo={current:null},KC={transition:null},GNe={ReactCurrentDispatcher:Yo,ReactCurrentBatchConfig:KC,ReactCurrentOwner:IU};function Zle(){throw Error("act(...) is not supported in production builds of React.")}Lt.Children={map:F_,forEach:function(e,t,n){F_(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F_(e,function(){t++}),t},toArray:function(e){return F_(e,function(t){return t})||[]},only:function(e){if(!RU(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Lt.Component=Db;Lt.Fragment=DNe;Lt.Profiler=$Ne;Lt.PureComponent=OU;Lt.StrictMode=LNe;Lt.Suspense=zNe;Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GNe;Lt.act=Zle;Lt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Hle({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=IU.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Gle.call(t,l)&&!Yle.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Q1,type:e.type,key:i,ref:o,props:r,_owner:s}};Lt.createContext=function(e){return e={$$typeof:BNe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:FNe,_context:e},e.Consumer=e};Lt.createElement=Xle;Lt.createFactory=function(e){var t=Xle.bind(null,e);return t.type=e,t};Lt.createRef=function(){return{current:null}};Lt.forwardRef=function(e){return{$$typeof:jNe,render:e}};Lt.isValidElement=RU;Lt.lazy=function(e){return{$$typeof:VNe,_payload:{_status:-1,_result:e},_init:qNe}};Lt.memo=function(e,t){return{$$typeof:UNe,type:e,compare:t===void 0?null:t}};Lt.startTransition=function(e){var t=KC.transition;KC.transition={};try{e()}finally{KC.transition=t}};Lt.unstable_act=Zle;Lt.useCallback=function(e,t){return Yo.current.useCallback(e,t)};Lt.useContext=function(e){return Yo.current.useContext(e)};Lt.useDebugValue=function(){};Lt.useDeferredValue=function(e){return Yo.current.useDeferredValue(e)};Lt.useEffect=function(e,t){return Yo.current.useEffect(e,t)};Lt.useId=function(){return Yo.current.useId()};Lt.useImperativeHandle=function(e,t,n){return Yo.current.useImperativeHandle(e,t,n)};Lt.useInsertionEffect=function(e,t){return Yo.current.useInsertionEffect(e,t)};Lt.useLayoutEffect=function(e,t){return Yo.current.useLayoutEffect(e,t)};Lt.useMemo=function(e,t){return Yo.current.useMemo(e,t)};Lt.useReducer=function(e,t,n){return Yo.current.useReducer(e,t,n)};Lt.useRef=function(e){return Yo.current.useRef(e)};Lt.useState=function(e){return Yo.current.useState(e)};Lt.useSyncExternalStore=function(e,t,n){return Yo.current.useSyncExternalStore(e,t,n)};Lt.useTransition=function(){return Yo.current.useTransition()};Lt.version="18.3.1";Vle.exports=Lt;var y=Vle.exports;const $=yr(y),Lb=MNe({__proto__:null,default:$},[y]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its 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 YNe=y,XNe=Symbol.for("react.element"),ZNe=Symbol.for("react.fragment"),QNe=Object.prototype.hasOwnProperty,JNe=YNe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eDe={key:!0,ref:!0,__self:!0,__source:!0};function Qle(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)QNe.call(t,r)&&!eDe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:XNe,type:e,key:o,ref:s,props:i,_owner:JNe.current}}JI.Fragment=ZNe;JI.jsx=Qle;JI.jsxs=Qle;Ule.exports=JI;var D=Ule.exports,sK={},Jle={exports:{}},oa={},ece={exports:{}},tce={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its 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 */(function(e){function t(M,L){var P=M.length;M.push(L);e:for(;0<P;){var G=P-1>>>1,Z=M[G];if(0<i(Z,L))M[G]=L,M[P]=Z,P=G;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var L=M[0],P=M.pop();if(P!==L){M[0]=P;e:for(var G=0,Z=M.length,z=Z>>>1;G<z;){var oe=2*(G+1)-1,le=M[oe],se=oe+1,ue=M[se];if(0>i(le,P))se<Z&&0>i(ue,le)?(M[G]=ue,M[se]=P,G=se):(M[G]=le,M[oe]=P,G=oe);else if(se<Z&&0>i(ue,P))M[G]=ue,M[se]=P,G=se;else break e}}return L}function i(M,L){var P=M.sortIndex-L.sortIndex;return P!==0?P:M.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,g=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(M){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=M)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function x(M){if(m=!1,w(M),!p)if(n(l)!==null)p=!0,N(E);else{var L=n(c);L!==null&&B(x,L.startTime-M)}}function E(M,L){p=!1,m&&(m=!1,v(k),k=-1),h=!0;var P=f;try{for(w(L),d=n(l);d!==null&&(!(d.expirationTime>L)||M&&!A());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Z=G(d.expirationTime<=L);L=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),w(L)}else r(l);d=n(l)}if(d!==null)var z=!0;else{var oe=n(c);oe!==null&&B(x,oe.startTime-L),z=!1}return z}finally{d=null,f=P,h=!1}}var S=!1,_=null,k=-1,C=5,T=-1;function A(){return!(e.unstable_now()-T<C)}function O(){if(_!==null){var M=e.unstable_now();T=M;var L=!0;try{L=_(!0,M)}finally{L?R():(S=!1,_=null)}}else S=!1}var R;if(typeof b=="function")R=function(){b(O)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,F=I.port2;I.port1.onmessage=O,R=function(){F.postMessage(null)}}else R=function(){g(O,0)};function N(M){_=M,S||(S=!0,R())}function B(M,L){k=g(function(){M(e.unstable_now())},L)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,N(E))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var P=f;f=L;try{return M()}finally{f=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,L){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var P=f;f=M;try{return L()}finally{f=P}},e.unstable_scheduleCallback=function(M,L,P){var G=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?G+P:G):P=G,M){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=P+Z,M={id:u++,callback:L,priorityLevel:M,startTime:P,expirationTime:Z,sortIndex:-1},P>G?(M.sortIndex=P,t(c,M),n(l)===null&&M===n(c)&&(m?(v(k),k=-1):m=!0,B(x,P-G))):(M.sortIndex=Z,t(l,M),p||h||(p=!0,N(E))),M},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(M){var L=f;return function(){var P=f;f=L;try{return M.apply(this,arguments)}finally{f=P}}}})(tce);ece.exports=tce;var tDe=ece.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var nDe=y,Gs=tDe;function ye(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var nce=new Set,hE={};function fg(e,t){My(e,t),My(e+"Capture",t)}function My(e,t){for(hE[e]=t,e=0;e<t.length;e++)nce.add(t[e])}var fd=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kF=Object.prototype.hasOwnProperty,rDe=/^[: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]*$/,aK={},lK={};function iDe(e){return kF.call(lK,e)?!0:kF.call(aK,e)?!1:rDe.test(e)?lK[e]=!0:(aK[e]=!0,!1)}function oDe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sDe(e,t,n,r){if(t===null||typeof t>"u"||oDe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xo(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var to={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){to[e]=new Xo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];to[t]=new Xo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){to[e]=new Xo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){to[e]=new Xo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){to[e]=new Xo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){to[e]=new Xo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){to[e]=new Xo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){to[e]=new Xo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){to[e]=new Xo(e,5,!1,e.toLowerCase(),null,!1,!1)});var MU=/[\-:]([a-z])/g;function NU(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(MU,NU);to[t]=new Xo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(MU,NU);to[t]=new Xo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(MU,NU);to[t]=new Xo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){to[e]=new Xo(e,1,!1,e.toLowerCase(),null,!1,!1)});to.xlinkHref=new Xo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){to[e]=new Xo(e,1,!1,e.toLowerCase(),null,!0,!0)});function DU(e,t,n,r){var i=to.hasOwnProperty(t)?to[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sDe(t,n,i,r)&&(n=null),r||i===null?iDe(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var kd=nDe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B_=Symbol.for("react.element"),Ev=Symbol.for("react.portal"),Sv=Symbol.for("react.fragment"),LU=Symbol.for("react.strict_mode"),CF=Symbol.for("react.profiler"),rce=Symbol.for("react.provider"),ice=Symbol.for("react.context"),$U=Symbol.for("react.forward_ref"),TF=Symbol.for("react.suspense"),AF=Symbol.for("react.suspense_list"),FU=Symbol.for("react.memo"),nf=Symbol.for("react.lazy"),oce=Symbol.for("react.offscreen"),cK=Symbol.iterator;function $0(e){return e===null||typeof e!="object"?null:(e=cK&&e[cK]||e["@@iterator"],typeof e=="function"?e:null)}var gr=Object.assign,WD;function zw(e){if(WD===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);WD=t&&t[1]||""}return` 34`+WD+e}var HD=!1;function KD(e,t){if(!e||HD)return"";HD=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 16,829 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(` 35`),o=r.stack.split(` 36`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=` 37`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{HD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zw(e):""}function aDe(e){switch(e.tag){case 5:return zw(e.type);case 16:return zw("Lazy");case 13:return zw("Suspense");case 19:return zw("SuspenseList");case 0:case 2:case 15:return e=KD(e.type,!1),e;case 11:return e=KD(e.type.render,!1),e;case 1:return e=KD(e.type,!0),e;default:return""}}function OF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sv:return"Fragment";case Ev:return"Portal";case CF:return"Profiler";case LU:return"StrictMode";case TF:return"Suspense";case AF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ice:return(e.displayName||"Context")+".Consumer";case rce:return(e._context.displayName||"Context")+".Provider";case $U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case FU:return t=e.displayName||null,t!==null?t:OF(e.type)||"Memo";case nf:t=e._payload,e=e._init;try{return OF(e(t))}catch{}}return null}function lDe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return OF(t);case 8:return t===LU?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function uh(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cDe(e){var t=sce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function j_(e){e._valueTracker||(e._valueTracker=cDe(e))}function ace(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sce(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oA(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function PF(e,t){var n=t.checked;return gr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uK(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=uh(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lce(e,t){t=t.checked,t!=null&&DU(e,"checked",t,!1)}function IF(e,t){lce(e,t);var n=uh(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?RF(e,t.type,n):t.hasOwnProperty("defaultValue")&&RF(e,t.type,uh(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dK(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function RF(e,t,n){(t!=="number"||oA(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Uw=Array.isArray;function Hv(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+uh(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function MF(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ye(91));return gr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fK(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ye(92));if(Uw(n)){if(1<n.length)throw Error(ye(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:uh(n)}}function cce(e,t){var n=uh(t.value),r=uh(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function hK(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uce(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function NF(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uce(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var z_,dce=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(z_=z_||document.createElement("div"),z_.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=z_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pE(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yx={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uDe=["Webkit","ms","Moz","O"];Object.keys(yx).forEach(function(e){uDe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yx[t]=yx[e]})});function fce(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yx.hasOwnProperty(e)&&yx[e]?(""+t).trim():t+"px"}function hce(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=fce(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dDe=gr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function DF(e,t){if(t){if(dDe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ye(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ye(62))}}function LF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $F=null;function BU(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var FF=null,Kv=null,qv=null;function pK(e){if(e=tS(e)){if(typeof FF!="function")throw Error(ye(280));var t=e.stateNode;t&&(t=iR(t),FF(e.stateNode,e.type,t))}}function pce(e){Kv?qv?qv.push(e):qv=[e]:Kv=e}function mce(){if(Kv){var e=Kv,t=qv;if(qv=Kv=null,pK(e),t)for(e=0;e<t.length;e++)pK(t[e])}}function gce(e,t){return e(t)}function vce(){}var qD=!1;function yce(e,t,n){if(qD)return e(t,n);qD=!0;try{return gce(e,t,n)}finally{qD=!1,(Kv!==null||qv!==null)&&(vce(),mce())}}function mE(e,t){var n=e.stateNode;if(n===null)return null;var r=iR(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ye(231,t,typeof n));return n}var BF=!1;if(fd)try{var F0={};Object.defineProperty(F0,"passive",{get:function(){BF=!0}}),window.addEventListener("test",F0,F0),window.removeEventListener("test",F0,F0)}catch{BF=!1}function fDe(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var bx=!1,sA=null,aA=!1,jF=null,hDe={onError:function(e){bx=!0,sA=e}};function pDe(e,t,n,r,i,o,s,a,l){bx=!1,sA=null,fDe.apply(hDe,arguments)}function mDe(e,t,n,r,i,o,s,a,l){if(pDe.apply(this,arguments),bx){if(bx){var c=sA;bx=!1,sA=null}else throw Error(ye(198));aA||(aA=!0,jF=c)}}function hg(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function bce(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function mK(e){if(hg(e)!==e)throw Error(ye(188))}function gDe(e){var t=e.alternate;if(!t){if(t=hg(e),t===null)throw Error(ye(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return mK(i),e;if(o===r)return mK(i),t;o=o.sibling}throw Error(ye(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(ye(189))}}if(n.alternate!==r)throw Error(ye(190))}if(n.tag!==3)throw Error(ye(188));return n.stateNode.current===n?e:t}function wce(e){return e=gDe(e),e!==null?xce(e):null}function xce(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xce(e);if(t!==null)return t;e=e.sibling}return null}var Ece=Gs.unstable_scheduleCallback,gK=Gs.unstable_cancelCallback,vDe=Gs.unstable_shouldYield,yDe=Gs.unstable_requestPaint,Lr=Gs.unstable_now,bDe=Gs.unstable_getCurrentPriorityLevel,jU=Gs.unstable_ImmediatePriority,Sce=Gs.unstable_UserBlockingPriority,lA=Gs.unstable_NormalPriority,wDe=Gs.unstable_LowPriority,_ce=Gs.unstable_IdlePriority,eR=null,Dc=null;function xDe(e){if(Dc&&typeof Dc.onCommitFiberRoot=="function")try{Dc.onCommitFiberRoot(eR,e,void 0,(e.current.flags&128)===128)}catch{}}var Tl=Math.clz32?Math.clz32:_De,EDe=Math.log,SDe=Math.LN2;function _De(e){return e>>>=0,e===0?32:31-(EDe(e)/SDe|0)|0}var U_=64,V_=4194304;function Vw(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cA(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Vw(a):(o&=s,o!==0&&(r=Vw(o)))}else s=n&~i,s!==0?r=Vw(s):o!==0&&(r=Vw(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Tl(t),i=1<<n,r|=e[n],t&=~i;return r}function kDe(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function CDe(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Tl(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=kDe(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function zF(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kce(){var e=U_;return U_<<=1,!(U_&4194240)&&(U_=64),e}function GD(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function J1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tl(t),e[t]=n}function TDe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Tl(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function zU(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tl(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var gn=0;function Cce(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Tce,UU,Ace,Oce,Pce,UF=!1,W_=[],Wf=null,Hf=null,Kf=null,gE=new Map,vE=new Map,hf=[],ADe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vK(e,t){switch(e){case"focusin":case"focusout":Wf=null;break;case"dragenter":case"dragleave":Hf=null;break;case"mouseover":case"mouseout":Kf=null;break;case"pointerover":case"pointerout":gE.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vE.delete(t.pointerId)}}function B0(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=tS(t),t!==null&&UU(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ODe(e,t,n,r,i){switch(t){case"focusin":return Wf=B0(Wf,e,t,n,r,i),!0;case"dragenter":return Hf=B0(Hf,e,t,n,r,i),!0;case"mouseover":return Kf=B0(Kf,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return gE.set(o,B0(gE.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,vE.set(o,B0(vE.get(o)||null,e,t,n,r,i)),!0}return!1}function Ice(e){var t=Lp(e.target);if(t!==null){var n=hg(t);if(n!==null){if(t=n.tag,t===13){if(t=bce(n),t!==null){e.blockedOn=t,Pce(e.priority,function(){Ace(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qC(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=VF(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$F=r,n.target.dispatchEvent(r),$F=null}else return t=tS(n),t!==null&&UU(t),e.blockedOn=n,!1;t.shift()}return!0}function yK(e,t,n){qC(e)&&n.delete(t)}function PDe(){UF=!1,Wf!==null&&qC(Wf)&&(Wf=null),Hf!==null&&qC(Hf)&&(Hf=null),Kf!==null&&qC(Kf)&&(Kf=null),gE.forEac
vendor: 9,375 bytes, line 37
37h(yK),vE.forEach(yK)}function j0(e,t){e.blockedOn===t&&(e.blockedOn=null,UF||(UF=!0,Gs.unstable_scheduleCallback(Gs.unstable_NormalPriority,PDe)))}function yE(e){function t(i){return j0(i,e)}if(0<W_.length){j0(W_[0],e);for(var n=1;n<W_.length;n++){var r=W_[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Wf!==null&&j0(Wf,e),Hf!==null&&j0(Hf,e),Kf!==null&&j0(Kf,e),gE.forEach(t),vE.forEach(t),n=0;n<hf.length;n++)r=hf[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<hf.length&&(n=hf[0],n.blockedOn===null);)Ice(n),n.blockedOn===null&&hf.shift()}var Gv=kd.ReactCurrentBatchConfig,uA=!0;function IDe(e,t,n,r){var i=gn,o=Gv.transition;Gv.transition=null;try{gn=1,VU(e,t,n,r)}finally{gn=i,Gv.transition=o}}function RDe(e,t,n,r){var i=gn,o=Gv.transition;Gv.transition=null;try{gn=4,VU(e,t,n,r)}finally{gn=i,Gv.transition=o}}function VU(e,t,n,r){if(uA){var i=VF(e,t,n,r);if(i===null)i2(e,t,r,dA,n),vK(e,r);else if(ODe(i,e,t,n,r))r.stopPropagation();else if(vK(e,r),t&4&&-1<ADe.indexOf(e)){for(;i!==null;){var o=tS(i);if(o!==null&&Tce(o),o=VF(e,t,n,r),o===null&&i2(e,t,r,dA,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else i2(e,t,r,null,n)}}var dA=null;function VF(e,t,n,r){if(dA=null,e=BU(r),e=Lp(e),e!==null)if(t=hg(e),t===null)e=null;else if(n=t.tag,n===13){if(e=bce(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return dA=e,null}function Rce(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bDe()){case jU:return 1;case Sce:return 4;case lA:case wDe:return 16;case _ce:return 536870912;default:return 16}default:return 16}}var Af=null,WU=null,GC=null;function Mce(){if(GC)return GC;var e,t=WU,n=t.length,r,i="value"in Af?Af.value:Af.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return GC=i.slice(e,1<r?1-r:void 0)}function YC(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function H_(){return!0}function bK(){return!1}function sa(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?H_:bK,this.isPropagationStopped=bK,this}return gr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=H_)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=H_)},persist:function(){},isPersistent:H_}),t}var $b={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},HU=sa($b),eS=gr({},$b,{view:0,detail:0}),MDe=sa(eS),YD,XD,z0,tR=gr({},eS,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:KU,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==z0&&(z0&&e.type==="mousemove"?(YD=e.screenX-z0.screenX,XD=e.screenY-z0.screenY):XD=YD=0,z0=e),YD)},movementY:function(e){return"movementY"in e?e.movementY:XD}}),wK=sa(tR),NDe=gr({},tR,{dataTransfer:0}),DDe=sa(NDe),LDe=gr({},eS,{relatedTarget:0}),ZD=sa(LDe),$De=gr({},$b,{animationName:0,elapsedTime:0,pseudoElement:0}),FDe=sa($De),BDe=gr({},$b,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jDe=sa(BDe),zDe=gr({},$b,{data:0}),xK=sa(zDe),UDe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VDe={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"},WDe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function HDe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WDe[e])?!!t[e]:!1}function KU(){return HDe}var KDe=gr({},eS,{key:function(e){if(e.key){var t=UDe[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=YC(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VDe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:KU,charCode:function(e){return e.type==="keypress"?YC(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?YC(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qDe=sa(KDe),GDe=gr({},tR,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EK=sa(GDe),YDe=gr({},eS,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:KU}),XDe=sa(YDe),ZDe=gr({},$b,{propertyName:0,elapsedTime:0,pseudoElement:0}),QDe=sa(ZDe),JDe=gr({},tR,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),e2e=sa(JDe),t2e=[9,13,27,32],qU=fd&&"CompositionEvent"in window,wx=null;fd&&"documentMode"in document&&(wx=document.documentMode);var n2e=fd&&"TextEvent"in window&&!wx,Nce=fd&&(!qU||wx&&8<wx&&11>=wx),SK=" ",_K=!1;function Dce(e,t){switch(e){case"keyup":return t2e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lce(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _v=!1;function r2e(e,t){switch(e){case"compositionend":return Lce(t);case"keypress":return t.which!==32?null:(_K=!0,SK);case"textInput":return e=t.data,e===SK&&_K?null:e;default:return null}}function i2e(e,t){if(_v)return e==="compositionend"||!qU&&Dce(e,t)?(e=Mce(),GC=WU=Af=null,_v=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nce&&t.locale!=="ko"?null:t.data;default:return null}}var o2e={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 kK(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o2e[e.type]:t==="textarea"}function $ce(e,t,n,r){pce(r),t=fA(t,"onChange"),0<t.length&&(n=new HU("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var xx=null,bE=null;function s2e(e){Gce(e,0)}function nR(e){var t=Tv(e);if(ace(t))return e}function a2e(e,t){if(e==="change")return t}var Fce=!1;if(fd){var QD;if(fd){var JD="oninput"in document;if(!JD){var CK=document.createElement("div");CK.setAttribute("oninput","return;"),JD=typeof CK.oninput=="function"}QD=JD}else QD=!1;Fce=QD&&(!document.documentMode||9<document.documentMode)}function TK(){xx&&(xx.detachEvent("onpropertychange",Bce),bE=xx=null)}function Bce(e){if(e.propertyName==="value"&&nR(bE)){var t=[];$ce(t,bE,e,BU(e)),yce(s2e,t)}}function l2e(e,t,n){e==="focusin"?(TK(),xx=t,bE=n,xx.attachEvent("onpropertychange",Bce)):e==="focusout"&&TK()}function c2e(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nR(bE)}function u2e(e,t){if(e==="click")return nR(t)}function d2e(e,t){if(e==="input"||e==="change")return nR(t)}function f2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Il=typeof Object.is=="function"?Object.is:f2e;function wE(e,t){if(Il(e,t))return!0;
vendor: 4,832 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!kF.call(t,i)||!Il(e[i],t[i]))return!1}return!0}function AK(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function OK(e,t){var n=AK(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=AK(n)}}function jce(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jce(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zce(){for(var e=window,t=oA();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oA(e.document)}return t}function GU(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function h2e(e){var t=zce(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jce(n.ownerDocument.documentElement,n)){if(r!==null&&GU(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=OK(n,o);var s=OK(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var p2e=fd&&"documentMode"in document&&11>=document.documentMode,kv=null,WF=null,Ex=null,HF=!1;function PK(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;HF||kv==null||kv!==oA(r)||(r=kv,"selectionStart"in r&&GU(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ex&&wE(Ex,r)||(Ex=r,r=fA(WF,"onSelect"),0<r.length&&(t=new HU("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=kv)))}function K_(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cv={animationend:K_("Animation","AnimationEnd"),animationiteration:K_("Animation","AnimationIteration"),animationstart:K_("Animation","AnimationStart"),transitionend:K_("Transition","TransitionEnd")},e2={},Uce={};fd&&(Uce=document.createElement("div").style,"AnimationEvent"in window||(delete Cv.animationend.animation,delete Cv.animationiteration.animation,delete Cv.animationstart.animation),"TransitionEvent"in window||delete Cv.transitionend.transition);function rR(e){if(e2[e])return e2[e];if(!Cv[e])return e;var t=Cv[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Uce)return e2[e]=t[n];return e}var Vce=rR("animationend"),Wce=rR("animationiteration"),Hce=rR("animationstart"),Kce=rR("transitionend"),qce=new Map,IK="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ih(e,t){qce.set(e,t),fg(t,[e])}for(var t2=0;t2<IK.length;t2++){var n2=IK[t2],m2e=n2.toLowerCase(),g2e=n2[0].toUpperCase()+n2.slice(1);Ih(m2e,"on"+g2e)}Ih(Vce,"onAnimationEnd");Ih(Wce,"onAnimationIteration");Ih(Hce,"onAnimationStart");Ih("dblclick","onDoubleClick");Ih("focusin","onFocus");Ih("focusout","onBlur");Ih(Kce,"onTransitionEnd");My("onMouseEnter",["mouseout","mouseover"]);My("onMouseLeave",["mouseout","mouseover"]);My("onPointerEnter",["pointerout","pointerover"]);My("onPointerLeave",["pointerout","pointerover"]);fg("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,451 bytes, line 37
37fg("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fg("onBeforeInput",["compositionend","keypress","textInput","paste"]);fg("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fg("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fg("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ww="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(" "),v2e=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ww));function RK(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mDe(r,t,void 0,e),e.currentTarget=null}function Gce(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;RK(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;RK(i,a,c),o=l}}}if(aA)throw e=jF,aA=!1,jF=null,e}function Un(e,t){var n=t[XF];n===void 0&&(n=t[XF]=new Set);var r=e+"__bubble";n.has(r)||(Yce(t,e,2,!1),n.add(r))}function r2(e,t,n){var r=0;t&&(r|=4),Yce(n,e,r,t)}var q_="_reactListening"+Math.random().toString(36).slice(2);function xE(e){if(!e[q_]){e[q_]=!0,nce.forEach(function(n){n!=="selectionchange"&&(v2e.has(n)||r2(n,!1,e),r2(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[q_]||(t[q_]=!0,r2("selectionchange",!1,t))}}function Yce(e,t,n,r){switch(Rce(t)){case 1:var i=IDe;break;case 4:i=RDe;break;default:i=VU}n=i.bind(null,t,n,e),i=void 0,!BF||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function i2(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Lp(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}yce(function(){var c=o,u=BU(n),d=[];e:{var f=qce.get(e);if(f!==void 0){var h=HU,p=e;switch(e){case"keypress":if(YC(n)===0)break e;case"keydown":case"keyup":h=qDe;break;case"focusin":p="focus",h=ZD;break;case"focusout":p="blur",h=ZD;break;case"beforeblur":case"afterblur":h=ZD;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=wK;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=DDe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=XDe;break;case Vce:case Wce:case Hce:h=FDe;break;case Kce:h=QDe;break;case"scroll":h=MDe;break;case"wheel":h=e2e;break;case"copy":case"cut":case"paste":h=jDe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=EK}var m=(t&4)!==0,g=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var b=c,w;b!==null;){w=b;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,v!==null&&(x=mE(b,v),x!=null&&m.push(EE(b,x,w)))),g)break;b=b.return}0<m.length&&(f=new h(f,p,null,n,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==$F&&(p=n.relatedTarget||n.fromElement)&&(Lp(p)||p[hd]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=c,p=p?Lp(p):null,p!==null&&(g=hg(p),p!==g||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=c),h!==p)){if(m=wK,x="onMouseLeave",v="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=EK,x="onPointerLeave",v="onPointerEnter",b="pointer"),g=h==null?f:Tv(h),w=p==null?f:Tv(p),f=new m(x,b+"leave",h,n,u),f.target=g,f.relatedTarget=w,x=null,
vendor: 4,807 bytes, lines 37-38
37Lp(u)===c&&(m=new m(v,b+"enter",p,n,u),m.target=w,m.relatedTarget=g,x=m),g=x,h&&p)t:{for(m=h,v=p,b=0,w=m;w;w=Fg(w))b++;for(w=0,x=v;x;x=Fg(x))w++;for(;0<b-w;)m=Fg(m),b--;for(;0<w-b;)v=Fg(v),w--;for(;b--;){if(m===v||v!==null&&m===v.alternate)break t;m=Fg(m),v=Fg(v)}m=null}else m=null;h!==null&&MK(d,f,h,m,!1),p!==null&&g!==null&&MK(d,g,p,m,!0)}}e:{if(f=c?Tv(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var E=a2e;else if(kK(f))if(Fce)E=d2e;else{E=c2e;var S=l2e}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=u2e);if(E&&(E=E(e,c))){$ce(d,E,n,u);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&RF(f,"number",f.value)}switch(S=c?Tv(c):window,e){case"focusin":(kK(S)||S.contentEditable==="true")&&(kv=S,WF=c,Ex=null);break;case"focusout":Ex=WF=kv=null;break;case"mousedown":HF=!0;break;case"contextmenu":case"mouseup":case"dragend":HF=!1,PK(d,n,u);break;case"selectionchange":if(p2e)break;case"keydown":case"keyup":PK(d,n,u)}var _;if(qU)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else _v?Dce(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Nce&&n.locale!=="ko"&&(_v||k!=="onCompositionStart"?k==="onCompositionEnd"&&_v&&(_=Mce()):(Af=u,WU="value"in Af?Af.value:Af.textContent,_v=!0)),S=fA(c,k),0<S.length&&(k=new xK(k,e,null,n,u),d.push({event:k,listeners:S}),_?k.data=_:(_=Lce(n),_!==null&&(k.data=_)))),(_=n2e?r2e(e,n):i2e(e,n))&&(c=fA(c,"onBeforeInput"),0<c.length&&(u=new xK("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=_))}Gce(d,t)})}function EE(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fA(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=mE(e,n),o!=null&&r.unshift(EE(e,o,i)),o=mE(e,t),o!=null&&r.push(EE(e,o,i))),e=e.return}return r}function Fg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function MK(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=mE(n,o),l!=null&&s.unshift(EE(n,l,a))):i||(l=mE(n,o),l!=null&&s.push(EE(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var y2e=/\r\n?/g,b2e=/\u0000|\uFFFD/g;function NK(e){return(typeof e=="string"?e:""+e).replace(y2e,` 38`).replace(b2e,"")}function G_(e,t,n){if(t=NK(t),NK(e)!==t&&n)throw Error(ye(425))}function hA(){}var KF=null,qF=null;function GF(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var YF=typeof setTimeout=="function"?setTimeout:void 0,w2e=typeof clearTimeout=="function"?clearTimeout:void 0,DK=typeof Promise=="function"?Promise:void 0,x2e=typeof queueMicrotask=="function"?queueMicrotask:typeof DK<"u"?function(e){return DK.resolve(null).then(e).catch(E2e)}:YF;function E2e(e){setTimeout(function(){throw e})}function o2(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),yE(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);yE(t)}function qf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function LK(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Fb=Math.random().toString(36).slice(2),Sc="__reactFiber$"+Fb,SE="__reactProps$"+Fb,hd="__reactContainer$"+Fb,XF="__reactEvents$"+Fb,S2e="__reactListeners$"+Fb,_2e="__reactHandles$"+Fb;function Lp(e){var t=e[Sc];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hd]||n[Sc]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=LK(e);e!==null;){if(n=e[Sc])return n;e=LK(e)}return t}e=n,n=e.parentNode}return null}function tS(e){return e=e[Sc]||e[hd],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tv(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ye(33))}function iR(e){return e[SE]||null}var ZF=[],Av=-1;function Rh(e){return{current:e}}function Yn(e){0>Av||(e.current=ZF[Av],ZF[Av]=null,Av--)}function Dn(e,t){Av++,ZF[Av]=e.current,e.current=t}var dh={},bo=Rh(dh),ps=Rh(!1),Cm=dh;function Ny(e,t){var n=e.type.contextTypes;if(!n)return dh;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;
vendor: 4,442 bytes, line 38
38for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ms(e){return e=e.childContextTypes,e!=null}function pA(){Yn(ps),Yn(bo)}function $K(e,t,n){if(bo.current!==dh)throw Error(ye(168));Dn(bo,t),Dn(ps,n)}function Xce(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ye(108,lDe(e)||"Unknown",i));return gr({},n,r)}function mA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dh,Cm=bo.current,Dn(bo,e),Dn(ps,ps.current),!0}function FK(e,t,n){var r=e.stateNode;if(!r)throw Error(ye(169));n?(e=Xce(e,t,Cm),r.__reactInternalMemoizedMergedChildContext=e,Yn(ps),Yn(bo),Dn(bo,e)):Yn(ps),Dn(ps,n)}var Lu=null,oR=!1,s2=!1;function Zce(e){Lu===null?Lu=[e]:Lu.push(e)}function k2e(e){oR=!0,Zce(e)}function Mh(){if(!s2&&Lu!==null){s2=!0;var e=0,t=gn;try{var n=Lu;for(gn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Lu=null,oR=!1}catch(i){throw Lu!==null&&(Lu=Lu.slice(e+1)),Ece(jU,Mh),i}finally{gn=t,s2=!1}}return null}var Ov=[],Pv=0,gA=null,vA=0,Sa=[],_a=0,Tm=null,qu=1,Gu="";function wp(e,t){Ov[Pv++]=vA,Ov[Pv++]=gA,gA=e,vA=t}function Qce(e,t,n){Sa[_a++]=qu,Sa[_a++]=Gu,Sa[_a++]=Tm,Tm=e;var r=qu;e=Gu;var i=32-Tl(r)-1;r&=~(1<<i),n+=1;var o=32-Tl(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,qu=1<<32-Tl(t)+i|n<<i|r,Gu=o+e}else qu=1<<o|n<<i|r,Gu=e}function YU(e){e.return!==null&&(wp(e,1),Qce(e,1,0))}function XU(e){for(;e===gA;)gA=Ov[--Pv],Ov[Pv]=null,vA=Ov[--Pv],Ov[Pv]=null;for(;e===Tm;)Tm=Sa[--_a],Sa[_a]=null,Gu=Sa[--_a],Sa[_a]=null,qu=Sa[--_a],Sa[_a]=null}var zs=null,Ls=null,ar=!1,dl=null;function Jce(e,t){var n=Aa(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function BK(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,zs=e,Ls=qf(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zs=e,Ls=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tm!==null?{id:qu,overflow:Gu}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Aa(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,zs=e,Ls=null,!0):!1;default:return!1}}function QF(e){return(e.mode&1)!==0&&(e.flags&128)===0}function JF(e){if(ar){var t=Ls;if(t){var n=t;if(!BK(e,t)){if(QF(e))throw Error(ye(418));t=qf(n.nextSibling);var r=zs;t&&BK(e,t)?Jce(r,n):(e.flags=e.flags&-4097|2,ar=!1,zs=e)}}else{if(QF(e))throw Error(ye(418));e.flags=e.flags&-4097|2,ar=!1,zs=e}}}function jK(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zs=e}function Y_(e){if(e!==zs)return!1;if(!ar)return jK(e),ar=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!GF(e.type,e.memoizedProps)),t&&(t=Ls)){if(QF(e))throw eue(),Error(ye(418));for(;t;)Jce(e,t),t=qf(t.nextSibling)}if(jK(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ls=qf(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ls=null}}else Ls=zs?qf(e.stateNode.nextSibling):null;return!0}function eue(){for(var e=Ls;e;)e=qf(e.nextSibling)}function Dy(){Ls=zs=null,ar=!1}function ZU(e){dl===null?dl=[e]:dl.push(e)}var C2e=kd.ReactCurrentBatchConfig;function U0(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ye(309));var r=n.stateNode}if(!r)throw Error(ye(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(ye(284));if(!n._owner)throw Error(ye(290,e))}return e}function X_(e,t){throw e=Object.prototype.toString.call(t),Error(ye(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zK(e){var t=e._init;return t(e._payload)}function tue(e){function t(v,b){if(e){var w=v.deletions;w===null?(v.deletions=[b],v.flags|=16):w.push(b)}}function n(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function r(v,b){for(v=new Map;b!==null;
vendor: 4,695 bytes, line 38
38)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function i(v,b){return v=Zf(v,b),v.index=0,v.sibling=null,v}function o(v,b,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<b?(v.flags|=2,b):w):(v.flags|=2,b)):(v.flags|=1048576,b)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,b,w,x){return b===null||b.tag!==6?(b=h2(w,v.mode,x),b.return=v,b):(b=i(b,w),b.return=v,b)}function l(v,b,w,x){var E=w.type;return E===Sv?u(v,b,w.props.children,x,w.key):b!==null&&(b.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===nf&&zK(E)===b.type)?(x=i(b,w.props),x.ref=U0(v,b,w),x.return=v,x):(x=nT(w.type,w.key,w.props,null,v.mode,x),x.ref=U0(v,b,w),x.return=v,x)}function c(v,b,w,x){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=p2(w,v.mode,x),b.return=v,b):(b=i(b,w.children||[]),b.return=v,b)}function u(v,b,w,x,E){return b===null||b.tag!==7?(b=cm(w,v.mode,x,E),b.return=v,b):(b=i(b,w),b.return=v,b)}function d(v,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=h2(""+b,v.mode,w),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case B_:return w=nT(b.type,b.key,b.props,null,v.mode,w),w.ref=U0(v,null,b),w.return=v,w;case Ev:return b=p2(b,v.mode,w),b.return=v,b;case nf:var x=b._init;return d(v,x(b._payload),w)}if(Uw(b)||$0(b))return b=cm(b,v.mode,w,null),b.return=v,b;X_(v,b)}return null}function f(v,b,w,x){var E=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(v,b,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case B_:return w.key===E?l(v,b,w,x):null;case Ev:return w.key===E?c(v,b,w,x):null;case nf:return E=w._init,f(v,b,E(w._payload),x)}if(Uw(w)||$0(w))return E!==null?null:u(v,b,w,x,null);X_(v,w)}return null}function h(v,b,w,x,E){if(typeof x=="string"&&x!==""||typeof x=="number")return v=v.get(w)||null,a(b,v,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case B_:return v=v.get(x.key===null?w:x.key)||null,l(b,v,x,E);case Ev:return v=v.get(x.key===null?w:x.key)||null,c(b,v,x,E);case nf:var S=x._init;return h(v,b,w,S(x._payload),E)}if(Uw(x)||$0(x))return v=v.get(w)||null,u(b,v,x,E,null);X_(b,x)}return null}function p(v,b,w,x){for(var E=null,S=null,_=b,k=b=0,C=null;_!==null&&k<w.length;k++){_.index>k?(C=_,_=null):C=_.sibling;var T=f(v,_,w[k],x);if(T===null){_===null&&(_=C);break}e&&_&&T.alternate===null&&t(v,_),b=o(T,b,k),S===null?E=T:S.sibling=T,S=T,_=C}if(k===w.length)return n(v,_),ar&&wp(v,k),E;if(_===null){for(;k<w.length;k++)_=d(v,w[k],x),_!==null&&(b=o(_,b,k),S===null?E=_:S.sibling=_,S=_);return ar&&wp(v,k),E}for(_=r(v,_);k<w.length;k++)C=h(_,v,k,w[k],x),C!==null&&(e&&C.alternate!==null&&_.delete(C.key===null?k:C.key),b=o(C,b,k),S===null?E=C:S.sibling=C,S=C);return e&&_.forEach(function(A){return t(v,A)}),ar&&wp(v,k),E}function m(v,b,w,x){var E=$0(w);if(typeof E!="function")throw Error(ye(150));if(w=E.call(w),w==null)throw Error(ye(151));for(var S=E=null,_=b,k=b=0,C=null,T=w.next();_!==null&&!T.done;k++,T=w.next()){_.index>k?(C=_,_=null):C=_.sibling;var A=f(v,_,T.value,x);if(A===null){_===null&&(_=C);break}e&&_&&A.alternate===null&&t(v,_),b=o(A,b,k),S===null?E=A:S.sibling=A,S=A,_=C}if(T.done)return n(v,_),ar&&wp(v,k),E;if(_===null){for(;!T.done;k++,T=w.next())T=d(v,T.value,x),T!==null&&(b=o(T,b,k),S===null?E=T:S.sibling=T,S=T);return ar&&wp(v,k),E}for(_=r(v,_);!T.done;k++,T=w.next())T=h(_,v,k,T.value,x),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?k:T.key),b=o(T,b,k),S===null?E=T:S.sibling=T,S=T);return e&&_.forEach(function(O){return t(v,O)}),ar&&wp(v,k),E}function g(v,b,w,x){if(typeof w=="object"&&w!==null&&w.type===Sv&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case B_:e:{for(var E=w.key,S=b;S!==null;){if(S.key===E){if(E=w.type,E===Sv){if(S.tag===7){n(v,S.sibling),b=i(S,w.props.children),b.return=v,v=b;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===nf&&zK(E)===S.type){n(v,S.sibling),b=i(S,w.props),b.ref=U0(v,S,w),b.return=v,v=b;break e}n(v,S);break}else t(v,S);S=S.sibling}w.type===Sv?(b=cm(w.props.children,v.mode,x,w.key),b.return=v,v=b):(x=nT(w.type,w.key,w.props,null,v.mode,x),x.ref=U0(v,b,w),x.return=v,v=x)}return s(v);case Ev:e:{for(S=w.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(v,b.sibling),b=i(b,w.children||[]),b.return=v,v=b;break e}else{n(v,b);break}else t(v,b);b=b.sibling}b=p2(w,v.mode,x),b.return=v,v=b}return s(v);case nf:return S=w._init,g(v,b,S(w._payload),x)}if(Uw(w))return p(v,b,w,x);if($0(w))return m(v,b,w,x);
vendor: 19,772 bytes, lines 38-40
38X_(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(v,b.sibling),b=i(b,w),b.return=v,v=b):(n(v,b),b=h2(w,v.mode,x),b.return=v,v=b),s(v)):n(v,b)}return g}var Ly=tue(!0),nue=tue(!1),yA=Rh(null),bA=null,Iv=null,QU=null;function JU(){QU=Iv=bA=null}function e5(e){var t=yA.current;Yn(yA),e._currentValue=t}function eB(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yv(e,t){bA=e,QU=Iv=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ls=!0),e.firstContext=null)}function za(e){var t=e._currentValue;if(QU!==e)if(e={context:e,memoizedValue:t,next:null},Iv===null){if(bA===null)throw Error(ye(308));Iv=e,bA.dependencies={lanes:0,firstContext:e}}else Iv=Iv.next=e;return t}var $p=null;function t5(e){$p===null?$p=[e]:$p.push(e)}function rue(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,t5(t)):(n.next=i.next,i.next=n),t.interleaved=n,pd(e,r)}function pd(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rf=!1;function n5(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iue(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function id(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gf(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,qt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pd(e,n)}return i=r.interleaved,i===null?(t.next=t,t5(r)):(t.next=i.next,i.next=t),r.interleaved=t,pd(e,n)}function XC(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zU(e,n)}}function UK(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wA(e,t,n,r){var i=e.updateQueue;rf=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,u=c=l=null,a=o;do{var f=a.lane,h=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(f=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=gr({},d,f);break e;case 2:rf=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Om|=s,e.lanes=s,e.memoizedState=d}}function VK(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ye(191,i));i.call(r)}}}var nS={},Lc=Rh(nS),_E=Rh(nS),kE=Rh(nS);function Fp(e){if(e===nS)throw Error(ye(174));return e}function r5(e,t){switch(Dn(kE,t),Dn(_E,e),Dn(Lc,nS),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:NF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=NF(t,e)}Yn(Lc),Dn(Lc,t)}function $y(){Yn(Lc),Yn(_E),Yn(kE)}function oue(e){Fp(kE.current);var t=Fp(Lc.current),n=NF(t,e.type);t!==n&&(Dn(_E,e),Dn(Lc,n))}function i5(e){_E.current===e&&(Yn(Lc),Yn(_E))}var hr=Rh(0);function xA(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var a2=[];function o5(){for(var e=0;e<a2.length;e++)a2[e]._workInProgressVersionPrimary=null;a2.length=0}var ZC=kd.ReactCurrentDispatcher,l2=kd.ReactCurrentBatchConfig,Am=0,mr=null,li=null,Si=null,EA=!1,Sx=!1,CE=0,T2e=0;function io(){throw Error(ye(321))}function s5(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Il(e[n],t[n]))return!1;return!0}function a5(e,t,n,r,i,o){if(Am=o,mr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ZC.current=e===null||e.memoizedState===null?I2e:R2e,e=n(r,i),Sx){o=0;do{if(Sx=!1,CE=0,25<=o)throw Error(ye(301));o+=1,Si=li=null,t.updateQueue=null,ZC.current=M2e,e=n(r,i)}while(Sx)}if(ZC.current=SA,t=li!==null&&li.next!==null,Am=0,Si=li=mr=null,EA=!1,t)throw Error(ye(300));return e}function l5(){var e=CE!==0;return CE=0,e}function ac(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Si===null?mr.memoizedState=Si=e:Si=Si.next=e,Si}function Ua(){if(li===null){var e=mr.alternate;e=e!==null?e.memoizedState:null}else e=li.next;var t=Si===null?mr.memoizedState:Si.next;if(t!==null)Si=t,li=e;else{if(e===null)throw Error(ye(310));li=e,e={memoizedState:li.memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},Si===null?mr.memoizedState=Si=e:Si=Si.next=e}return Si}function TE(e,t){return typeof t=="function"?t(e):t}function c2(e){var t=Ua(),n=t.queue;if(n===null)throw Error(ye(311));n.lastRenderedReducer=e;var r=li,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var u=c.lane;if((Am&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,mr.lanes|=u,Om|=u}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Il(r,t.memoizedState)||(ls=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,mr.lanes|=o,Om|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function u2(e){var t=Ua(),n=t.queue;if(n===null)throw Error(ye(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Il(o,t.memoizedState)||(ls=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sue(){}function aue(e,t){var n=mr,r=Ua(),i=t(),o=!Il(r.memoizedState,i);if(o&&(r.memoizedState=i,ls=!0),r=r.queue,c5(uue.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Si!==null&&Si.memoizedState.tag&1){if(n.flags|=2048,AE(9,cue.bind(null,n,r,i,t),void 0,null),Oi===null)throw Error(ye(349));Am&30||lue(n,t,i)}return i}function lue(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mr.updateQueue,t===null?(t={lastEffect:null,stores:null},mr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cue(e,t,n,r){t.value=n,t.getSnapshot=r,due(t)&&fue(e)}function uue(e,t,n){return n(function(){due(t)&&fue(e)})}function due(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Il(e,n)}catch{return!0}}function fue(e){var t=pd(e,1);t!==null&&Al(t,e,1,-1)}function WK(e){var t=ac();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:TE,lastRenderedState:e},t.queue=e,e=e.dispatch=P2e.bind(null,mr,e),[t.memoizedState,e]}function AE(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mr.updateQueue,t===null?(t={lastEffect:null,stores:null},mr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function hue(){return Ua().memoizedState}function QC(e,t,n,r){var i=ac();mr.flags|=e,i.memoizedState=AE(1|t,n,void 0,r===void 0?null:r)}function sR(e,t,n,r){var i=Ua();r=r===void 0?null:r;var o=void 0;if(li!==null){var s=li.memoizedState;if(o=s.destroy,r!==null&&s5(r,s.deps)){i.memoizedState=AE(t,n,o,r);return}}mr.flags|=e,i.memoizedState=AE(1|t,n,o,r)}function HK(e,t){return QC(8390656,8,e,t)}function c5(e,t){return sR(2048,8,e,t)}function pue(e,t){return sR(4,2,e,t)}function mue(e,t){return sR(4,4,e,t)}function gue(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vue(e,t,n){return n=n!=null?n.concat([e]):null,sR(4,4,gue.bind(null,t,e),n)}function u5(){}function yue(e,t){var n=Ua();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&s5(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bue(e,t){var n=Ua();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&s5(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wue(e,t,n){return Am&21?(Il(n,t)||(n=kce(),mr.lanes|=n,Om|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ls=!0),e.memoizedState=n)}function A2e(e,t){var n=gn;gn=n!==0&&4>n?n:4,e(!0);var r=l2.transition;l2.transition={};try{e(!1),t()}finally{gn=n,l2.transition=r}}function xue(){return Ua().memoizedState}function O2e(e,t,n){var r=Xf(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eue(e))Sue(t,n);else if(n=rue(e,t,n,r),n!==null){var i=jo();Al(n,e,r,i),_ue(n,t,r)}}function P2e(e,t,n){var r=Xf(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eue(e))Sue(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Il(a,s)){var l=t.interleaved;l===null?(i.next=i,t5(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=rue(e,t,i,r),n!==null&&(i=jo(),Al(n,e,r,i),_ue(n,t,r))}}function Eue(e){var t=e.alternate;return e===mr||t!==null&&t===mr}function Sue(e,t){Sx=EA=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _ue(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zU(e,n)}}var SA={readContext:za,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},I2e={readContext:za,useCallback:function(e,t){return ac().memoizedState=[e,t===void 0?null:t],e},useContext:za,useEffect:HK,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,QC(4194308,4,gue.bind(null,t,e),n)},useLayoutEffect:function(e,t){return QC(4194308,4,e,t)},useInsertionEffect:function(e,t){return QC(4,2,e,t)},useMemo:function(e,t){var n=ac();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ac();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=O2e.bind(null,mr,e),[r.memoizedState,e]},useRef:function(e){var t=ac();return e={current:e},t.memoizedState=e},useState:WK,useDebugValue:u5,useDeferredValue:function(e){return ac().memoizedState=e},useTransition:function(){var e=WK(!1),t=e[0];return e=A2e.bind(null,e[1]),ac().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mr,i=ac();if(ar){if(n===void 0)throw Error(ye(407));n=n()}else{if(n=t(),Oi===null)throw Error(ye(349));Am&30||lue(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,HK(uue.bind(null,r,o,e),[e]),r.flags|=2048,AE(9,cue.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ac(),t=Oi.identifierPrefix;if(ar){var n=Gu,r=qu;n=(r&~(1<<32-Tl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=CE++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=T2e++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},R2e={readContext:za,useCallback:yue,useContext:za,useEffect:c5,useImperativeHandle:vue,useInsertionEffect:pue,useLayoutEffect:mue,useMemo:bue,useReducer:c2,useRef:hue,useState:function(){return c2(TE)},useDebugValue:u5,useDeferredValue:function(e){var t=Ua();return wue(t,li.memoizedState,e)},useTransition:function(){var e=c2(TE)[0],t=Ua().memoizedState;return[e,t]},useMutableSource:sue,useSyncExternalStore:aue,useId:xue,unstable_isNewReconciler:!1},M2e={readContext:za,useCallback:yue,useContext:za,useEffect:c5,useImperativeHandle:vue,useInsertionEffect:pue,useLayoutEffect:mue,useMemo:bue,useReducer:u2,useRef:hue,useState:function(){return u2(TE)},useDebugValue:u5,useDeferredValue:function(e){var t=Ua();return li===null?t.memoizedState=e:wue(t,li.memoizedState,e)},useTransition:function(){var e=u2(TE)[0],t=Ua().memoizedState;return[e,t]},useMutableSource:sue,useSyncExternalStore:aue,useId:xue,unstable_isNewReconciler:!1};function al(e,t){if(e&&e.defaultProps){t=gr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tB(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var aR={isMounted:function(e){return(e=e._reactInternals)?hg(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jo(),i=Xf(e),o=id(r,i);o.payload=t,n!=null&&(o.callback=n),t=Gf(e,o,i),t!==null&&(Al(t,e,i,r),XC(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jo(),i=Xf(e),o=id(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Gf(e,o,i),t!==null&&(Al(t,e,i,r),XC(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jo(),r=Xf(e),i=id(n,r);i.tag=2,t!=null&&(i.callback=t),t=Gf(e,i,r),t!==null&&(Al(t,e,r,n),XC(t,e,r))}};function KK(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!wE(n,r)||!wE(i,o):!0}function kue(e,t,n){var r=!1,i=dh,o=t.contextType;return typeof o=="object"&&o!==null?o=za(o):(i=ms(t)?Cm:bo.current,r=t.contextTypes,o=(r=r!=null)?Ny(e,i):dh),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=aR,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qK(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&aR.enqueueReplaceState(t,t.state,null)}function nB(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},n5(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=za(o):(o=ms(t)?Cm:bo.current,i.context=Ny(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(tB(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&aR.enqueueReplaceState(i,i.state,null),wA(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Fy(e,t){try{var n="",r=t;do n+=aDe(r),r=r.return;while(r);var i=n}catch(o){i=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function d2(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rB(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var N2e=typeof WeakMap=="function"?WeakMap:Map;function Cue(e,t,n){n=id(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kA||(kA=!0,hB=r),rB(e,t)},n}function Tue(e,t,n){n=id(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rB(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){rB(e,t),typeof r!="function"&&(Yf===null?Yf=new Set([this]):Yf.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function GK(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new N2e;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=G2e.bind(null,e,t,n),t.then(e,e))}function YK(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function XK(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=id(-1,1),t.tag=2,Gf(n,t,1))),n.lanes|=1),e)}var D2e=kd.ReactCurrentOwner,ls=!1;function Po(e,t,n,r){t.child=e===null?nue(t,null,n,r):Ly(t,e.child,n,r)}function ZK(e,t,n,r,i){n=n.render;var o=t.ref;return Yv(t,i),r=a5(e,t,n,r,o,i),n=l5(),e!==null&&!ls?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,md(e,t,i)):(ar&&n&&YU(t),t.flags|=1,Po(e,t,r,i),t.child)}function QK(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!y5(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Aue(e,t,o,r,i)):(e=nT(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:wE,n(s,r)&&e.ref===t.ref)return md(e,t,i)}return t.flags|=1,e=Zf(o,r),e.ref=t.ref,e.return=t,t.child=e}function Aue(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(wE(o,r)&&e.ref===t.ref)if(ls=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ls=!0);else return t.lanes=e.lanes,md(e,t,i)}return iB(e,t,n,r,i)}function Oue(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dn(Mv,Is),Is|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Dn(Mv,Is),Is|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Dn(Mv,Is),Is|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Dn(Mv,Is),Is|=r;return Po(e,t,i,n),t.child}function Pue(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 5,305 bytes, line 40
40function iB(e,t,n,r,i){var o=ms(n)?Cm:bo.current;return o=Ny(t,o),Yv(t,i),n=a5(e,t,n,r,o,i),r=l5(),e!==null&&!ls?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,md(e,t,i)):(ar&&r&&YU(t),t.flags|=1,Po(e,t,n,i),t.child)}function JK(e,t,n,r,i){if(ms(n)){var o=!0;mA(t)}else o=!1;if(Yv(t,i),t.stateNode===null)JC(e,t),kue(t,n,r),nB(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=za(c):(c=ms(n)?Cm:bo.current,c=Ny(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&qK(t,s,r,c),rf=!1;var f=t.memoizedState;s.state=f,wA(t,r,s,i),l=t.memoizedState,a!==r||f!==l||ps.current||rf?(typeof u=="function"&&(tB(t,n,u,r),l=t.memoizedState),(a=rf||KK(t,n,a,r,f,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,iue(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:al(t.type,a),s.props=c,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=za(l):(l=ms(n)?Cm:bo.current,l=Ny(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&qK(t,s,r,l),rf=!1,f=t.memoizedState,s.state=f,wA(t,r,s,i);var p=t.memoizedState;a!==d||f!==p||ps.current||rf?(typeof h=="function"&&(tB(t,n,h,r),p=t.memoizedState),(c=rf||KK(t,n,c,r,f,p,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return oB(e,t,n,r,o,i)}function oB(e,t,n,r,i,o){Pue(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&FK(t,n,!1),md(e,t,o);r=t.stateNode,D2e.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ly(t,e.child,null,o),t.child=Ly(t,null,a,o)):Po(e,t,a,o),t.memoizedState=r.state,i&&FK(t,n,!0),t.child}function Iue(e){var t=e.stateNode;t.pendingContext?$K(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$K(e,t.context,!1),r5(e,t.containerInfo)}function eq(e,t,n,r,i){return Dy(),ZU(i),t.flags|=256,Po(e,t,n,r),t.child}var sB={dehydrated:null,treeContext:null,retryLane:0};function aB(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rue(e,t,n){var r=t.pendingProps,i=hr.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Dn(hr,i&1),e===null)return JF(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=uR(s,r,0,null),e=cm(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=aB(n),t.memoizedState=sB,e):d5(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return L2e(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Zf(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Zf(a,o):(o=cm(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?aB(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=sB,r}return o=e.child,e=o.sibling,r=Zf(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function d5(e,t){return t=uR({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Z_(e,t,n,r){return r!==null&&ZU(r),Ly(t,e.child,null,n),e=d5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}
vendor: 7,648 bytes, line 40
40function L2e(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=d2(Error(ye(422))),Z_(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=uR({mode:"visible",children:r.children},i,0,null),o=cm(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ly(t,e.child,null,s),t.child.memoizedState=aB(s),t.memoizedState=sB,o);if(!(t.mode&1))return Z_(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(ye(419)),r=d2(o,r,void 0),Z_(e,t,s,r)}if(a=(s&e.childLanes)!==0,ls||a){if(r=Oi,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,pd(e,i),Al(r,e,i,-1))}return v5(),r=d2(Error(ye(421))),Z_(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Y2e.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ls=qf(i.nextSibling),zs=t,ar=!0,dl=null,e!==null&&(Sa[_a++]=qu,Sa[_a++]=Gu,Sa[_a++]=Tm,qu=e.id,Gu=e.overflow,Tm=t),t=d5(t,r.children),t.flags|=4096,t)}function tq(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),eB(e.return,t,n)}function f2(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Mue(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Po(e,t,r.children,n),r=hr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tq(e,n,t);else if(e.tag===19)tq(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Dn(hr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xA(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),f2(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xA(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}f2(t,!0,n,null,o);break;case"together":f2(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function JC(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function md(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Om|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ye(153));if(t.child!==null){for(e=t.child,n=Zf(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zf(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $2e(e,t,n){switch(t.tag){case 3:Iue(t),Dy();break;case 5:oue(t);break;case 1:ms(t.type)&&mA(t);break;case 4:r5(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Dn(yA,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Dn(hr,hr.current&1),t.flags|=128,null):n&t.child.childLanes?Rue(e,t,n):(Dn(hr,hr.current&1),e=md(e,t,n),e!==null?e.sibling:null);Dn(hr,hr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mue(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Dn(hr,hr.current),r)break;return null;case 22:case 23:return t.lanes=0,Oue(e,t,n)}return md(e,t,n)}var Nue,lB,Due,Lue;Nue=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};lB=function(){};Due=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Fp(Lc.current);var o=null;switch(n){case"input":i=PF(e,i),r=PF(e,r),o=[];break;case"select":i=gr({},i,{value:void 0}),r=gr({},r,{value:void 0}),o=[];break;case"textarea":i=MF(e,i),r=MF(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hA)}DF(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(hE.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(hE.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Un("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Lue=function(e,t,n,r){n!==r&&(t.flags|=4)};function V0(e,t){if(!ar)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oo(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function F2e(e,t,n){var r=t.pendingProps;switch(XU(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oo(t),null;case 1:return ms(t.type)&&pA(),oo(t),null;case 3:return r=t.stateNode,$y(),Yn(ps),Yn(bo),o5(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Y_(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dl!==null&&(gB(dl),dl=null))),lB(e,t),oo(t),null;case 5:i5(t);var i=Fp(kE.current);if(n=t.type,e!==null&&t.stateNode!=null)Due(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ye(166));return oo(t),null}if(e=Fp(Lc.current),Y_(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Sc]=t,r[SE]=o,e=(t.mode&1)!==0,n){case"dialog":Un("cancel",r),Un("close",r);break;case"iframe":case"object":case"embed":Un("load",r);break;case"video":case"audio":for(i=0;i<Ww.length;i++)Un(Ww[i],r);break;case"source":Un("error",r);break;case"img":case"image":case"link":Un("error",r),Un("load",r);break;case"details":Un("toggle",r);break;case"input":uK(r,o),Un("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Un("invalid",r);break;case"textarea":fK(r,o),Un("invalid",r)}DF(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];
vendor: 29,088 bytes, line 40
40s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&G_(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&G_(r.textContent,a,e),i=["children",""+a]):hE.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Un("scroll",r)}switch(n){case"input":j_(r),dK(r,o,!0);break;case"textarea":j_(r),hK(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=hA)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uce(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Sc]=t,e[SE]=r,Nue(e,t,!1,!1),t.stateNode=e;e:{switch(s=LF(n,r),n){case"dialog":Un("cancel",e),Un("close",e),i=r;break;case"iframe":case"object":case"embed":Un("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ww.length;i++)Un(Ww[i],e);i=r;break;case"source":Un("error",e),i=r;break;case"img":case"image":case"link":Un("error",e),Un("load",e),i=r;break;case"details":Un("toggle",e),i=r;break;case"input":uK(e,r),i=PF(e,r),Un("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=gr({},r,{value:void 0}),Un("invalid",e);break;case"textarea":fK(e,r),i=MF(e,r),Un("invalid",e);break;default:i=r}DF(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?hce(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dce(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&pE(e,l):typeof l=="number"&&pE(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(hE.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Un("scroll",e):l!=null&&DU(e,o,l,s))}switch(n){case"input":j_(e),dK(e,r,!1);break;case"textarea":j_(e),hK(e);break;case"option":r.value!=null&&e.setAttribute("value",""+uh(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Hv(e,!!r.multiple,o,!1):r.defaultValue!=null&&Hv(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=hA)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return oo(t),null;case 6:if(e&&t.stateNode!=null)Lue(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ye(166));if(n=Fp(kE.current),Fp(Lc.current),Y_(t)){if(r=t.stateNode,n=t.memoizedProps,r[Sc]=t,(o=r.nodeValue!==n)&&(e=zs,e!==null))switch(e.tag){case 3:G_(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&G_(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Sc]=t,t.stateNode=r}return oo(t),null;case 13:if(Yn(hr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ar&&Ls!==null&&t.mode&1&&!(t.flags&128))eue(),Dy(),t.flags|=98560,o=!1;else if(o=Y_(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(ye(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(ye(317));o[Sc]=t}else Dy(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oo(t),o=!1}else dl!==null&&(gB(dl),dl=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||hr.current&1?fi===0&&(fi=3):v5())),t.updateQueue!==null&&(t.flags|=4),oo(t),null);case 4:return $y(),lB(e,t),e===null&&xE(t.stateNode.containerInfo),oo(t),null;case 10:return e5(t.type._context),oo(t),null;case 17:return ms(t.type)&&pA(),oo(t),null;case 19:if(Yn(hr),o=t.memoizedState,o===null)return oo(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)V0(o,!1);else{if(fi!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=xA(e),s!==null){for(t.flags|=128,V0(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Dn(hr,hr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Lr()>By&&(t.flags|=128,r=!0,V0(o,!1),t.lanes=4194304)}else{if(!r)if(e=xA(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),V0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ar)return oo(t),null}else 2*Lr()-o.renderingStartTime>By&&n!==1073741824&&(t.flags|=128,r=!0,V0(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Lr(),t.sibling=null,n=hr.current,Dn(hr,r?n&1|2:n&1),t):(oo(t),null);case 22:case 23:return g5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Is&1073741824&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(ye(156,t.tag))}function B2e(e,t){switch(XU(t),t.tag){case 1:return ms(t.type)&&pA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $y(),Yn(ps),Yn(bo),o5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return i5(t),null;case 13:if(Yn(hr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ye(340));Dy()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yn(hr),null;case 4:return $y(),null;case 10:return e5(t.type._context),null;case 22:case 23:return g5(),null;case 24:return null;default:return null}}var Q_=!1,ho=!1,j2e=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function Rv(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ar(e,t,r)}else n.current=null}function cB(e,t,n){try{n()}catch(r){Ar(e,t,r)}}var nq=!1;function z2e(e,t){if(KF=uA,e=zce(),GU(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(a=s),f===o&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(qF={focusedElem:e,selectionRange:n},uA=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){t=Fe;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,g=p.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:al(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ye(163))}}catch(x){Ar(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}return p=nq,nq=!1,p}function _x(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&cB(t,n,o)}i=i.next}while(i!==r)}}function lR(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uB(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $ue(e){var t=e.alternate;t!==null&&(e.alternate=null,$ue(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sc],delete t[SE],delete t[XF],delete t[S2e],delete t[_2e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fue(e){return e.tag===5||e.tag===3||e.tag===4}function rq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fue(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dB(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hA));else if(r!==4&&(e=e.child,e!==null))for(dB(e,t,n),e=e.sibling;e!==null;)dB(e,t,n),e=e.sibling}function fB(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fB(e,t,n),e=e.sibling;e!==null;)fB(e,t,n),e=e.sibling}var Vi=null,cl=!1;function jd(e,t,n){for(n=n.child;n!==null;)Bue(e,t,n),n=n.sibling}function Bue(e,t,n){if(Dc&&typeof Dc.onCommitFiberUnmount=="function")try{Dc.onCommitFiberUnmount(eR,n)}catch{}switch(n.tag){case 5:ho||Rv(n,t);case 6:var r=Vi,i=cl;Vi=null,jd(e,t,n),Vi=r,cl=i,Vi!==null&&(cl?(e=Vi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Vi.removeChild(n.stateNode));break;case 18:Vi!==null&&(cl?(e=Vi,n=n.stateNode,e.nodeType===8?o2(e.parentNode,n):e.nodeType===1&&o2(e,n),yE(e)):o2(Vi,n.stateNode));break;case 4:r=Vi,i=cl,Vi=n.stateNode.containerInfo,cl=!0,jd(e,t,n),Vi=r,cl=i;break;case 0:case 11:case 14:case 15:if(!ho&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&cB(n,t,s),i=i.next}while(i!==r)}jd(e,t,n);break;case 1:if(!ho&&(Rv(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ar(n,t,a)}jd(e,t,n);break;case 21:jd(e,t,n);break;case 22:n.mode&1?(ho=(r=ho)||n.memoizedState!==null,jd(e,t,n),ho=r):jd(e,t,n);break;default:jd(e,t,n)}}function iq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j2e),t.forEach(function(r){var i=X2e.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Za(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Vi=a.stateNode,cl=!1;break e;case 3:Vi=a.stateNode.containerInfo,cl=!0;break e;case 4:Vi=a.stateNode.containerInfo,cl=!0;break e}a=a.return}if(Vi===null)throw Error(ye(160));Bue(o,s,i),Vi=null,cl=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Ar(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jue(t,e),t=t.sibling}function jue(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Za(t,e),Ql(e),r&4){try{_x(3,e,e.return),lR(3,e)}catch(m){Ar(e,e.return,m)}try{_x(5,e,e.return)}catch(m){Ar(e,e.return,m)}}break;case 1:Za(t,e),Ql(e),r&512&&n!==null&&Rv(n,n.return);break;case 5:if(Za(t,e),Ql(e),r&512&&n!==null&&Rv(n,n.return),e.flags&32){var i=e.stateNode;try{pE(i,"")}catch(m){Ar(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&lce(i,o),LF(a,s);var c=LF(a,o);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?hce(i,d):u==="dangerouslySetInnerHTML"?dce(i,d):u==="children"?pE(i,d):DU(i,u,d,c)}switch(a){case"input":IF(i,o);break;case"textarea":cce(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Hv(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?Hv(i,!!o.multiple,o.defaultValue,!0):Hv(i,!!o.multiple,o.multiple?[]:"",!1))}i[SE]=o}catch(m){Ar(e,e.return,m)}}break;case 6:if(Za(t,e),Ql(e),r&4){if(e.stateNode===null)throw Error(ye(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){Ar(e,e.return,m)}}break;case 3:if(Za(t,e),Ql(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{yE(t.containerInfo)}catch(m){Ar(e,e.return,m)}break;case 4:Za(t,e),Ql(e);break;case 13:Za(t,e),Ql(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(p5=Lr())),r&4&&iq(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(ho=(c=ho)||u,Za(t,e),ho=c):Za(t,e),Ql(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Fe=e,u=e.child;u!==null;){for(d=Fe=u;Fe!==null;){switch(f=Fe,h=f.child,f.tag){case 0:case 11:case 14:case 15:_x(4,f,f.return);break;case 1:Rv(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){Ar(r,n,m)}}break;case 5:Rv(f,f.return);break;case 22:if(f.memoizedState!==null){sq(d);continue}}h!==null?(h.return=f,Fe=h):sq(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=fce("display",s))}catch(m){Ar(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Ar(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Za(t,e),Ql(e),r&4&&iq(e);break;case 21:break;default:Za(t,e),Ql(e)}}function Ql(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Fue(n)){var r=n;break e}n=n.return}throw Error(ye(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(pE(i,""),r.flags&=-33);var o=rq(e);fB(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=rq(e);dB(e,a,s);break;default:throw Error(ye(161))}}catch(l){Ar(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U2e(e,t,n){Fe=e,zue(e)}function zue(e,t,n){for(var r=(e.mode&1)!==0;Fe!==null;){var i=Fe,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Q_;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ho;a=Q_;var c=ho;if(Q_=s,(ho=l)&&!c)for(Fe=i;Fe!==null;)s=Fe,l=s.child,s.tag===22&&s.memoizedState!==null?aq(i):l!==null?(l.return=s,Fe=l):aq(i);for(;o!==null;)Fe=o,zue(o),o=o.sibling;Fe=i,Q_=a,ho=c}oq(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Fe=o):oq(e)}}function oq(e){for(;Fe!==null;){var t=Fe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ho||lR(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ho)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:al(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&VK(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}VK(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&yE(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ye(163))}ho||t.flags&512&&uB(t)}catch(f){Ar(t,t.return,f)}}if(t===e){Fe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function sq(e){for(;Fe!==null;){var t=Fe;if(t===e){Fe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function aq(e){for(;Fe!==null;){var t=Fe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lR(4,t)}catch(l){Ar(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Ar(t,i,l)}}var o=t.return;try{uB(t)}catch(l){Ar(t,o,l)}break;case 5:var s=t.return;try{uB(t)}catch(l){Ar(t,s,l)}}}catch(l){Ar(t,t.return,l)}if(t===e){Fe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Fe=a;break}Fe=t.return}}var V2e=Math.ceil,_A=kd.ReactCurrentDispatcher,f5=kd.ReactCurrentOwner,Na=kd.ReactCurrentBatchConfig,qt=0,Oi=null,Jr=null,Qi=0,Is=0,Mv=Rh(0),fi=0,OE=null,Om=0,cR=0,h5=0,kx=null,ss=null,p5=0,By=1/0,Pu=null,kA=!1,hB=null,Yf=null,J_=!1,Of=null,CA=0,Cx=0,pB=null,eT=-1,tT=0;function jo(){return qt&6?Lr():eT!==-1?eT:eT=Lr()}function Xf(e){return e.mode&1?qt&2&&Qi!==0?Qi&-Qi:C2e.transition!==null?(tT===0&&(tT=kce()),tT):(e=gn,e!==0||(e=window.event,e=e===void 0?16:Rce(e.type)),e):1}function Al(e,t,n,r){if(50<Cx)throw Cx=0,pB=null,Error(ye(185));J1(e,n,r),(!(qt&2)||e!==Oi)&&(e===Oi&&(!(qt&2)&&(cR|=n),fi===4&&pf(e,Qi)),gs(e,r),n===1&&qt===0&&!(t.mode&1)&&(By=Lr()+500,oR&&Mh()))}function gs(e,t){var n=e.callbackNode;CDe(e,t);var r=cA(e,e===Oi?Qi:0);if(r===0)n!==null&&gK(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gK(n),t===1)e.tag===0?k2e(lq.bind(null,e)):Zce(lq.bind(null,e)),x2e(function(){!(qt&6)&&Mh()}),n=null;else{switch(Cce(r)){case 1:n=jU;break;case 4:n=Sce;break;case 16:n=lA;break;case 536870912:n=_ce;break;default:n=lA}n=Yue(n,Uue.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Uue(e,t){if(eT=-1,tT=0,qt&6)throw Error(ye(327));var n=e.callbackNode;if(Xv()&&e.callbackNode!==n)return null;var r=cA(e,e===Oi?Qi:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=TA(e,r);else{t=r;var i=qt;qt|=2;var o=Wue();(Oi!==e||Qi!==t)&&(Pu=null,By=Lr()+500,lm(e,t));do try{K2e();break}catch(a){Vue(e,a)}while(!0);JU(),_A.current=o,qt=i,Jr!==null?t=0:(Oi=null,Qi=0,t=fi)}if(t!==0){if(t===2&&(i=zF(e),i!==0&&(r=i,t=mB(e,i))),t===1)throw n=OE,lm(e,0),pf(e,r),gs(e,Lr()),n;if(t===6)pf(e,r);else{if(i=e.current.alternate,!(r&30)&&!W2e(i)&&(t=TA(e,r),t===2&&(o=zF(e),o!==0&&(r=o,t=mB(e,o))),t===1))throw n=OE,lm(e,0),pf(e,r),gs(e,Lr()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ye(345));case 2:xp(e,ss,Pu);break;case 3:if(pf(e,r),(r&130023424)===r&&(t=p5+500-Lr(),10<t)){if(cA(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){jo(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YF(xp.bind(null,e,ss,Pu),t);break}xp(e,ss,Pu);break;case 4:if(pf(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Tl(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Lr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*V2e(r/1960))-r,10<r){e.timeoutHandle=YF(xp.bind(null,e,ss,Pu),r);break}xp(e,ss,Pu);break;case 5:xp(e,ss,Pu);break;default:throw Error(ye(329))}}}return gs(e,Lr()),e.callbackNode===n?Uue.bind(null,e):null}function mB(e,t){var n=kx;return e.current.memoizedState.isDehydrated&&(lm(e,t).flags|=256),e=TA(e,t),e!==2&&(t=ss,ss=n,t!==null&&gB(t)),e}function gB(e){ss===null?ss=e:ss.push.apply(ss,e)}function W2e(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Il(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pf(e,t){for(t&=~h5,t&=~cR,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tl(t),r=1<<n;e[n]=-1,t&=~r}}function lq(e){if(qt&6)throw Error(ye(327));Xv();var t=cA(e,0);if(!(t&1))return gs(e,Lr()),null;var n=TA(e,t);if(e.tag!==0&&n===2){var r=zF(e);r!==0&&(t=r,n=mB(e,r))}if(n===1)throw n=OE,lm(e,0),pf(e,t),gs(e,Lr()),n;if(n===6)throw Error(ye(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xp(e,ss,Pu),gs(e,Lr()),null}function m5(e,t){var n=qt;qt|=1;try{return e(t)}finally{qt=n,qt===0&&(By=Lr()+500,oR&&Mh())}}function Pm(e){Of!==null&&Of.tag===0&&!(qt&6)&&Xv();var t=qt;qt|=1;var n=Na.transition,r=gn;try{if(Na.transition=null,gn=1,e)return e()}finally{gn=r,Na.transition=n,qt=t,!(qt&6)&&Mh()}}function g5(){Is=Mv.current,Yn(Mv)}function lm(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,w2e(n)),Jr!==null)for(n=Jr.return;n!==null;){var r=n;switch(XU(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pA();break;case 3:$y(),Yn(ps),Yn(bo),o5();break;case 5:i5(r);break;case 4:$y();break;case 13:Yn(hr);break;case 19:Yn(hr);break;case 10:e5(r.type._context);break;case 22:case 23:g5()}n=n.return}if(Oi=e,Jr=e=Zf(e.current,null),Qi=Is=t,fi=0,OE=null,h5=cR=Om=0,ss=kx=null,$p!==null){for(t=0;t<$p.length;t++)if(n=$p[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}$p=null}return e}function Vue(e,t){do{var n=Jr;try{if(JU(),ZC.current=SA,EA){for(var r=mr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}EA=!1}if(Am=0,Si=li=mr=null,Sx=!1,CE=0,f5.current=null,n===null||n.return===null){fi=1,OE=t,Jr=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Qi,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=YK(s);if(h!==null){h.flags&=-257,XK(h,s,a,o,t),h.mode&1&&GK(o,c,t),t=h,l=c;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){GK(o,c,t),v5();break e}l=Error(ye(426))}}else if(ar&&a.mode&1){var g=YK(s);if(g!==null){!(g.flags&65536)&&(g.flags|=256),XK(g,s,a,o,t),ZU(Fy(l,a));break e}}o=l=Fy(l,a),fi!==4&&(fi=2),kx===null?kx=[o]:kx.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Cue(o,l,t);UK(o,v);break e;case 1:a=l;var b=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Yf===null||!Yf.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Tue(o,a,t);UK(o,x);break e}}o=o.return}while(o!==null)}Kue(n)}catch(E){t=E,Jr===n&&n!==null&&(Jr=n=n.return);continue}break}while(!0)}function Wue(){var e=_A.current;return _A.current=SA,e===null?SA:e}function v5(){(fi===0||fi===3||fi===2)&&(fi=4),Oi===null||!(Om&268435455)&&!(cR&268435455)||pf(Oi,Qi)}function TA(e,t){var n=qt;qt|=2;var r=Wue();(Oi!==e||Qi!==t)&&(Pu=null,lm(e,t));do try{H2e();break}catch(i){Vue(e,i)}while(!0);if(JU(),qt=n,_A.current=r,Jr!==null)throw Error(ye(261));return Oi=null,Qi=0,fi}function H2e(){for(;Jr!==null;)Hue(Jr)}function K2e(){for(;Jr!==null&&!vDe();)Hue(Jr)}function Hue(e){var t=Gue(e.alternate,e,Is);e.memoizedProps=e.pendingProps,t===null?Kue(e):Jr=t,f5.current=null}function Kue(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=B2e(n,t),n!==null){n.flags&=32767,Jr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{fi=6,Jr=null;return}}else if(n=F2e(n,t,Is),n!==null){Jr=n;return}if(t=t.sibling,t!==null){Jr=t;return}Jr=t=e}while(t!==null);fi===0&&(fi=5)}function xp(e,t,n){var r=gn,i=Na.transition;try{Na.transition=null,gn=1,q2e(e,t,n,r)}finally{Na.transition=i,gn=r}return null}function q2e(e,t,n,r){do Xv();while(Of!==null);if(qt&6)throw Error(ye(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ye(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(TDe(e,o),e===Oi&&(Jr=Oi=null,Qi=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||J_||(J_=!0,Yue(lA,function(){return Xv(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Na.transition,Na.transition=null;var s=gn;gn=1;var a=qt;qt|=4,f5.current=null,z2e(e,n),jue(n,e),h2e(qF),uA=!!KF,qF=KF=null,e.current=n,U2e(n),yDe(),qt=a,gn=s,Na.transition=o}else e.current=n;if(J_&&(J_=!1,Of=e,CA=i),o=e.pendingLanes,o===0&&(Yf=null),xDe(n.stateNode),gs(e,Lr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(kA)throw kA=!1,e=hB,hB=null,e;return CA&1&&e.tag!==0&&Xv(),o=e.pendingLanes,o&1?e===pB?Cx++:(Cx=0,pB=e):Cx=0,Mh(),null}function Xv(){if(Of!==null){var e=Cce(CA),t=Na.transition,n=gn;try{if(Na.transition=null,gn=16>e?16:e,Of===null)var r=!1;else{if(e=Of,Of=null,CA=0,qt&6)throw Error(ye(331));var i=qt;for(qt|=4,Fe=e.current;Fe!==null;){var o=Fe,s=o.child;if(Fe.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Fe=c;Fe!==null;){var u=Fe;switch(u.tag){case 0:case 11:case 15:_x(8,u,o)}var d=u.child;if(d!==null)d.return=u,Fe=d;else for(;Fe!==null;){u=Fe;var f=u.sibling,h=u.return;if($ue(u),u===c){Fe=null;break}if(f!==null){f.return=h,Fe=f;break}Fe=h}}}var p=o.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(m!==null)}}Fe=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Fe=s;else e:for(;Fe!==null;){if(o=Fe,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_x(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Fe=v;break e}Fe=o.return}}var b=e.current;for(Fe=b;Fe!==null;){s=Fe;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,Fe=w;else e:for(s=b;Fe!==null;){if(a=Fe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:lR(9,a)}}catch(E){Ar(a,a.return,E)}if(a===s){Fe=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,Fe=x;break e}Fe=a.return}}if(qt=i,Mh(),Dc&&typeof Dc.onPostCommitFiberRoot=="function")try{Dc.onPostCommitFiberRoot(eR,e)}catch{}r=!0}return r}finally{gn=n,Na.transition=t}}return!1}function cq(e,t,n){t=Fy(n,t),t=Cue(e,t,1),e=Gf(e,t,1),t=jo(),e!==null&&(J1(e,1,t),gs(e,t))}function Ar(e,t,n){if(e.tag===3)cq(e,e,n);else for(;t!==null;){if(t.tag===3){cq(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yf===null||!Yf.has(r))){e=Fy(n,e),e=Tue(t,e,1),t=Gf(t,e,1),e=jo(),t!==null&&(J1(t,1,e),gs(t,e));break}}t=t.return}}function G2e(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=jo(),e.pingedLanes|=e.suspendedLanes&n,Oi===e&&(Qi&n)===n&&(fi===4||fi===3&&(Qi&130023424)===Qi&&500>Lr()-p5?lm(e,0):h5|=n),gs(e,t)}function que(e,t){t===0&&(e.mode&1?(t=V_,V_<<=1,!(V_&130023424)&&(V_=4194304)):t=1);var n=jo();e=pd(e,t),e!==null&&(J1(e,t,n),gs(e,n))}function Y2e(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),que(e,n)}function X2e(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ye(314))}r!==null&&r.delete(t),que(e,n)}var Gue;Gue=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ps.current)ls=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ls=!1,$2e(e,t,n);ls=!!(e.flags&131072)}else ls=!1,ar&&t.flags&1048576&&Qce(t,vA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;JC(e,t),e=t.pendingProps;var i=Ny(t,bo.current);Yv(t,n),i=a5(null,t,r,e,i,n);var o=l5();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ms(r)?(o=!0,mA(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,n5(t),i.updater=aR,t.stateNode=i,i._reactInternals=t,nB(t,r,e,n),t=oB(null,t,r,!0,o,n)):(t.tag=0,ar&&o&&YU(t),Po(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(JC(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Q2e(r),e=al(r,e),i){case 0:t=iB(null,t,r,e,n);break e;case 1:t=JK(null,t,r,e,n);break e;case 11:t=ZK(null,t,r,e,n);break e;case 14:t=QK(null,t,r,al(r.type,e),n);break e}throw Error(ye(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),iB(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),JK(e,t,r,i,n);case 3:e:{if(Iue(t),e===null)throw Error(ye(387));
vendor: 4,598 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,iue(e,t),wA(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Fy(Error(ye(423)),t),t=eq(e,t,r,n,i);break e}else if(r!==i){i=Fy(Error(ye(424)),t),t=eq(e,t,r,n,i);break e}else for(Ls=qf(t.stateNode.containerInfo.firstChild),zs=t,ar=!0,dl=null,n=nue(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dy(),r===i){t=md(e,t,n);break e}Po(e,t,r,n)}t=t.child}return t;case 5:return oue(t),e===null&&JF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,GF(r,i)?s=null:o!==null&&GF(r,o)&&(t.flags|=32),Pue(e,t),Po(e,t,s,n),t.child;case 6:return e===null&&JF(t),null;case 13:return Rue(e,t,n);case 4:return r5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ly(t,null,r,n):Po(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),ZK(e,t,r,i,n);case 7:return Po(e,t,t.pendingProps,n),t.child;case 8:return Po(e,t,t.pendingProps.children,n),t.child;case 12:return Po(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Dn(yA,r._currentValue),r._currentValue=s,o!==null)if(Il(o.value,s)){if(o.children===i.children&&!ps.current){t=md(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=id(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),eB(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(ye(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),eB(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Po(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yv(t,n),i=za(i),r=r(i),t.flags|=1,Po(e,t,r,n),t.child;case 14:return r=t.type,i=al(r,t.pendingProps),i=al(r.type,i),QK(e,t,r,i,n);case 15:return Aue(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),JC(e,t),t.tag=1,ms(r)?(e=!0,mA(t)):e=!1,Yv(t,n),kue(t,r,i),nB(t,r,i,n),oB(null,t,r,!0,e,n);case 19:return Mue(e,t,n);case 22:return Oue(e,t,n)}throw Error(ye(156,t.tag))};function Yue(e,t){return Ece(e,t)}function Z2e(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Aa(e,t,n,r){return new Z2e(e,t,n,r)}function y5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q2e(e){if(typeof e=="function")return y5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$U)return 11;if(e===FU)return 14}return 2}function Zf(e,t){var n=e.alternate;return n===null?(n=Aa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nT(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")y5(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Sv:return cm(n.children,i,o,t);case LU:s=8,i|=8;break;case CF:return e=Aa(12,n,t,i|2),e.elementType=CF,e.lanes=o,e;case TF:return e=Aa(13,n,t,i),e.elementType=TF,e.lanes=o,e;case AF:return e=Aa(19,n,t,i),e.elementType=AF,e.lanes=o,e;case oce:return uR(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rce:s=10;break e;case ice:s=9;break e;case $U:s=11;break e;case FU:s=14;break e;case nf:s=16,r=null;break e}throw Error(ye(130,e==null?e:typeof e,""))}return t=Aa(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function cm(e,t,n,r){return e=Aa(7,e,r,t),e.lanes=n,e}
vendor: 4,533 bytes, line 40
40function uR(e,t,n,r){return e=Aa(22,e,r,t),e.elementType=oce,e.lanes=n,e.stateNode={isHidden:!1},e}function h2(e,t,n){return e=Aa(6,e,null,t),e.lanes=n,e}function p2(e,t,n){return t=Aa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function J2e(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=GD(0),this.expirationTimes=GD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=GD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function b5(e,t,n,r,i,o,s,a,l){return e=new J2e(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Aa(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},n5(o),e}function eLe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ev,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Xue(e){if(!e)return dh;e=e._reactInternals;e:{if(hg(e)!==e||e.tag!==1)throw Error(ye(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ms(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ye(171))}if(e.tag===1){var n=e.type;if(ms(n))return Xce(e,n,t)}return t}function Zue(e,t,n,r,i,o,s,a,l){return e=b5(n,r,!0,e,i,o,s,a,l),e.context=Xue(null),n=e.current,r=jo(),i=Xf(n),o=id(r,i),o.callback=t??null,Gf(n,o,i),e.current.lanes=i,J1(e,i,r),gs(e,r),e}function dR(e,t,n,r){var i=t.current,o=jo(),s=Xf(i);return n=Xue(n),t.context===null?t.context=n:t.pendingContext=n,t=id(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Gf(i,t,s),e!==null&&(Al(e,i,s,o),XC(e,i,s)),s}function AA(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function uq(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function w5(e,t){uq(e,t),(e=e.alternate)&&uq(e,t)}function tLe(){return null}var Que=typeof reportError=="function"?reportError:function(e){console.error(e)};function x5(e){this._internalRoot=e}fR.prototype.render=x5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ye(409));dR(e,t,null,null)};fR.prototype.unmount=x5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pm(function(){dR(null,e,null,null)}),t[hd]=null}};function fR(e){this._internalRoot=e}fR.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oce();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hf.length&&t!==0&&t<hf[n].priority;n++);hf.splice(n,0,e),n===0&&Ice(e)}};function E5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hR(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dq(){}function nLe(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=AA(s);o.call(c)}}var s=Zue(t,r,e,0,null,!1,!1,"",dq);return e._reactRootContainer=s,e[hd]=s.current,xE(e.nodeType===8?e.parentNode:e),Pm(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=AA(l);a.call(c)}}var l=b5(e,0,!1,null,null,!1,!1,"",dq);return e._reactRootContainer=l,e[hd]=l.current,xE(e.nodeType===8?e.parentNode:e),Pm(function(){dR(t,l,n,r)}),l}function pR(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=AA(s);a.call(l)}}dR(t,s,e,i)}else s=nLe(n,t,e,i,r);return AA(s)}Tce=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vw(t.pendingLanes);n!==0&&(zU(t,n|1),gs(t,Lr()),!(qt&6)&&(By=Lr()+500,Mh()))}break;case 13:Pm(function(){var r=pd(e,1);if(r!==null){var i=jo();Al(r,e,1,i)}}),w5(e,1)}};UU=function(e){if(e.tag===13){var t=pd(e,134217728);if(t!==null){var n=jo();Al(t,e,134217728,n)}w5(e,134217728)}};Ace=function(e){if(e.tag===13){var t=Xf(e),n=pd(e,t);if(n!==null){var r=jo();Al(n,e,t,r)}w5(e,t)}};Oce=function(){return gn};Pce=function(e,t){var n=gn;try{return gn=e,t()}finally{gn=n}};
40FF=function(e,t,n){switch(t){case"input":if(IF(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=iR(r);if(!i)throw Error(ye(90));ace(r),IF(r,i)}}}break;case"textarea":cce(e,n);break;case"select":t=n.value,t!=null&&Hv(e,!!n.multiple,t,!1)}};gce=m5;vce=Pm;var rLe={usingClientEntryPoint:!1,Events:[tS,Tv,iR,pce,mce,m5]},W0={findFiberByHostInstance:Lp,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iLe={bundleType:W0.bundleType,version:W0.version,rendererPackageName:W0.rendererPackageName,rendererConfig:W0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kd.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wce(e),e===null?null:e.stateNode},findFiberByHostInstance:W0.findFiberByHostInstance||tLe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ek=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ek.isDisabled&&ek.supportsFiber)try{eR=ek.inject(iLe),Dc=ek}catch{}}oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rLe;oa.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E5(t))throw Error(ye(200));return eLe(e,t,null,n)};oa.createRoot=function(e,t){if(!E5(e))throw Error(ye(299));var n=!1,r="",i=Que;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=b5(e,1,!1,null,null,n,!1,r,i),e[hd]=t.current,xE(e.nodeType===8?e.parentNode:e),new x5(t)};oa.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ye(188)):(e=Object.keys(e).join(","),Error(ye(268,e)));return e=wce(t),e=e===null?null:e.stateNode,e};oa.flushSync=function(e){return Pm(e)};oa.hydrate=function(e,t,n){if(!hR(t))throw Error(ye(200));return pR(null,e,t,!0,n)};oa.hydrateRoot=function(e,t,n){if(!E5(e))throw Error(ye(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Que;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Zue(t,null,e,1,n??null,i,!1,o,s),e[hd]=t.current,xE(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new fR(t)};oa.render=function(e,t,n){if(!hR(t))throw Error(ye(200));return pR(null,e,t,!1,n)};oa.unmountComponentAtNode=function(e){if(!hR(e))throw Error(ye(40));return e._reactRootContainer?(Pm(function(){pR(null,null,e,!1,function(){e._reactRootContainer=null,e[hd]=null})}),!0):!1};oa.unstable_batchedUpdates=m5;oa.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hR(n))throw Error(ye(200));if(e==null||e._reactInternals===void 0)throw Error(ye(38));return pR(e,t,n,!1,r)};oa.version="18.3.1-next-f1338f8080-20240426";function Jue(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jue)}catch(e){console.error(e)}}Jue(),Jle.exports=oa;var pr=Jle.exports;const Zv=yr(pr);var fq=pr;sK.createRoot=fq.createRoot,sK.hydrateRoot=fq.hydrateRoot;/** 41 * @remix-run/router v1.23.2 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function PE(){return PE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PE.apply(this,arguments)}var Pf;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Pf||(Pf={}));const hq="popstate";function oLe(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return vB("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:OA(i)}return aLe(t,n,null,e)}function Fr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function S5(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sLe(){return Math.random().toString(36).substr(2,8)}function pq(e,t){return{usr:e.state,key:e.key,idx:t}}function vB(e,t,n,r){return n===void 0&&(n=null),PE({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bb(t):t,{state:n,key:t&&t.key||r||sLe()})}function OA(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bb(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function aLe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Pf.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(PE({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Pf.Pop;let g=u(),v=g==null?null:g-c;c=g,l&&l({action:a,location:m.location,delta:v})}function f(g,v){a=Pf.Push;let b=vB(m.location,g,v);c=u()+1;let w=pq(b,c),x=m.createHref(b);
49try{s.pushState(w,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(x)}o&&l&&l({action:a,location:m.location,delta:1})}function h(g,v){a=Pf.Replace;let b=vB(m.location,g,v);c=u();let w=pq(b,c),x=m.createHref(b);s.replaceState(w,"",x),o&&l&&l({action:a,location:m.location,delta:0})}function p(g){let v=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof g=="string"?g:OA(g);return b=b.replace(/ $/,"%20"),Fr(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let m={get action(){return a},get location(){return e(i,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(hq,d),l=g,()=>{i.removeEventListener(hq,d),l=null}},createHref(g){return t(i,g)},createURL:p,encodeLocation(g){let v=p(g);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(g){return s.go(g)}};return m}var mq;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mq||(mq={}));function lLe(e,t,n){return n===void 0&&(n="/"),cLe(e,t,n)}function cLe(e,t,n,r){let i=typeof t=="string"?Bb(t):t,o=_5(i.pathname||"/",n);if(o==null)return null;let s=ede(e);uLe(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=ELe(o);a=bLe(s[l],c)}return a}function ede(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Fr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Qf([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(Fr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ede(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:vLe(c,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of tde(o.path))i(o,s,l)}),t}function tde(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=tde(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function uLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dLe=/^:[\w-]+$/,fLe=3,hLe=2,pLe=1,mLe=10,gLe=-2,gq=e=>e==="*";function vLe(e,t){let n=e.split("/"),r=n.length;return n.some(gq)&&(r+=gLe),t&&(r+=hLe),n.filter(i=>!gq(i)).reduce((i,o)=>i+(dLe.test(o)?fLe:o===""?pLe:mLe),r)}function yLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function bLe(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=wLe({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d)return null;
49Object.assign(i,d.params),s.push({params:i,pathname:Qf([o,d.pathname]),pathnameBase:TLe(Qf([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=Qf([o,d.pathnameBase]))}return s}function wLe(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xLe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:h}=u;if(f==="*"){let m=a[d]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[d];return h&&!p?c[f]=void 0:c[f]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function xLe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),S5(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ELe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return S5(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _5(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)||"/"}const SLe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_Le=e=>SLe.test(e);function kLe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Bb(e):e,o;if(n)if(_Le(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),S5(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=vq(n.substring(1),"/"):o=vq(n,t)}else o=t;return{pathname:o,search:ALe(r),hash:OLe(i)}}function vq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function m2(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 CLe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function k5(e,t){let n=CLe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function C5(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Bb(e):(i=PE({},e),Fr(!i.pathname||!i.pathname.includes("?"),m2("?","pathname","search",i)),Fr(!i.pathname||!i.pathname.includes("#"),m2("#","pathname","hash",i)),Fr(!i.search||!i.search.includes("#"),m2("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=kLe(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Qf=e=>e.join("/").replace(/\/\/+/g,"/"),TLe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ALe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,OLe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PLe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nde=["post","put","patch","delete"];new Set(nde);const ILe=["get",...nde];new Set(ILe);/** 50 * React Router v6.30.3 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IE.apply(this,arguments)}const T5=y.createContext(null),RLe=y.createContext(null),Nh=y.createContext(null),mR=y.createContext(null),au=y.createContext({outlet:null,matches:[],isDataRoute:!1}),rde=y.createContext(null);function MLe(e,t){let{relative:n}=t===void 0?{}:t;jb()||Fr(!1);let{basename:r,navigator:i}=y.useContext(Nh),{hash:o,pathname:s,search:a}=sde(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Qf([r,s])),i.createHref({pathname:l,search:a,hash:o})}function jb(){return y.useContext(mR)!=null}function zb(){return jb()||Fr(!1),y.useContext(mR).location}function ide(e){y.useContext(Nh).static||y.useLayoutEffect(e)}function A5(){let{isDataRoute:e}=y.useContext(au);return e?qLe():NLe()}function NLe(){jb()||Fr(!1);let e=y.useContext(T5),{basename:t,future:n,navigator:r}=y.useContext(Nh),{matches:i}=y.useContext(au),{pathname:o}=zb(),s=JSON.stringify(k5(i,n.v7_relativeSplatPath)),a=y.useRef(!1);return ide(()=>{a.current=!0}),y.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=C5(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Qf([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,o,e])}const ode=y.createContext(null);function qQt(){return y.useContext(ode)}function DLe(e){let t=y.useContext(au).outlet;return t&&y.createElement(ode.Provider,{value:e},t)}function GQt(){let{matches:e}=y.useContext(au),t=e[e.length-1];return t?t.params:{}}function sde(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Nh),{matches:i}=y.useContext(au),{pathname:o}=zb(),s=JSON.stringify(k5(i,r.v7_relativeSplatPath));return y.useMemo(()=>C5(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function LLe(e,t){return $Le(e,t)}function $Le(e,t,n,r){jb()||Fr(!1);let{navigator:i}=y.useContext(Nh),{matches:o}=y.useContext(au),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=zb(),u;if(t){var d;let g=typeof t=="string"?Bb(t):t;l==="/"||(d=g.pathname)!=null&&d.startsWith(l)||Fr(!1),u=g}else u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=lLe(e,{pathname:h}),m=ULe(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Qf([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Qf([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r);return t&&m?y.createElement(mR.Provider,{value:{location:IE({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Pf.Pop}},m):m}function FLe(){let e=KLe(),t=PLe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application
58Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,null)}const BLe=y.createElement(FLe,null);class jLe extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(au.Provider,{value:this.props.routeContext},y.createElement(rde.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zLe(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(T5);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(au.Provider,{value:t},r)}function ULe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Fr(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:h}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,p=!1,m=null,g=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||BLe,l&&(c<0&&f===0?(GLe("route-fallback"),p=!0,g=null):c===f&&(p=!0,g=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),b=()=>{let w;return h?w=m:p?w=g:d.route.Component?w=y.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,y.createElement(zLe,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?y.createElement(jLe,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}var ade=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ade||{}),lde=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lde||{});function VLe(e){let t=y.useContext(T5);return t||Fr(!1),t}function WLe(e){let t=y.useContext(RLe);return t||Fr(!1),t}function HLe(e){let t=y.useContext(au);return t||Fr(!1),t}function cde(e){let t=HLe(),n=t.matches[t.matches.length-1];return n.route.id||Fr(!1),n.route.id}function KLe(){var e;let t=y.useContext(rde),n=WLe(),r=cde();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function qLe(){let{router:e}=VLe(ade.UseNavigateStable),t=cde(lde.UseNavigateStable),n=y.useRef(!1);return ide(()=>{n.current=!0}),y.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,IE({fromRouteId:t},o)))},[e,t])}const yq={};function GLe(e,t,n){yq[e]||(yq[e]=!0)}function YLe(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function YQt(e){let{to:t,replace:n,state:r,relative:i}=e;jb()||Fr(!1);let{future:o,static:s}=y.useContext(Nh),{matches:a}=y.useContext(au),{pathname:l}=zb(),c=A5(),u=C5(t,k5(a,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return y.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function XQt(e){return DLe(e.context)}function XLe(e){Fr(!1)}function ZLe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Pf.Pop,navigator:o,static:s=!1,future:a}=e;jb()&&Fr(!1);let l=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:l,navigator:o,static:s,future:IE({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Bb(r));
58let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,m=y.useMemo(()=>{let g=_5(u,l);return g==null?null:{location:{pathname:g,search:d,hash:f,state:h,key:p},navigationType:i}},[l,u,d,f,h,p,i]);return m==null?null:y.createElement(Nh.Provider,{value:c},y.createElement(mR.Provider,{children:n,value:m}))}function ZQt(e){let{children:t,location:n}=e;return LLe(yB(t),n)}new Promise(()=>{});function yB(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let o=[...t,i];if(r.type===y.Fragment){n.push.apply(n,yB(r.props.children,o));return}r.type!==XLe&&Fr(!1),!r.props.index||!r.props.children||Fr(!1);let s={id:r.props.id||o.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,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=yB(r.props.children,o)),n.push(s)}),n}/** 59 * React Router DOM v6.30.3 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function bB(){return bB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bB.apply(this,arguments)}function QLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function JLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e$e(e,t){return e.button===0&&(!t||t==="_self")&&!JLe(e)}function wB(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function t$e(e,t){let n=wB(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const n$e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],r$e="6";try{window.__reactRouterVersion=r$e}catch{}const i$e="startTransition",bq=Lb[i$e];function QQt(e){let{basename:t,children:n,future:r,window:i}=e,o=y.useRef();o.current==null&&(o.current=oLe({window:i,v5Compat:!0}));let s=o.current,[a,l]=y.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=y.useCallback(d=>{c&&bq?bq(()=>l(d)):l(d)},[l,c]);return y.useLayoutEffect(()=>s.listen(u),[s,u]),y.useEffect(()=>YLe(r),[r]),y.createElement(ZLe,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const o$e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s$e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,JQt=y.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=QLe(t,n$e),{basename:h}=y.useContext(Nh),p,m=!1;if(typeof c=="string"&&s$e.test(c)&&(p=c,o$e))try{let w=new URL(window.location.href),x=c.startsWith("//")?new URL(w.protocol+c):new URL(c),E=_5(x.pathname,h);x.origin===w.origin&&E!=null?c=E+x.search+x.hash:m=!0}catch{}let g=MLe(c,{relative:i}),v=a$e(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(w){r&&r(w),w.defaultPrevented||v(w)}return y.createElement("a",bB({},f,{href:p||g,onClick:m||o?r:b,ref:n,target:l}))});var wq;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wq||(wq={}));var xq;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xq||(xq={}));function a$e(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=A5(),c=zb(),u=sde(e,{relative:s});return y.useCallback(d=>
67{if(e$e(d,n)){d.preventDefault();let f=r!==void 0?r:OA(c)===OA(u);l(e,{replace:f,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}function eJt(e){let t=y.useRef(wB(e)),n=y.useRef(!1),r=zb(),i=y.useMemo(()=>t$e(r.search,n.current?null:t.current),[r.search]),o=A5(),s=y.useCallback((a,l)=>{const c=wB(typeof a=="function"?a(i):a);n.current=!0,o("?"+c,l)},[o,i]);return[i,s]}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Eq(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lu(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Eq(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Eq(e[i],null)}}}}function xt(...e){return y.useCallback(lu(...e),e)}function l$e(e,t){const n=y.createContext(t),r=o=>{const{children:s,...a}=o,l=y.useMemo(()=>a,Object.values(a));return D.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function i(o){const s=y.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function Ri(e,t=[]){let n=[];function r(o,s){const a=y.createContext(s),l=n.length;n=[...n,s];const c=d=>{var v;const{scope:f,children:h,...p}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,g=y.useMemo(()=>p,Object.values(p));return D.jsx(m.Provider,{value:g,children:h})};c.displayName=o+"Provider";function u(d,f){var m;const h=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,p=y.useContext(h);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[c,u]}const i=()=>{const o=n.map(s=>y.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,c$e(i,...t)]}function c$e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(o)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Sq(e){const t=u$e(e),n=y.forwardRef((r,i)=>{const{children:o,...s}=r,a=y.Children.toArray(o),l=a.find(f$e);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function u$e(e){const t=y.forwardRef((n,r)=>{const{children:i,...o}=n;if(y.isValidElement(i)){const s=p$e(i),a=h$e(o,i.props);return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d$e=Symbol("radix.slottable");function f$e(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d$e}function h$e(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function p$e(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function rS(e){const t=e+"CollectionProvider",[n,r]=Ri(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:g,children:v}=m,b=$.useRef(null),w=$.useRef(new Map).current;return D.jsx(i,{scope:g,itemMap:w,collectionRef:b,children:v})};s.displayName=t;const a=e+"CollectionSlot",l=Sq(a),c=$.forwardRef((m,g)=>{const{scope:v,children:b}=m,w=o(a,v),x=xt(g,w.collectionRef);return D.jsx(l,{ref:x,children:b})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Sq(u),h=$.forwardRef((m,g)=>{const{scope:v,children:b,...w}=m,x=$.useRef(null),E=xt(g,x),S=o(u,v);return $.useEffect(()=>(S.itemMap.set(x,{ref:x,...w}),()=>void S.itemMap.delete(x))),D.jsx(f,{[d]:"",ref:E,children:b})});h.displayName=u;function p(m){const g=o(e+"CollectionConsumer",m);return $.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((S,_)=>w.indexOf(S.ref.current)-w.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:h},p,r]}function m$e(e){const t=g$e(e),n=y.forwardRef((r,i)=>{const{children:o,...s}=r,a=y.Children.toArray(o),l=a.find(y$e);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function g$e(e){const t=y.forwardRef((n,r)=>{const{children:i,...o}=n;if(y.isValidElement(i)){const s=w$e(i),a=b$e(o,i.props);
vendor: 5,298 bytes, line 67
67return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v$e=Symbol("radix.slottable");function y$e(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v$e}function b$e(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function w$e(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x$e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=x$e.reduce((e,t)=>{const n=m$e(`Primitive.${t}`),r=y.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function O5(e,t){e&&pr.flushSync(()=>e.dispatchEvent(t))}function Vo(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function E$e(e,t=globalThis==null?void 0:globalThis.document){const n=Vo(e);y.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var S$e="DismissableLayer",xB="dismissableLayer.update",_$e="dismissableLayer.pointerDownOutside",k$e="dismissableLayer.focusOutside",_q,ude=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pg=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=y.useContext(ude),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=y.useState({}),p=xt(t,_=>d(_)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),b=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=v,E=T$e(_=>{const k=_.target,C=[...c.branches].some(T=>T.contains(k));!x||C||(i==null||i(_),s==null||s(_),_.defaultPrevented||a==null||a())},f),S=A$e(_=>{const k=_.target;[...c.branches].some(T=>T.contains(k))||(o==null||o(_),s==null||s(_),_.defaultPrevented||a==null||a())},f);return E$e(_=>{b===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_q=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),kq(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=_q)}},[u,f,n,c]),y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),kq())},[u,c]),y.useEffect(()=>{const _=()=>h({});return document.addEventListener(xB,_),()=>document.removeEventListener(xB,_)},[]),D.jsx(Qe.div,{...l,ref:p,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,E.onPointerDownCapture)})});pg.displayName=S$e;var C$e="DismissableLayerBranch",dde=y.forwardRef((e,t)=>{const n=y.useContext(ude),r=y.useRef(null),i=xt(t,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),D.jsx(Qe.div,{...e,ref:i})});dde.displayName=C$e;function T$e(e,t=globalThis==null?void 0:globalThis.document){const n=Vo(e),r=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){fde(_$e,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function A$e(e,t=globalThis==null?void 0:globalThis.document){const n=Vo(e),r=y.useRef(!1);return y.useEffect(()=>{const i=o=>{o.target&&!r.current&&fde(k$e,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kq(){const e=new CustomEvent(xB);document.dispatchEvent(e)}function fde(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?O5(i,o):i.dispatchEvent(o)}var O$e=pg,P$e=dde,zr=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},I$e="Portal",mg=y.forwardRef((e,t)=>
67{var a;const{container:n,...r}=e,[i,o]=y.useState(!1);zr(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Zv.createPortal(D.jsx(Qe.div,{...r,ref:t}),s):null});mg.displayName=I$e;function R$e(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var no=e=>{const{present:t,children:n}=e,r=M$e(t),i=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=xt(r.ref,N$e(i));return typeof n=="function"||r.isPresent?y.cloneElement(i,{ref:o}):null};no.displayName="Presence";function M$e(e){const[t,n]=y.useState(),r=y.useRef(null),i=y.useRef(e),o=y.useRef("none"),s=e?"mounted":"unmounted",[a,l]=R$e(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=tk(r.current);o.current=a==="mounted"?c:"none"},[a]),zr(()=>{const c=r.current,u=i.current;if(u!==e){const f=o.current,h=tk(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),zr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const m=tk(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(l("ANIMATION_END"),!i.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=h=>{h.target===t&&(o.current=tk(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function tk(e){return(e==null?void 0:e.animationName)||"none"}function N$e(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var D$e=Lb[" useInsertionEffect ".trim().toString()]||zr;function Wo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=L$e({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const u=y.useRef(e!==void 0);y.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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.`),u.current=a},[a,r])}const c=y.useCallback(u=>{var d;if(a){const f=$$e(u)?u(e):u;f!==e&&((d=s.current)==null||d.call(s,f))}else o(u)},[a,e,o,s]);return[l,c]}function L$e({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),i=y.useRef(n),o=y.useRef(t);return D$e(()=>{o.current=t},[t]),y.useEffect(()=>{var s;i.current!==n&&((s=o.current)==null||s.call(o,n),i.current=n)},[n,i]),[n,r,o]}function $$e(e){return typeof e=="function"}var hde=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"}),F$e="VisuallyHidden",gR=y.forwardRef((e,t)=>D.jsx(Qe.span,{...e,ref:t,style:{...hde,...e.style}}));gR.displayName=F$e;var B$e=gR,P5="ToastProvider",[I5,j$e,z$e]=rS("Toast"),[pde]=Ri("Toast",[z$e]),[U$e,vR]=pde(P5),mde=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,l]=y.useState(null),[c,u]=y.useState(0),d=y.useRef(!1),f=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${P5}\`. Expected non-empty \`string\`.`),D.jsx(I5.Provider,{scope:t,children:D.jsx(U$e,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>u(h=>h+1),[]),onToastRemove:y.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};mde.displayName=P5;var gde="ToastViewport",V$e=["F8"],EB="toast.viewportPause",SB="toast.viewportResume",vde=y.forwardRef((e,t)=>
67{const{__scopeToast:n,hotkey:r=V$e,label:i="Notifications ({hotkey})",...o}=e,s=vR(gde,n),a=j$e(n),l=y.useRef(null),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),f=xt(t,d,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),p=s.toastCount>0;y.useEffect(()=>{const g=v=>{var w;r.length!==0&&r.every(x=>v[x]||v.code===x)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[r]),y.useEffect(()=>{const g=l.current,v=d.current;if(p&&g&&v){const b=()=>{if(!s.isClosePausedRef.current){const S=new CustomEvent(EB);v.dispatchEvent(S),s.isClosePausedRef.current=!0}},w=()=>{if(s.isClosePausedRef.current){const S=new CustomEvent(SB);v.dispatchEvent(S),s.isClosePausedRef.current=!1}},x=S=>{!g.contains(S.relatedTarget)&&w()},E=()=>{g.contains(document.activeElement)||w()};return g.addEventListener("focusin",b),g.addEventListener("focusout",x),g.addEventListener("pointermove",b),g.addEventListener("pointerleave",E),window.addEventListener("blur",b),window.addEventListener("focus",w),()=>{g.removeEventListener("focusin",b),g.removeEventListener("focusout",x),g.removeEventListener("pointermove",b),g.removeEventListener("pointerleave",E),window.removeEventListener("blur",b),window.removeEventListener("focus",w)}}},[p,s.isClosePausedRef]);const m=y.useCallback(({tabbingDirection:g})=>{const b=a().map(w=>{const x=w.ref.current,E=[x,...nFe(x)];return g==="forwards"?E:E.reverse()});return(g==="forwards"?b.reverse():b).flat()},[a]);return y.useEffect(()=>{const g=d.current;if(g){const v=b=>{var E,S,_;const w=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!w){const k=document.activeElement,C=b.shiftKey;if(b.target===g&&C){(E=c.current)==null||E.focus();return}const O=m({tabbingDirection:C?"backwards":"forwards"}),R=O.findIndex(I=>I===k);g2(O.slice(R+1))?b.preventDefault():C?(S=c.current)==null||S.focus():(_=u.current)==null||_.focus()}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[a,m]),D.jsxs(P$e,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:p?void 0:"none"},children:[p&&D.jsx(_B,{ref:c,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});g2(g)}}),D.jsx(I5.Slot,{scope:n,children:D.jsx(Qe.ol,{tabIndex:-1,...o,ref:f})}),p&&D.jsx(_B,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});g2(g)}})]})});vde.displayName=gde;var yde="ToastFocusProxy",_B=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=vR(yde,n);return D.jsx(gR,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var c;const a=s.relatedTarget;!((c=o.viewport)!=null&&c.contains(a))&&r()}})});_B.displayName=yde;var iS="Toast",W$e="toast.swipeStart",H$e="toast.swipeMove",K$e="toast.swipeCancel",q$e="toast.swipeEnd",bde=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[a,l]=Wo({prop:r,defaultProp:i??!0,onChange:o,caller:iS});return D.jsx(no,{present:n||a,children:D.jsx(X$e,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Vo(e.onPause),onResume:Vo(e.onResume),onSwipeStart:Ee(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});bde.displayName=iS;var[G$e,Y$e]=pde(iS,{onClose(){}}),X$e=y.forwardRef((e,t)=>
67{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...p}=e,m=vR(iS,n),[g,v]=y.useState(null),b=xt(t,I=>v(I)),w=y.useRef(null),x=y.useRef(null),E=i||m.duration,S=y.useRef(0),_=y.useRef(E),k=y.useRef(0),{onToastAdd:C,onToastRemove:T}=m,A=Vo(()=>{var F;(g==null?void 0:g.contains(document.activeElement))&&((F=m.viewport)==null||F.focus()),s()}),O=y.useCallback(I=>{!I||I===1/0||(window.clearTimeout(k.current),S.current=new Date().getTime(),k.current=window.setTimeout(A,I))},[A]);y.useEffect(()=>{const I=m.viewport;if(I){const F=()=>{O(_.current),c==null||c()},N=()=>{const B=new Date().getTime()-S.current;_.current=_.current-B,window.clearTimeout(k.current),l==null||l()};return I.addEventListener(EB,N),I.addEventListener(SB,F),()=>{I.removeEventListener(EB,N),I.removeEventListener(SB,F)}}},[m.viewport,E,l,c,O]),y.useEffect(()=>{o&&!m.isClosePausedRef.current&&O(E)},[o,E,m.isClosePausedRef,O]),y.useEffect(()=>(C(),()=>T()),[C,T]);const R=y.useMemo(()=>g?Cde(g):null,[g]);return m.viewport?D.jsxs(D.Fragment,{children:[R&&D.jsx(Z$e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:R}),D.jsx(G$e,{scope:n,onClose:A,children:pr.createPortal(D.jsx(I5.ItemSlot,{scope:n,children:D.jsx(O$e,{asChild:!0,onEscapeKeyDown:Ee(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||A(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:D.jsx(Qe.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...p,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:Ee(e.onPointerDown,I=>{I.button===0&&(w.current={x:I.clientX,y:I.clientY})}),onPointerMove:Ee(e.onPointerMove,I=>{if(!w.current)return;const F=I.clientX-w.current.x,N=I.clientY-w.current.y,B=!!x.current,M=["left","right"].includes(m.swipeDirection),L=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,P=M?L(0,F):0,G=M?0:L(0,N),Z=I.pointerType==="touch"?10:2,z={x:P,y:G},oe={originalEvent:I,delta:z};B?(x.current=z,nk(H$e,d,oe,{discrete:!1})):Cq(z,m.swipeDirection,Z)?(x.current=z,nk(W$e,u,oe,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(F)>Z||Math.abs(N)>Z)&&(w.current=null)}),onPointerUp:Ee(e.onPointerUp,I=>{const F=x.current,N=I.target;if(N.hasPointerCapture(I.pointerId)&&N.releasePointerCapture(I.pointerId),x.current=null,w.current=null,F){const B=I.currentTarget,M={originalEvent:I,delta:F};Cq(F,m.swipeDirection,m.swipeThreshold)?nk(q$e,h,M,{discrete:!0}):nk(K$e,f,M,{discrete:!0}),B.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Z$e=e=>{const{__scopeToast:t,children:n,...r}=e,i=vR(iS,t),[o,s]=y.useState(!1),[a,l]=y.useState(!1);return eFe(()=>s(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:D.jsx(mg,{asChild:!0,children:D.jsx(gR,{...r,children:o&&D.jsxs(D.Fragment,{children:[i.label," ",n]})})})},Q$e="ToastTitle",wde=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return D.jsx(Qe.div,{...r,ref:t})});wde.displayName=Q$e;var J$e="ToastDescription",xde=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return D.jsx(Qe.div,{...r,ref:t})});xde.displayName=J$e;var Ede="ToastAction",Sde=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?D.jsx(kde,{altText:n,asChild:!0,children:D.jsx(R5,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ede}\`. Expected non-empty \`string\`.`),null)});Sde.displayName=Ede;var _de="ToastClose",R5=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=Y$e(_de,n);return D.jsx(kde,{asChild:!0,children:D.jsx(Qe.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,i.onClose)})})});R5.displayName=_de;var kde=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return D.jsx(Qe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Cde(e){const t=[];
vendor: 4,297 bytes, lines 67-92
67return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),tFe(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Cde(r))}}),t}function nk(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?O5(i,o):i.dispatchEvent(o)}var Cq=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function eFe(e=()=>{}){const t=Vo(e);zr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function tFe(e){return e.nodeType===e.ELEMENT_NODE}function nFe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function g2(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var tJt=mde,nJt=vde,rJt=bde,iJt=wde,oJt=xde,sJt=Sde,aJt=R5;function Tde(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Tde(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Tde(e))&&(r&&(r+=" "),r+=t);return r}const Tq=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Aq=Wt,lJt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Aq(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=o==null?void 0:o[c];if(u===null)return null;const f=Tq(u)||Tq(d);return i[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(p=>{let[m,g]=p;return Array.isArray(g)?g.includes({...o,...a}[m]):{...o,...a}[m]===g})?[...c,d,f]:c},[]);return Aq(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 68 * @license lucide-react v0.477.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const rFe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ade=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 73 * @license lucide-react v0.477.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */var iFe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 78 * @license lucide-react v0.477.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const oFe=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>y.createElement("svg",{ref:l,...iFe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ade("lucide",i),...a},[...s.map(([c,u])=>y.createElement(c,u)),...Array.isArray(o)?o:[o]]));/** 83 * @license lucide-react v0.477.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const ee=(e,t)=>{const n=y.forwardRef(({className:r,...i},o)=>y.createElement(oFe,{ref:o,iconNode:t,className:Ade(`lucide-${rFe(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 88 * @license lucide-react v0.477.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const sFe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
92-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],cJt=ee("Activity",sFe);/** 93 * @license lucide-react v0.477.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const aFe=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],uJt=ee("Archive",aFe);/** 98 * @license lucide-react v0.477.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const lFe=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],dJt=ee("ArrowLeft",lFe);/** 103 * @license lucide-react v0.477.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const cFe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],fJt=ee("ArrowRight",cFe);/** 108 * @license lucide-react v0.477.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const uFe=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],hJt=ee("ArrowUpDown",uFe);/** 113 * @license lucide-react v0.477.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const dFe=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],pJt=ee("ArrowUp",dFe);/** 118 * @license lucide-react v0.477.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const fFe=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],mJt=ee("Asterisk",fFe);/** 123 * @license lucide-react v0.477.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const hFe=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],gJt=ee("Award",hFe);/** 128 * @license lucide-react v0.477.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const pFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],vJt=ee("Ban",pFe);/** 133 * @license lucide-react v0.477.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const mFe=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],yJt=ee("Bold",mFe);/** 138 * @license lucide-react v0.477.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const gFe=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],bJt=ee("Bolt",gFe);/** 143 * @license lucide-react v0.477.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const vFe=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],wJt=ee("BookOpen",vFe);/** 148 * @license lucide-react v0.477.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const yFe=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],xJt=ee("Book",yFe);/** 153 * @license lucide-react v0.477.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const bFe=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],EJt=ee("Bookmark",bFe);/** 158 * @license lucide-react v0.477.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const wFe=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],SJt=ee("Bot",wFe);/** 163 * @license lucide-react v0.477.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const xFe=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],_Jt=ee("Brain",xFe);/** 168 * @license lucide-react v0.477.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const EFe=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
172],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],kJt=ee("Building2",EFe);/** 173 * @license lucide-react v0.477.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const SFe=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],CJt=ee("Calendar",SFe);/** 178 * @license lucide-react v0.477.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const _Fe=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],TJt=ee("ChartColumn",_Fe);/** 183 * @license lucide-react v0.477.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const kFe=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],AJt=ee("ChartNoAxesColumn",kFe);/** 188 * @license lucide-react v0.477.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const CFe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],OJt=ee("Check",CFe);/** 193 * @license lucide-react v0.477.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const TFe=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],PJt=ee("ChevronDown",TFe);/** 198 * @license lucide-react v0.477.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const AFe=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],IJt=ee("ChevronLeft",AFe);/** 203 * @license lucide-react v0.477.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const OFe=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],RJt=ee("ChevronRight",OFe);/** 208 * @license lucide-react v0.477.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const PFe=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],MJt=ee("ChevronUp",PFe);/** 213 * @license lucide-react v0.477.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const IFe=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],NJt=ee("ChevronsUpDown",IFe);/** 218 * @license lucide-react v0.477.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const RFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],DJt=ee("CircleAlert",RFe);/** 223 * @license lucide-react v0.477.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const MFe=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],LJt=ee("CircleCheckBig",MFe);/** 228 * @license lucide-react v0.477.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const NFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$Jt=ee("CircleCheck",NFe);/** 233 * @license lucide-react v0.477.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const DFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],FJt=ee("CircleHelp",DFe);/** 238 * @license lucide-react v0.477.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const LFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],BJt=ee("CirclePause",LFe);/** 243 * @license lucide-react v0.477.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const $Fe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],jJt=ee("CirclePlus",$Fe);/** 248 * @license lucide-react v0.477.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const FFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],zJt=ee("CircleX",FFe);/** 253 * @license lucide-react v0.477.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const BFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],UJt=ee("Circle",BFe);/** 258 * @license lucide-react v0.477.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree.
262 */const jFe=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],VJt=ee("Clipboard",jFe);/** 263 * @license lucide-react v0.477.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const zFe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],WJt=ee("Clock",zFe);/** 268 * @license lucide-react v0.477.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const UFe=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],HJt=ee("CodeXml",UFe);/** 273 * @license lucide-react v0.477.0 - ISC 274 * 275 * This source code is licensed under the ISC license. 276 * See the LICENSE file in the root directory of this source tree. 277 */const VFe=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],KJt=ee("Code",VFe);/** 278 * @license lucide-react v0.477.0 - ISC 279 * 280 * This source code is licensed under the ISC license. 281 * See the LICENSE file in the root directory of this source tree. 282 */const WFe=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],qJt=ee("Compass",WFe);/** 283 * @license lucide-react v0.477.0 - ISC 284 * 285 * This source code is licensed under the ISC license. 286 * See the LICENSE file in the root directory of this source tree. 287 */const HFe=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],GJt=ee("Copy",HFe);/** 288 * @license lucide-react v0.477.0 - ISC 289 * 290 * This source code is licensed under the ISC license. 291 * See the LICENSE file in the root directory of this source tree. 292 */const KFe=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
292],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],YJt=ee("Cpu",KFe);/** 293 * @license lucide-react v0.477.0 - ISC 294 * 295 * This source code is licensed under the ISC license. 296 * See the LICENSE file in the root directory of this source tree. 297 */const qFe=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],XJt=ee("CreditCard",qFe);/** 298 * @license lucide-react v0.477.0 - ISC 299 * 300 * This source code is licensed under the ISC license. 301 * See the LICENSE file in the root directory of this source tree. 302 */const GFe=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],ZJt=ee("Crown",GFe);/** 303 * @license lucide-react v0.477.0 - ISC 304 * 305 * This source code is licensed under the ISC license. 306 * See the LICENSE file in the root directory of this source tree. 307 */const YFe=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],QJt=ee("DollarSign",YFe);/** 308 * @license lucide-react v0.477.0 - ISC 309 * 310 * This source code is licensed under the ISC license. 311 * See the LICENSE file in the root directory of this source tree. 312 */const XFe=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],JJt=ee("Download",XFe);/** 313 * @license lucide-react v0.477.0 - ISC 314 * 315 * This source code is licensed under the ISC license. 316 * See the LICENSE file in the root directory of this source tree. 317 */const ZFe=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],een=ee("Droplets",ZFe);/** 318 * @license lucide-react v0.477.0 - ISC 319 * 320 * This source code is licensed under the ISC license. 321 * See the LICENSE file in the root directory of this source tree. 322 */const QFe=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],ten=ee("EllipsisVertical",QFe);/** 323 * @license lucide-react v0.477.0 - ISC 324 * 325 * This source code is licensed under the ISC license. 326 * See the LICENSE file in the root directory of this source tree. 327 */const JFe=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],nen=ee("Ellipsis",JFe);/** 328 * @license lucide-react v0.477.0 - ISC 329 * 330 * This source code is licensed under the ISC license. 331 * See the LICENSE file in the root directory of this source tree. 332 */const eBe=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ren=ee("ExternalLink",eBe);/** 333 * @license lucide-react v0.477.0 - ISC 334 * 335 * This source code is licensed under the ISC license. 336 * See the LICENSE file in the root directory of this source tree. 337 */const tBe=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ien=ee("EyeOff",tBe);/** 338 * @license lucide-react v0.477.0 - ISC 339 * 340 * This source code is licensed under the ISC license. 341 * See the LICENSE file in the root directory of this source tree. 342 */const nBe=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],oen=ee("Eye",nBe);/** 343 * @license lucide-react v0.477.0 - ISC 344 * 345 * This source code is licensed under the ISC license. 346 * See the LICENSE file in the root directory of this source tree. 347 */const rBe=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",ke
347y:"1mlx9k"}]],sen=ee("FileCode",rBe);/** 348 * @license lucide-react v0.477.0 - ISC 349 * 350 * This source code is licensed under the ISC license. 351 * See the LICENSE file in the root directory of this source tree. 352 */const iBe=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"fq0c9t"}],["path",{d:"M8 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"4gibmv"}]],aen=ee("FileJson2",iBe);/** 353 * @license lucide-react v0.477.0 - ISC 354 * 355 * This source code is licensed under the ISC license. 356 * See the LICENSE file in the root directory of this source tree. 357 */const oBe=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],len=ee("FileText",oBe);/** 358 * @license lucide-react v0.477.0 - ISC 359 * 360 * This source code is licensed under the ISC license. 361 * See the LICENSE file in the root directory of this source tree. 362 */const sBe=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],cen=ee("Filter",sBe);/** 363 * @license lucide-react v0.477.0 - ISC 364 * 365 * This source code is licensed under the ISC license. 366 * See the LICENSE file in the root directory of this source tree. 367 */const aBe=[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]],uen=ee("Flag",aBe);/** 368 * @license lucide-react v0.477.0 - ISC 369 * 370 * This source code is licensed under the ISC license. 371 * See the LICENSE file in the root directory of this source tree. 372 */const lBe=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],den=ee("Flame",lBe);/** 373 * @license lucide-react v0.477.0 - ISC 374 * 375 * This source code is licensed under the ISC license. 376 * See the LICENSE file in the root directory of this source tree. 377 */const cBe=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],fen=ee("FlaskConical",cBe);/** 378 * @license lucide-react v0.477.0 - ISC 379 * 380 * This source code is licensed under the ISC license. 381 * See the LICENSE file in the root directory of this source tree. 382 */const uBe=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],hen=ee("FolderOpen",uBe);/** 383 * @license lucide-react v0.477.0 - ISC 384 * 385 * This source code is licensed under the ISC license. 386 * See the LICENSE file in the root directory of this source tree. 387 */const dBe=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],pen=ee("FolderPlus",dBe);/** 388 * @license lucide-react v0.477.0 - ISC 389 * 390 * This source code is licensed under the ISC license. 391 * See the LICENSE file in the root directory of this source tree. 392 */const fBe=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9.5 10.5 5 5",key:"ra9qjz"}],["path",{d:"m14.5 10.5-5 5",key:"l2rkpq"}]],men=ee("FolderX",fBe);/** 393 * @license lucide-react v0.477.0 - ISC 394 * 395 * This source code is licensed under the ISC license. 396 * See the LICENSE file in the root directory of this source tree. 397 */const hBe=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],gen=ee("Folder",hBe);/** 398 * @license lucide-react v0.477.0 - ISC 399 * 400 * This source code is licensed under the ISC license. 401 * See the LICENSE file in the root directory of this source tree. 402 */const pBe=[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]],ven=ee("Gem",pBe);/** 403 * @license lucide-react v0.477.0 - ISC 404 * 405 * This source code is licensed under the ISC license. 406 * See the LICENSE file in the root directory of this source tree. 407 */const mBe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],yen=ee("Globe",mBe);/** 408 * @license lucide-react v0.477.0 - ISC 409 * 410 * This source code is licensed under the ISC license. 411 * See the LICENSE file in the root directory of this source tree. 412 */const gBe=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
412]],ben=ee("Hash",gBe);/** 413 * @license lucide-react v0.477.0 - ISC 414 * 415 * This source code is licensed under the ISC license. 416 * See the LICENSE file in the root directory of this source tree. 417 */const vBe=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],wen=ee("History",vBe);/** 418 * @license lucide-react v0.477.0 - ISC 419 * 420 * This source code is licensed under the ISC license. 421 * See the LICENSE file in the root directory of this source tree. 422 */const yBe=[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]],xen=ee("Highlighter",yBe);/** 423 * @license lucide-react v0.477.0 - ISC 424 * 425 * This source code is licensed under the ISC license. 426 * See the LICENSE file in the root directory of this source tree. 427 */const bBe=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Een=ee("House",bBe);/** 428 * @license lucide-react v0.477.0 - ISC 429 * 430 * This source code is licensed under the ISC license. 431 * See the LICENSE file in the root directory of this source tree. 432 */const wBe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Sen=ee("Image",wBe);/** 433 * @license lucide-react v0.477.0 - ISC 434 * 435 * This source code is licensed under the ISC license. 436 * See the LICENSE file in the root directory of this source tree. 437 */const xBe=[["path",{d:"M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z",key:"1z0uae"}]],_en=ee("Infinity",xBe);/** 438 * @license lucide-react v0.477.0 - ISC 439 * 440 * This source code is licensed under the ISC license. 441 * See the LICENSE file in the root directory of this source tree. 442 */const EBe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ken=ee("Info",EBe);/** 443 * @license lucide-react v0.477.0 - ISC 444 * 445 * This source code is licensed under the ISC license. 446 * See the LICENSE file in the root directory of this source tree. 447 */const SBe=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],Cen=ee("Italic",SBe);/** 448 * @license lucide-react v0.477.0 - ISC 449 * 450 * This source code is licensed under the ISC license. 451 * See the LICENSE file in the root directory of this source tree. 452 */const _Be=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Ten=ee("Key",_Be);/** 453 * @license lucide-react v0.477.0 - ISC 454 * 455 * This source code is licensed under the ISC license. 456 * See the LICENSE file in the root directory of this source tree. 457 */const kBe=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],Aen=ee("Keyboard",kBe);/** 458 * @license lucide-react v0.477.0 - ISC 459 * 460 * This source code is licensed under the ISC license. 461 * See the LICENSE file in the root directory of this source tree. 462 */const CBe=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Oen=ee("Layers",CBe);/** 463 * @license lucide-react v0.477.0 - ISC 464 * 465 * This source code is licensed under the ISC license. 466 * See the LICENSE file in the root directory of this source tree. 467 */const TBe=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Pen=ee("LayoutDashboard",TBe);/** 468 * @license lucide-react v0.477.0 - ISC 469 * 470 * This source code is licensed under the ISC license. 471 * See the LICENSE file in the root directory of this source tree. 472 */const ABe=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}
472],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Ien=ee("Library",ABe);/** 473 * @license lucide-react v0.477.0 - ISC 474 * 475 * This source code is licensed under the ISC license. 476 * See the LICENSE file in the root directory of this source tree. 477 */const OBe=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Ren=ee("Lightbulb",OBe);/** 478 * @license lucide-react v0.477.0 - ISC 479 * 480 * This source code is licensed under the ISC license. 481 * See the LICENSE file in the root directory of this source tree. 482 */const PBe=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Men=ee("Link2",PBe);/** 483 * @license lucide-react v0.477.0 - ISC 484 * 485 * This source code is licensed under the ISC license. 486 * See the LICENSE file in the root directory of this source tree. 487 */const IBe=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],Nen=ee("ListOrdered",IBe);/** 488 * @license lucide-react v0.477.0 - ISC 489 * 490 * This source code is licensed under the ISC license. 491 * See the LICENSE file in the root directory of this source tree. 492 */const RBe=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Den=ee("List",RBe);/** 493 * @license lucide-react v0.477.0 - ISC 494 * 495 * This source code is licensed under the ISC license. 496 * See the LICENSE file in the root directory of this source tree. 497 */const MBe=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Len=ee("LoaderCircle",MBe);/** 498 * @license lucide-react v0.477.0 - ISC 499 * 500 * This source code is licensed under the ISC license. 501 * See the LICENSE file in the root directory of this source tree. 502 */const NBe=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],$en=ee("Lock",NBe);/** 503 * @license lucide-react v0.477.0 - ISC 504 * 505 * This source code is licensed under the ISC license. 506 * See the LICENSE file in the root directory of this source tree. 507 */const DBe=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],Fen=ee("LogIn",DBe);/** 508 * @license lucide-react v0.477.0 - ISC 509 * 510 * This source code is licensed under the ISC license. 511 * See the LICENSE file in the root directory of this source tree. 512 */const LBe=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Ben=ee("LogOut",LBe);/** 513 * @license lucide-react v0.477.0 - ISC 514 * 515 * This source code is licensed under the ISC license. 516 * See the LICENSE file in the root directory of this source tree. 517 */const $Be=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],jen=ee("Mail",$Be);/** 518 * @license lucide-react v0.477.0 - ISC 519 * 520 * This source code is licensed under the ISC license. 521 * See the LICENSE file in the root directory of this source tree. 522 */const FBe=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],zen=ee("Map",FBe);/** 523 * @license lucide-react v0.477.0 - ISC 524 * 525 * This source code is licensed under the ISC license. 526 * See the LICENSE file in the root directory of this source tree. 527 */const BBe=[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]],Uen=ee("MemoryStick",BBe);/** 528 * @license lucide-react v0.477.0 - ISC 529 * 530 * This source code is licensed under the ISC license. 531 * See the LICENSE file in the root directory of this source tree. 532 */const jBe=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Ven=ee("Menu",jBe);/** 533 * @license lucide-react v0.477.0 - ISC 534 * 535 * This source code is licensed under the ISC license. 536 * See the LICENSE file in the root directory of this source tree. 537 */const zBe=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Wen=ee("MessageSquare",zBe);/** 538 * @license lucide-react v0.477.0 - ISC 539 * 540 * This source code is licensed under the ISC license. 541 * See the LICENSE file in the root directory of this source tree. 542 */const UBe=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],Hen=ee("Mic",UBe);/** 543 * @license lucide-react v0.477.0 - ISC 544 * 545 * This source code is licensed under the ISC license. 546 * See the LICENSE file in the root directory of this source tree. 547 */const VBe=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Ken=ee("Moon",VBe);/** 548 * @license lucide-react v0.477.0 - ISC 549 * 550 * This source code is licensed under the ISC license. 551 * See the LICENSE file in the root directory of this source tree. 552 */const WBe=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],qen=ee("Mountain",WBe);/** 553 * @license lucide-react v0.477.0 - ISC 554 * 555 * This source code is licensed under the ISC license. 556 * See the LICENSE file in the root directory of this source tree. 557 */const HBe=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],Gen=ee("Palette",HBe);/** 558 * @license lucide-react v0.477.0 - ISC 559 * 560 * This source code is licensed under the ISC license. 561 * See the LICENSE file in the root directory of this source tree. 562 */const KBe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Yen=ee("PanelLeft",KBe);/** 563 * @license lucide-react v0.477.0 - ISC 564 * 565 * This source code is licensed under the ISC license. 566 * See the LICENSE file in the root directory of this source tree. 567 */const qBe=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],Xen=ee("Pause",qBe);/** 568 * @license lucide-react v0.477.0 - ISC 569 * 570 * This source code is licensed under the ISC license. 571 * See the LICENSE file in the root directory of this source tree. 572 */const GBe=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],Zen=ee("PenLine",GBe);/** 573 * @license lucide-react v0.477.0 - ISC 574 * 575 * This source code is licensed under the ISC license. 576 * See the LICENSE file in the root directory of this source tree. 577 */const YBe=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Qen=ee("Pen",YBe);/** 578 * @license lucide-react v0.477.0 - ISC 579 * 580 * This source code is licensed under the ISC license. 581 * See the LICENSE file in the root directory of this source tree. 582 */const XBe=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Jen=ee("Pencil",XBe);/** 583 * @license lucide-react v0.477.0 - ISC 584 * 585 * This source code is licensed under the ISC license. 586 * See the LICENSE file in the root directory of this source tree. 587 */const ZBe=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],etn=ee("Play",ZBe);/** 588 * @license lucide-react v0.477.0 - ISC 589 * 590 * This source code is licensed under the ISC license. 591 * See the LICENSE file in the root directory of this source tree. 592 */const QBe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ttn=ee("Plus",QBe);/** 593 * @license lucide-react v0.477.0 - ISC 594 * 595 * This source code is licensed under the ISC license. 596 * See the LICENSE file in the root directory of this source tree. 597 */const JBe=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],ntn=ee("Puzzle",JBe);/** 598 * @license lucide-react v0.477.0 - ISC 599 * 600 * This source code is licensed under the ISC license. 601 * See the LICENSE file in the root directory of this source tree. 602 */const eje=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],rtn=ee("Quote",eje);/** 603 * @license lucide-react v0.477.0 - ISC 604 * 605 * This source code is licensed under the ISC license. 606 * See the LICENSE file in the root directory of this source tree. 607 */const tje=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],itn=ee("Redo",tje);/** 608 * @license lucide-react v0.477.0 - ISC 609 * 610 * This source code is licensed under the ISC license. 611 * See the LICENSE file in the root directory of this source tree. 612 */const nje=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],otn=ee("RefreshCw",nje);/** 613 * @license lucide-react v0.477.0 - ISC 614 * 615 * This source code is licensed under the ISC license. 616 * See the LICENSE file in the root directory of this source tree. 617 */const rje=[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]],stn=ee("RemoveFormatting",rje);/** 618 * @license lucide-react v0.477.0 - ISC 619 * 620 * This source code is licensed under the ISC license. 621 * See the LICENSE file in the root directory of this source tree. 622 */const ije=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],atn=ee("Repeat",ije);/** 623 * @license lucide-react v0.477.0 - ISC 624 * 625 * This source code is licensed under the ISC license. 626 * See the LICENSE file in the root directory of this source tree. 627 */const oje=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],ltn=ee("RotateCcw",oje);/** 628 * @license lucide-react v0.477.0 - ISC 629 * 630 * This source code is licensed under the ISC license. 631 * See the LICENSE file in the root directory of this source tree. 632 */const sje=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],ctn=ee("Save",sje);/** 633 * @license lucide-react v0.477.0 - ISC 634 * 635 * This source code is licensed under the ISC license. 636 * See the LICENSE file in the root directory of this source tree. 637 */const aje=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],utn=ee("Search",aje);/** 638 * @license lucide-react v0.477.0 - ISC 639 * 640 * This source code is licensed under the ISC license. 641 * See the LICENSE file in the root directory of this source tree. 642 */const lje=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],dtn=ee("Send",lje);/** 643 * @license lucide-react v0.477.0 - ISC 644 * 645 * This source code is licensed under the ISC license. 646 * See the LICENSE file in the root directory of this source tree. 647 */const cje=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ftn=ee("Settings",cje);/** 648 * @license lucide-react v0.477.0 - ISC 649 * 650 * This source code is licensed under the ISC license. 651 * See the LICENSE file in the root directory of this source tree. 652 */const uje=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],htn=ee("Share2",uje);/** 653 * @license lucide-react v0.477.0 - ISC 654 * 655 * This source code is licensed under the ISC license. 656 * See the LICENSE file in the root directory of this source tree. 657 */const dje=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
657y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ptn=ee("ShieldAlert",dje);/** 658 * @license lucide-react v0.477.0 - ISC 659 * 660 * This source code is licensed under the ISC license. 661 * See the LICENSE file in the root directory of this source tree. 662 */const fje=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mtn=ee("ShieldCheck",fje);/** 663 * @license lucide-react v0.477.0 - ISC 664 * 665 * This source code is licensed under the ISC license. 666 * See the LICENSE file in the root directory of this source tree. 667 */const hje=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],gtn=ee("Shield",hje);/** 668 * @license lucide-react v0.477.0 - ISC 669 * 670 * This source code is licensed under the ISC license. 671 * See the LICENSE file in the root directory of this source tree. 672 */const pje=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],vtn=ee("ShoppingCart",pje);/** 673 * @license lucide-react v0.477.0 - ISC 674 * 675 * This source code is licensed under the ISC license. 676 * See the LICENSE file in the root directory of this source tree. 677 */const mje=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],ytn=ee("Shuffle",mje);/** 678 * @license lucide-react v0.477.0 - ISC 679 * 680 * This source code is licensed under the ISC license. 681 * See the LICENSE file in the root directory of this source tree. 682 */const gje=[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]],btn=ee("SkipForward",gje);/** 683 * @license lucide-react v0.477.0 - ISC 684 * 685 * This source code is licensed under the ISC license. 686 * See the LICENSE file in the root directory of this source tree. 687 */const vje=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],wtn=ee("SlidersHorizontal",vje);/** 688 * @license lucide-react v0.477.0 - ISC 689 * 690 * This source code is licensed under the ISC license. 691 * See the LICENSE file in the root directory of this source tree. 692 */const yje=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],xtn=ee("Smile",yje);/** 693 * @license lucide-react v0.477.0 - ISC 694 * 695 * This source code is licensed under the ISC license. 696 * See the LICENSE file in the root directory of this source tree. 697 */const bje=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],Etn=ee("Snowflake",bje);/** 698 * @license lucide-react v0.477.0 - ISC 699 * 700 * This source code is licensed under the ISC license. 701 * See the LICENSE file in the root directory of this source tree. 702 */const wje=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Stn=ee("Sparkles",wje);/** 703 * @license lucide-react v0.477.0 - ISC 704 * 705 * This source code is licensed under the ISC license. 706 * See the LICENSE file in the root directory of this source tree. 707 */const xje=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],_tn=ee("SquarePen",xje);/** 708 * @license lucide-react v0.477.0 - ISC 709 * 710 * This source code is licensed under the ISC license. 711 * See the LICENSE file in the root directory of this source tree. 712 */const Eje=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],ktn=ee("Star",Eje);/** 713 * @license lucide-react v0.477.0 - ISC 714 * 715 * This source code is licensed under the ISC license. 716 * See the LICENSE file in the root directory of this source tree. 717 */const Sje=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],Ctn=ee("Strikethrough",Sje);/** 718 * @license lucide-react v0.477.0 - ISC 719 * 720 * This source code is licensed under the ISC license. 721 * See the LICENSE file in the root directory of this source tree. 722 */const _je=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Ttn=ee("Sun",_je);/** 723 * @license lucide-react v0.477.0 - ISC 724 * 725 * This source code is licensed under the ISC license. 726 * See the LICENSE file in the root directory of this source tree. 727 */const kje=[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}]],Atn=ee("Sword",kje);/** 728 * @license lucide-react v0.477.0 - ISC 729 * 730 * This source code is licensed under the ISC license. 731 * See the LICENSE file in the root directory of this source tree. 732 */const Cje=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Otn=ee("Target",Cje);/** 733 * @license lucide-react v0.477.0 - ISC 734 * 735 * This source code is licensed under the ISC license. 736 * See the LICENSE file in the root directory of this source tree. 737 */const Tje=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Ptn=ee("Terminal",Tje);/** 738 * @license lucide-react v0.477.0 - ISC 739 * 740 * This source code is licensed under the ISC license. 741 * See the LICENSE file in the root directory of this source tree.
742 */const Aje=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],Itn=ee("ThumbsDown",Aje);/** 743 * @license lucide-react v0.477.0 - ISC 744 * 745 * This source code is licensed under the ISC license. 746 * See the LICENSE file in the root directory of this source tree. 747 */const Oje=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],Rtn=ee("ThumbsUp",Oje);/** 748 * @license lucide-react v0.477.0 - ISC 749 * 750 * This source code is licensed under the ISC license. 751 * See the LICENSE file in the root directory of this source tree. 752 */const Pje=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Mtn=ee("Trash2",Pje);/** 753 * @license lucide-react v0.477.0 - ISC 754 * 755 * This source code is licensed under the ISC license. 756 * See the LICENSE file in the root directory of this source tree. 757 */const Ije=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],Ntn=ee("TrendingDown",Ije);/** 758 * @license lucide-react v0.477.0 - ISC 759 * 760 * This source code is licensed under the ISC license. 761 * See the LICENSE file in the root directory of this source tree. 762 */const Rje=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Dtn=ee("TrendingUp",Rje);/** 763 * @license lucide-react v0.477.0 - ISC 764 * 765 * This source code is licensed under the ISC license. 766 * See the LICENSE file in the root directory of this source tree. 767 */const Mje=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ltn=ee("TriangleAlert",Mje);/** 768 * @license lucide-react v0.477.0 - ISC 769 * 770 * This source code is licensed under the ISC license. 771 * See the LICENSE file in the root directory of this source tree. 772 */const Nje=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],$tn=ee("Trophy",Nje);/** 773 * @license lucide-react v0.477.0 - ISC 774 * 775 * This source code is licensed under the ISC license. 776 * See the LICENSE file in the root directory of this source tree. 777 */const Dje=[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]],Ftn=ee("Type",Dje);/** 778 * @license lucide-react v0.477.0 - ISC 779 * 780 * This source code is licensed under the ISC license. 781 * See the LICENSE file in the root directory of this source tree. 782 */const Lje=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],Btn=ee("Underline",Lje);/** 783 * @license lucide-react v0.477.0 - ISC 784 * 785 * This source code is licensed under the ISC license. 786 * See the LICENSE file in the root directory of this source tree. 787 */const $je=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],jtn=ee("Undo",$je);/** 788 * @license lucide-react v0.477.0 - ISC 789 * 790 * This source code is licensed under the ISC license. 791 * See the LICENSE file in the root directory of this source tree. 792 */const Fje=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}
792],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],ztn=ee("UserCheck",Fje);/** 793 * @license lucide-react v0.477.0 - ISC 794 * 795 * This source code is licensed under the ISC license. 796 * See the LICENSE file in the root directory of this source tree. 797 */const Bje=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],Utn=ee("UserX",Bje);/** 798 * @license lucide-react v0.477.0 - ISC 799 * 800 * This source code is licensed under the ISC license. 801 * See the LICENSE file in the root directory of this source tree. 802 */const jje=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Vtn=ee("User",jje);/** 803 * @license lucide-react v0.477.0 - ISC 804 * 805 * This source code is licensed under the ISC license. 806 * See the LICENSE file in the root directory of this source tree. 807 */const zje=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Wtn=ee("Users",zje);/** 808 * @license lucide-react v0.477.0 - ISC 809 * 810 * This source code is licensed under the ISC license. 811 * See the LICENSE file in the root directory of this source tree. 812 */const Uje=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],Htn=ee("Variable",Uje);/** 813 * @license lucide-react v0.477.0 - ISC 814 * 815 * This source code is licensed under the ISC license. 816 * See the LICENSE file in the root directory of this source tree. 817 */const Vje=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Ktn=ee("Video",Vje);/** 818 * @license lucide-react v0.477.0 - ISC 819 * 820 * This source code is licensed under the ISC license. 821 * See the LICENSE file in the root directory of this source tree. 822 */const Wje=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],qtn=ee("Volume2",Wje);/** 823 * @license lucide-react v0.477.0 - ISC 824 * 825 * This source code is licensed under the ISC license. 826 * See the LICENSE file in the root directory of this source tree. 827 */const Hje=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],Gtn=ee("Wind",Hje);/** 828 * @license lucide-react v0.477.0 - ISC 829 * 830 * This source code is licensed under the ISC license. 831 * See the LICENSE file in the root directory of this source tree. 832 */const Kje=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Ytn=ee("Workflow",Kje);/** 833 * @license lucide-react v0.477.0 - ISC 834 * 835 * This source code is licensed under the ISC license. 836 * See the LICENSE file in the root directory of this source tree. 837 */const qje=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xtn=ee("X",qje);/** 838 * @license lucide-react v0.477.0 - ISC 839 * 840 * This source code is licensed under the ISC license. 841 * See the LICENSE file in the root directory of this source tree. 842 */const Gje=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Ztn=ee("Zap",Gje),Yje=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Xje=(e,t)=>({classGroupId:e,validator:t}
vendor: 8,275 bytes, line 842
842),Ode=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),PA="-",Oq=[],Zje="arbitrary..",Qje=e=>{const t=e3e(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Jje(s);const a=s.split(PA),l=a[0]===""&&a.length>1?1:0;return Pde(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],c=n[s];return l?c?Yje(c,l):l:c||Oq}return n[s]||Oq}}},Pde=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const c=Pde(e,t+1,o);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(PA):e.slice(t).join(PA),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(a))return u.classGroupId}},Jje=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Zje+r:void 0})(),e3e=e=>{const{theme:t,classGroups:n}=e;return t3e(n,t)},t3e=(e,t)=>{const n=Ode();for(const r in e){const i=e[r];M5(i,n,r,t)}return n},M5=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];n3e(s,t,n,r)}},n3e=(e,t,n,r)=>{if(typeof e=="string"){r3e(e,t,n);return}if(typeof e=="function"){i3e(e,t,n,r);return}o3e(e,t,n,r)},r3e=(e,t,n)=>{const r=e===""?t:Ide(t,e);r.classGroupId=n},i3e=(e,t,n,r)=>{if(s3e(e)){M5(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xje(n,e))},o3e=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,l]=i[s];M5(l,Ide(t,a),n,r)}},Ide=(e,t)=>{let n=e;const r=t.split(PA),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=Ode(),n.nextPart.set(s,a)),n=a}return n},s3e=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,a3e=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},kB="!",Pq=":",l3e=[],Iq=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),c3e=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,l=0,c;const u=i.length;for(let m=0;m<u;m++){const g=i[m];if(s===0&&a===0){if(g===Pq){o.push(i.slice(l,m)),l=m+1;continue}if(g==="/"){c=m;continue}}g==="["?s++:g==="]"?s--:g==="("?a++:g===")"&&a--}const d=o.length===0?i:i.slice(l);let f=d,h=!1;d.endsWith(kB)?(f=d.slice(0,-1),h=!0):d.startsWith(kB)&&(f=d.slice(1),h=!0);const p=c&&c>l?c-l:void 0;return Iq(o,h,f,p)};if(t){const i=t+Pq,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):Iq(l3e,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},u3e=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",l=t.has(s);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},d3e=e=>({cache:a3e(e.cacheSize),parseClassName:c3e(e),sortModifiers:u3e(e),...Qje(e)}),f3e=/\s+/,h3e=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(f3e);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let g=!!m,v=r(g?p.substring(0,m):p);if(!v){if(!g){l=u+(l.length>0?" "+l:l);continue}if(v=r(p),!v){l=u+(l.length>0?" "+l:l);continue}g=!1}const b=f.length===0?"":f.length===1?f[0]:o(f).join(":"),w=h?b+kB:b,x=w+v;if(s.indexOf(x)>-1)continue;s.push(x);const E=i(v,g);for(let S=0;S<E.length;++S){const _=E[S];s.push(w+_)}l=u+(l.length>0?" "+l:l)}return l},p3e=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Rde(n))&&(i&&(i+=" "),i+=r);return i},Rde=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rde(e[r]))&&(n&&(n+=" "),n+=t);return n},m3e=(e,...t)=>{let n,r,i,o;const s=l=>{const c=t.reduce((u,d)=>d(u),e());return n=d3e(c),r=n.cache.get,i=n.cache.set,o=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=h3e(l,n);return i(l,u),u};return o=s,(...l)=>o(p3e(...l))},g3e=[],ii=e=>{const t=n=>n[e]||g3e;return t.isThemeGetter=!0,t},Mde=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nde=/^\((?:(\w[\w-]*):)?(.+)\)$/i,v3e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,y3e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b3e=/\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$/,w3e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,x3e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E3e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zd=e=>v3e.test(e),It=e=>!!e&&!Number.isNaN(Number(e)),Ud=e=>!!e&&Number.isInteger(Number(e)),v2=e=>e.endsWith("%")&&It(e.slice(0,-1)),pu=e=>y3e.test(e),Dde=()=>!0,S3e=e=>b3e.test(e)&&!w3e.test(e),N5=()=>!1,_3e=e=>x3e.test(e),k3e=e=>E3e.test(e),C3e=e=>!Ve(e)&&!qe(e),T3e=e=>Dh(e,Fde,N5),Ve=e=>Mde.test(e),sp=e=>Dh(e,Bde,S3e),Rq=e=>Dh(e,D3e,It),A3e=e=>Dh(e,zde,Dde),O3e=e=>Dh(e,jde,N5),Mq=e=>Dh(e,Lde,N5),P3e=e=>Dh(e,$de,k3e),rk=e=>Dh(e,Ude,_3e),qe=e=>Nde.test(e),H0=e=>gg(e,Bde),I3e=e=>gg(e,jde),Nq=e=>gg(e,Lde),R3e=e=>gg(e,Fde),M3e=e=>gg(e,$de),ik=e=>gg(e,Ude,!0),N3e=e=>gg(e,zde,!0),Dh=(e,t,n)=>{const r=Mde.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gg=(e,t,n=!1)=>{const r=Nde.exec(e);return r?r[1]?t(r[1]):n:!1},Lde=e=>e==="position"||e==="percentage",$de=e=>e==="image"||e==="url",Fde=e=>e==="length"||e==="size"||e==="bg-size",Bde=e=>e==="length",D3e=e=>e==="number",jde=e=>e==="family-name",zde=e=>e==="number"||e==="weight",Ude=e=>e==="shadow",L3e=()=>{const e=ii("color"),t=ii("font"),n=ii("text"),r=ii("font-weight"),i=ii("tracking"),o=ii("leading"),s=ii("breakpoint"),a=ii("container"),l=ii("spacing"),c=ii("radius"),u=ii("shadow"),d=ii("inset-shadow"),f=ii("text-shadow"),h=ii("drop-shadow"),p=ii("blur"),m=ii("perspective"),g=ii("aspect"),v=ii("ease"),b=ii("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...x(),qe,Ve],S=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],k=()=>[qe,Ve,l],C=()=>[zd,"full","auto",...k()],T=()=>[Ud,"none","subgrid",qe,Ve],A=()=>["auto",{span:["full",Ud,qe,Ve]},Ud,qe,Ve],O=()=>[Ud,"auto",qe,Ve],R=()=>["auto","min","max","fr",qe,Ve],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...k()],B=()=>[zd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],M=()=>[zd,"screen","full","dvw","lvw","svw","min","max","fit",...k()],L=()=>[zd,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],P=()=>[e,qe,Ve],G=()=>[...x(),Nq,Mq,{position:[qe,Ve]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",R3e,T3e,{size:[qe,Ve]}],oe=()=>[v2,H0,sp],le=()=>["","none","full",c,qe,Ve],se=()=>["",It,H0,sp],ue=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>[It,v2,Nq,Mq],K=()=>["","none",p,qe,Ve],pe=()=>["none",It,qe,Ve],X=()=>["none",It,qe,Ve],Ze=()=>[It,qe,Ve],Me=()=>[zd,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pu],breakpoint:[pu],color:[Dde],container:[pu],"drop-shadow":[pu],ease:["in","out","in-out"],font:[C3e],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pu],shadow:[pu],spacing:["px",It],text:[pu],"text-shadow":[pu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zd,Ve,qe,g]}
vendor: 6,098 bytes, line 842
842],container:["container"],columns:[{columns:[It,Ve,qe,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:E()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[Ud,"auto",qe,Ve]}],basis:[{basis:[zd,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[It,zd,"auto","initial","none",Ve]}],grow:[{grow:["",It,qe,Ve]}],shrink:[{shrink:["",It,qe,Ve]}],order:[{order:[Ud,"first","last","none",qe,Ve]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...L()]}],"min-block-size":[{"min-block":["auto",...L()]}],"max-block-size":[{"max-block":["none",...L()]}],w:[{w:[a,"screen",...B()]}],"min-w":[{"min-w":[a,"screen","none",...B()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,H0,sp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N3e,A3e]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",v2,Ve]}],"font-family":[{font:[I3e,O3e,t]}],"font-features":[{"font-features":[Ve]}],"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:[i,qe,Ve]}],"line-clamp":[{"line-clamp":[It,"none",qe,Rq]}],leading:[{leading:[o,...k()]}],"list-image":[{"list-image":["none",qe,Ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,Ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[It,"from-font","auto",qe,sp]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[It,"auto",qe,Ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,Ve]}],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",qe,Ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ud,qe,Ve],radial:["",qe,Ve],conic:[Ud,qe,Ve]},M3e,P3e]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:oe()}
842],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}
vendor: 5,749 bytes, line 842
842],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[It,qe,Ve]}],"outline-w":[{outline:["",It,H0,sp]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,ik,rk]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,ik,rk]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[It,sp]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,ik,rk]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[It,qe,Ve]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[It]}],"mask-image-linear-from-pos":[{"mask-linear-from":Q()}],"mask-image-linear-to-pos":[{"mask-linear-to":Q()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":Q()}],"mask-image-t-to-pos":[{"mask-t-to":Q()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":Q()}],"mask-image-r-to-pos":[{"mask-r-to":Q()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":Q()}],"mask-image-b-to-pos":[{"mask-b-to":Q()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":Q()}],"mask-image-l-to-pos":[{"mask-l-to":Q()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":Q()}],"mask-image-x-to-pos":[{"mask-x-to":Q()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":Q()}],"mask-image-y-to-pos":[{"mask-y-to":Q()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[qe,Ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":Q()}],"mask-image-radial-to-pos":[{"mask-radial-to":Q()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[It]}],"mask-image-conic-from-pos":[{"mask-conic-from":Q()}],"mask-image-conic-to-pos":[{"mask-conic-to":Q()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,Ve]}],filter:[{filter:["","none",qe,Ve]}],blur:[{blur:K()}],brightness:[{brightness:[It,qe,Ve]}],contrast:[{contrast:[It,qe,Ve]}],"drop-shadow":[{"drop-shadow":["","none",h,ik,rk]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",It,qe,Ve]}],"hue-rotate":[{"hue-rotate":[It,qe,Ve]}],invert:[{invert:["",It,qe,Ve]}],saturate:[{saturate:[It,qe,Ve]}],sepia:[{sepia:["",It,qe,Ve]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,Ve]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[It,qe,Ve]}],"backdrop-contrast":[{"backdrop-contrast":[It,qe,Ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",It,qe,Ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[It,qe,Ve]}],"backdrop-invert":[{"backdrop-invert":["",It,qe,Ve]}],"backdrop-opacity":[{"backdrop-opacity":[It,qe,Ve]}],"backdrop-saturate":[{"backdrop-saturate":[It,qe,Ve]}],"backdrop-sepia":[{"backdrop-sepia":["",It,qe,Ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,Ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[It,"initial",qe,Ve]}],ease:[{ease:["linear","initial",v,qe,Ve]}],delay:[{delay:[It,qe,Ve]}],animate:[{animate:["none",b,qe,Ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,qe,Ve]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[qe,Ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Me()}],"translate-x":[{"translate-x":Me()}
842],"translate-y":[{"translate-y":Me()}],"translate-z":[{"translate-z":Me()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",qe,Ve]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",qe,Ve]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[It,H0,sp,Rq]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},Qtn=m3e(L3e),$3e="Logging",Vde="x-amz-user-agent",F3e="NoHubcallbackProvidedException";var Ps;(function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"})(Ps||(Ps={}));const Dq={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class pi{constructor(t,n=Ps.WARN){this.name=t,this.level=n,this._pluggables=[]}_padding(t){return t<10?"0"+t:""+t}_ts(){const t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()}configure(t){return t?(this._config=t,this._config):this._config}_log(t,...n){let r=this.level;pi.LOG_LEVEL&&(r=pi.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const i=Dq[r];if(!(Dq[t]>=i))return;let s=console.log.bind(console);t===Ps.ERROR&&console.error&&(s=console.error.bind(console)),t===Ps.WARN&&console.warn&&(s=console.warn.bind(console)),pi.BIND_ALL_LOG_LEVELS&&(t===Ps.INFO&&console.info&&(s=console.info.bind(console)),t===Ps.DEBUG&&console.debug&&(s=console.debug.bind(console)));const a=`[${t}] ${this._ts()} ${this.name}`;let l="";if(n.length===1&&typeof n[0]=="string")l=`${a} - ${n[0]}`,s(l);else if(n.length===1)l=`${a} ${n[0]}`,s(a,n[0]);else if(typeof n[0]=="string"){let c=n.slice(1);c.length===1&&(c=c[0]),l=`${a} - ${n[0]} ${c}`,s(`${a} - ${n[0]}`,c)}else l=`${a} ${n}`,s(a,n);for(const c of this._pluggables){const u={message:l,timestamp:Date.now()};c.pushLogs([u])}}log(...t){this._log(Ps.INFO,...t)}info(...t){this._log(Ps.INFO,...t)}warn(...t){this._log(Ps.WARN,...t)}error(...t){this._log(Ps.ERROR,...t)}debug(...t){this._log(Ps.DEBUG,...t)}verbose(...t){this._log(Ps.VERBOSE,...t)}addPluggable(t){t&&t.getCategoryName()===$3e&&(this._pluggables.push(t),t.configure(this._config))}listPluggables(){return this._pluggables}}pi.LOG_LEVEL=null;pi.BIND_ALL_LOG_LEVELS=!1;
842class wo extends Error{constructor({message:t,name:n,recoverySuggestion:r,underlyingError:i,metadata:o}){if(super(t),this.name=n,this.underlyingError=i,this.recoverySuggestion=r,o){const{extendedRequestId:s,httpStatusCode:a,requestId:l}=o;this.metadata={extendedRequestId:s,httpStatusCode:a,requestId:l}}this.constructor=wo,Object.setPrototypeOf(this,wo.prototype)}}var Im;(function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"})(Im||(Im={}));const D5=(e,t=wo)=>(n,r,i)=>{const{message:o,recoverySuggestion:s}=e[r];if(!n)throw new t({name:r,message:i?`${o} ${i}`:o,recoverySuggestion:s})},Rl=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",K0=new pi("Hub");class Wde{constructor(t){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}_remove(t,n){const r=this.listeners.get(t);if(!r){K0.warn(`No listeners for ${t}`);return}this.listeners.set(t,[...r.filter(({callback:i})=>i!==n)])}dispatch(t,n,r,i){typeof t=="string"&&this.protectedChannels.indexOf(t)>-1&&(i===Rl||K0.warn(`WARNING: ${t} is protected and dispatching on it can have unintended consequences`));const o={channel:t,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(o)}catch(s){K0.error(s)}}listen(t,n,r="noname"){let i;if(typeof n!="function")throw new wo({name:F3e,message:"No callback supplied to Hub"});i=n;let o=this.listeners.get(t);return o||(o=[],this.listeners.set(t,o)),o.push({name:r,callback:i}),()=>{this._remove(t,i)}}_toListeners(t){const{channel:n,payload:r}=t,i=this.listeners.get(n);i&&i.forEach(o=>{K0.debug(`Dispatching to ${n} with `,r);try{o.callback(t)}catch(s){K0.error(s)}})}}const Ml=new Wde("__default__"),IA=new Wde("internal-hub"),L5=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new wo({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},B3e=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new wo({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},j3e=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new wo({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},$5={convert(e,t){let n=e;return t!=null&&t.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),j3e()(n)}};var _c;(function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"})(_c||(_c={}));const z3e={[_c.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[_c.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[_c.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[_c.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[_c.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},F5=D5(z3e);function ct(e){let t=!0;e?t=!!e.userPoolId&&!!e.userPoolClientId:t=!1,F5(t,_c.AuthUserPoolException)}function yR(e){var n,r,i,o,s,a,l,c;const t=!!((r=(n=e==null?void 0:e.loginWith)==null?void 0:n.oauth)!=null&&r.domain)&&!!((o=(i=e==null?void 0:e.loginWith)==null?void 0:i.oauth)!=null&&o.redirectSignOut)&&!!((a=(s=e==null?void 0:e.loginWith)==null?void 0:s.oauth)!=null&&a.redirectSignIn)&&!!((c=(l=e==null?void 0:e.loginWith)==null?void 0:l.oauth)!=null&&c.responseType);F5(t,_c.OAuthNotConfigureException)}function rT(e){const t=!!(e!=null&&e.identityPoolId);F5(t,_c.InvalidIdentityPoolIdException)}function qc(e){const t=e.split(".");if(t.length!==3)throw new Error("Invalid token");try{const r=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent($5.convert(r).split("").map(s=>
842`%${`00${s.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),o=JSON.parse(i);return{toString:()=>e,payload:o}}catch{throw new Error("Invalid token payload")}}const Hde=e=>e&&e["nonRetryable"],ok=new pi("retryUtil");async function U3e(e,t,n,r){if(typeof e!="function")throw Error("functionToRetry must be a function");return new Promise(async(i,o)=>{let s=0,a=!1,l=()=>{},c;for(;!a;){s++,ok.debug(`${e.name} attempt #${s} with this vars: ${JSON.stringify(t)}`);try{i(await e(...t));return}catch(u){if(c=u,ok.debug(`error on ${e.name}`,u),Hde(u)){ok.debug(`${e.name} non retryable error`,u),o(u);return}const d=n(s,t,u);if(ok.debug(`${e.name} retrying in ${d} ms`),d===!1||a){o(u);return}else await new Promise(f=>{l=f,setTimeout(l,d)})}}o(c)})}const Kde=e=>{const t=Reflect.ownKeys(e);for(const n of t){const r=e[n];(r&&typeof r=="object"||typeof r=="function")&&Kde(r)}return Object.freeze(e)},V3e=new pi("parseAWSExports"),W3e={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},H3e=(e={})=>{var oe,le,se,ue,ce,Q;if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new wo({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:t,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:i,aws_bots_config:o,aws_cognito_identity_pool_id:s,aws_cognito_sign_up_verification_method:a,aws_cognito_mfa_configuration:l,aws_cognito_mfa_types:c,aws_cognito_password_protection_settings:u,aws_cognito_verification_mechanisms:d,aws_cognito_signup_attributes:f,aws_cognito_social_providers:h,aws_cognito_username_attributes:p,aws_mandatory_sign_in:m,aws_mobile_analytics_app_id:g,aws_mobile_analytics_app_region:v,aws_user_files_s3_bucket:b,aws_user_files_s3_bucket_region:w,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:x,aws_user_pools_id:E,aws_user_pools_web_client_id:S,geo:_,oauth:k,predictions:C,aws_cloud_logic_custom:T,Notifications:A,modelIntrospection:O}=e,R={};g&&(R.Analytics={Pinpoint:{appId:g,region:v}});const{InAppMessaging:I,Push:F}=A??{};if(I!=null&&I.AWSPinpoint||F!=null&&F.AWSPinpoint){if(I!=null&&I.AWSPinpoint){const{appId:K,region:pe}=I.AWSPinpoint;R.Notifications={InAppMessaging:{Pinpoint:{appId:K,region:pe}}}}if(F!=null&&F.AWSPinpoint){const{appId:K,region:pe}=F.AWSPinpoint;R.Notifications={...R.Notifications,PushNotification:{Pinpoint:{appId:K,region:pe}}}}}if(Array.isArray(o)&&(R.Interactions={LexV1:Object.fromEntries(o.map(K=>[K.name,K]))}),r){const K=W3e[n];K||V3e.debug(`Invalid authentication type ${n}. Falling back to IAM.`),R.API={GraphQL:{endpoint:r,apiKey:t,region:i,defaultAuthMode:K??"iam"}},O&&(R.API.GraphQL.modelIntrospection=O)}const N=l?{status:l&&l.toLowerCase(),totpEnabled:(c==null?void 0:c.includes("TOTP"))??!1,smsEnabled:(c==null?void 0:c.includes("SMS"))??!1}:void 0,B=u?{minLength:u.passwordPolicyMinLength,requireLowercase:((oe=u.passwordPolicyCharacters)==null?void 0:oe.includes("REQUIRES_LOWERCASE"))??!1,requireUppercase:((le=u.passwordPolicyCharacters)==null?void 0:le.includes("REQUIRES_UPPERCASE"))??!1,requireNumbers:((se=u.passwordPolicyCharacters)==null?void 0:se.includes("REQUIRES_NUMBERS"))??!1,requireSpecialCharacters:((ue=u.passwordPolicyCharacters)==null?void 0:ue.includes("REQUIRES_SYMBOLS"))??!1}:void 0,L=Array.from(new Set([...d??[],...f??[]])).reduce((K,pe)=>({...K,[pe.toLowerCase()]:{required:!0}}),{}),P=(p==null?void 0:p.includes("EMAIL"))??!1,G=(p==null?void 0:p.includes("PHONE_NUMBER"))??!1;(s||E)&&(R.Auth={Cognito:{identityPoolId:s,allowGuestAccess:m!=="enable",signUpVerificationMethod:a,userAttributes:L,userPoolClientId:S,userPoolId:E,mfa:N,passwordFormat:B,loginWith:{username:!(P||G),email:P,phone:G}}});const Z=k?Object.keys(k).length>0:!1,z=h?h.length>0:!1;if(R.Auth&&Z&&(R.Auth.Cognito.loginWith={...R.Auth.Cognito.loginWith,oauth:{...K3e(k),...z&&{providers:q3e(h)}}}),b&&(R.Storage={S3:{bucket:b,region:w,dangerouslyConnectToHttpEndpointForTesting:x}}),_){const{amazon_location_service:K}=_;R.Geo={LocationService:{maps:K.maps,geofenceCollections:K.geofenceCollections,searchIndices:K.search_indices,region:K.region}}}if(T&&(R.API={...R.API,REST:T.reduce((K,pe)=>{const{name:X,endpoint:Ze,region:Me,service:tt}=pe;return{...K,[X]:{endpoint:Ze,...tt?{service:tt}:void 0,...Me?{region:Me}:void 0}}},{})}),C){const{VoiceId:K}=((Q=(ce=C==null?void 0:C.convert)==null?void 0:ce.speechGenerator)==null?void 0:Q.defaults)??{};R.Predictions=K?{...C,convert:{...C.convert,speechGenerator:{...C.convert.speechGenerator,defaults:{voiceId:K}}}}:C}return R},Lq=e=>(e==null?void 0:e.split(","))??[],K3e=({domain:e,scope:t,redirectSignIn:n,redirectSignOut:r,responseType:i})=>({domain:e,scopes:t,redirectSignIn:Lq(n),redirectSignOut:Lq(r),responseType:i}),q3e=e=>e.map(t=>{const n=t.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),qde=Symbol("oauth-listener"),ji=[];for(let e=0;e<256;++e)ji.push((e+256).toString(16).slice(1));function G3e(e,t=0){return(ji[e[t+0]]+ji[e[t+1]]+ji[e[t+2]]+ji[e[t+3]]+"-"+ji[e[t+4]]+ji[e[t+5]]+"-"+ji[e[t+6]]+ji[e[t+7]]+"-"+ji[e[t+8]]+ji[e[t+9]]+"-"+ji[e[t+10]]+ji[e[t+11]]+ji[e[t+12]]+ji[e[t+13]]+ji[e[t+14]]+ji[e[t+15]]).toLowerCase()}let y2;const Y3e=new Uint8Array(16);function X3e(){if(!y2){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");y2=crypto.getRandomValues.bind(crypto)}return y2(Y3e)}const Z3e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$q={randomUUID:Z3e};function Q3e(e,t,n){var i;if($q.randomUUID&&!t&&!e)return $q.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??X3e();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[n+o]=r[o];return t}return G3e(r)}function J3e(e){const{version:t}=e;return t?t.startsWith("1"):!1}function eze(e){if(!e)return;const{bucket_name:t,aws_region:n,buckets:r}=e;return{S3:{bucket:t,region:n,buckets:r&&dze(r)}}}function tze(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:n,identity_pool_id:r,password_policy:i,mfa_configuration:o,mfa_methods:s,unauthenticated_identities_enabled:a,oauth:l,username_attributes:c,standard_required_attributes:u,groups:d,passwordless:f}=e,h={Cognito:{userPoolId:t,userPoolClientId:n,groups:d}};return r&&(h.Cognito={...h.Cognito,identityPoolId:r}),i&&(h.Cognito.passwordFormat={requireLowercase:i.require_lowercase,requireNumbers:i.require_numbers,requireUppercase:i.require_uppercase,requireSpecialCharacters:i.require_symbols,minLength:i.min_length??6}
842),o&&(h.Cognito.mfa={status:uze(o),smsEnabled:s==null?void 0:s.includes("SMS"),totpEnabled:s==null?void 0:s.includes("TOTP")}),a&&(h.Cognito.allowGuestAccess=a),l&&(h.Cognito.loginWith={oauth:{domain:l.domain,redirectSignIn:l.redirect_sign_in_uri,redirectSignOut:l.redirect_sign_out_uri,responseType:l.response_type==="token"?"token":"code",scopes:l.scopes,providers:cze(l.identity_providers)}}),c&&(h.Cognito.loginWith={...h.Cognito.loginWith,email:c.includes("email"),phone:c.includes("phone_number"),username:c.includes("username")}),u&&(h.Cognito.userAttributes=u.reduce((p,m)=>({...p,[m]:{required:!0}}),{})),f&&(h.Cognito.passwordless={emailOtpEnabled:f.email_otp_enabled,smsOtpEnabled:f.sms_otp_enabled,webAuthn:f.web_authn?{relyingPartyId:f.web_authn.relying_party_id,userVerification:f.web_authn.user_verification}:void 0,preferredChallenge:f.preferred_challenge}),h}function nze(e){if(!(e!=null&&e.amazon_pinpoint))return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}function rze(e){if(!e)return;const{aws_region:t,geofence_collections:n,maps:r,search_indices:i}=e;return{LocationService:{region:t,searchIndices:i,geofenceCollections:n,maps:r}}}function ize(e){if(!e)return;const{aws_region:t,default_authorization_type:n,url:r,api_key:i,model_introspection:o}=e;return{GraphQL:{endpoint:r,defaultAuthMode:Gde(n),region:t,apiKey:i,modelIntrospection:o}}}function oze(e){if(!(e!=null&&e.events))return;const{url:t,aws_region:n,api_key:r,default_authorization_type:i}=e.events;return{Events:{endpoint:t,defaultAuthMode:Gde(i),region:n,apiKey:r}}}function sze(e){if(!e)return;const{aws_region:t,channels:n,amazon_pinpoint_app_id:r}=e,i=n.includes("IN_APP_MESSAGING"),o=n.includes("APNS")||n.includes("FCM");if(!(i||o))return;const s={};return i&&(s.InAppMessaging={Pinpoint:{appId:r,region:t}}),o&&(s.PushNotification={Pinpoint:{appId:r,region:t}}),s}function aze(e){const t={};if(e.storage&&(t.Storage=eze(e.storage)),e.auth&&(t.Auth=tze(e.auth)),e.analytics&&(t.Analytics=nze(e.analytics)),e.geo&&(t.Geo=rze(e.geo)),e.data&&(t.API=ize(e.data)),e.custom){const n=oze(e.custom);n&&"Events"in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=sze(e.notifications)),t}const lze={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function Gde(e){return lze[e]}const Fq={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function cze(e=[]){return e.reduce((t,n)=>(Fq[n]!==void 0&&t.push(Fq[n]),t),[])}function uze(e){return e==="OPTIONAL"?"optional":e==="REQUIRED"?"on":"off"}function dze(e){const t={};return e.forEach(({name:n,bucket_name:r,aws_region:i,paths:o})=>{if(n in t)throw new Error(`Duplicate friendly name found: ${n}. Name must be unique.`);const s=o?Object.entries(o).reduce((a,[l,c])=>(c!==void 0&&(a[l]=c),a),{}):void 0;t[n]={bucketName:r,region:i,paths:s}}),t}const Yde=e=>Object.keys(e).some(t=>t.startsWith("aws_"))?H3e(e):J3e(e)?aze(e):e;var CB=function(e,t){return CB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},CB(e,t)};function B5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");CB(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var kc=function(){return kc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kc.apply(this,arguments)};function Xde(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Zde(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}
vendor: 4,160 bytes, line 842
842return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function j5(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function RE(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function TB(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function RA(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Qv(e){return this instanceof Qv?(this.v=e,this):new Qv(e)}function fze(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(g,v){o.push([h,m,g,v])>1||l(h,m)})},p&&(i[h]=p(i[h])))}function l(h,p){try{c(r[h](p))}catch(m){f(o[0][3],m)}}function c(h){h.value instanceof Qv?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function hze(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof RE=="function"?RE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var ya=64,pze=32,mze=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
842734187,3204031479,3329325298]),gze=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],vze=Math.pow(2,53)-1,iT=function(){function e(){this.state=Int32Array.from(gze),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>vze)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===ya&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%ya>=ya-8){for(var i=this.bufferLength;i<ya;i++)n.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<ya-8;i++)n.setUint8(i,0);n.setUint32(ya-8,Math.floor(t/4294967296),!0),n.setUint32(ya-4,t),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(pze),i=0;i<8;i++)o[i*4]=this.state[i]>>>24&255,o[i*4+1]=this.state[i]>>>16&255,o[i*4+2]=this.state[i]>>>8&255,o[i*4+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,i=r[0],o=r[1],s=r[2],a=r[3],l=r[4],c=r[5],u=r[6],d=r[7],f=0;f<ya;f++){if(f<16)this.temp[f]=(n[f*4]&255)<<24|(n[f*4+1]&255)<<16|(n[f*4+2]&255)<<8|n[f*4+3]&255;else{var h=this.temp[f-2],p=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=this.temp[f-15];var m=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[f]=(p+this.temp[f-7]|0)+(m+this.temp[f-16]|0)}var g=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&c^~l&u)|0)+(d+(mze[f]+this.temp[f]|0)|0)|0,v=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&s^o&s)|0;d=u,u=c,c=l,l=a+g|0,a=s,s=o,o=i,i=g+v|0}r[0]+=i,r[1]+=o,r[2]+=s,r[3]+=a,r[4]+=l,r[5]+=c,r[6]+=u,r[7]+=d},e}();const yze=e=>new TextEncoder().encode(e);var bze=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:yze;function Qde(e){return e instanceof Uint8Array?e:typeof e=="string"?bze(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function wze(e){return typeof e=="string"?e.length===0:e.byteLength===0}var jy=function(){function e(t){this.secret=t,this.hash=new iT,this.reset()}return e.prototype.update=function(t){if(!(wze(t)||this.error))try{this.hash.update(Qde(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Zde(this,void 0,void 0,function(){return j5(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new iT,this.secret){this.outer=new iT;var t=xze(this.secret),n=new Uint8Array(ya);n.set(t);for(var r=0;r<ya;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e}();function xze(e){var t=Qde(e);if(t.byteLength>ya){var n=new iT;n.update(t),t=n.digest()}var r=new Uint8Array(ya);return r.set(t),r}const Jde={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Jde[e]=t}function Eze(e){let t="";for(let n=0;n<e.byteLength;n++)t+=Jde[e[n]];return t}var qr;(function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"})(qr||(qr={}));var Ys;(function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"})(Ys||(Ys={}));var Iu;(function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"})(Iu||(Iu={}));var Bq;(function(e){e.Record="1",e.IdentifyUser="2"})(Bq||(Bq={}));var AB;(function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"})(AB||(AB={}));var nt;(function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"})(nt||(nt={}));var jq;(function(e){e.Subscribe="1",e.GraphQl="2"})(jq||(jq={}));var Tx;(function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"})(Tx||(Tx={}));var OB;(function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"})(OB||(OB={}));var zq;(function(e){e.None="0"})(zq||(zq={}));var Uq;(function(e){e.Convert="1",e.Identify="2",e.Interpret="3"})(Uq||(Uq={}));var Vq;(function(e){e.Subscribe="1"})(Vq||(Vq={}));var Wq;(function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"})(Wq||(Wq={}));var ul;(function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"})(ul||(ul={}));const Sze="6.16.4",bR=()=>typeof global<"u",Ub=()=>typeof window<"u",efe=()=>typeof document<"u",z5=()=>typeof process<"u",ME=(e,t)=>!!Object.keys(e).find(n=>n.startsWith(t));var Hq={};function _ze(){const e=r=>r.startsWith("_react")||r.startsWith("__react"),t=r=>Object.keys(r).find(e),n=()=>Array.from(document.querySelectorAll("[id]"));return efe()&&n().some(t)}function kze(){return z5()&&typeof Hq<"u"&&!!Object.keys(Hq).find(e=>e.includes("react"))}function Cze(){return Ub()&&ME(window,"__VUE")}function Tze(){return bR()&&ME(global,"__VUE")}var Kq={};function Aze(){return Ub()&&ME(window,"__SVELTE")}function Oze(){return z5()&&typeof Kq<"u"&&!!Object.keys(Kq).find(e=>e.includes("svelte"))}function Pze(){return Ub()&&window.next&&typeof window.next=="object"}function Ize(){return bR()&&(ME(global,"__next")||ME(global,"__NEXT"))}
vendor: 13,580 bytes, lines 842-844
842function Rze(){return Ub()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function Mze(){return bR()&&typeof global.__NUXT_PATHS__<"u"}var qq={};function Nze(){const e=!!(efe()&&document.querySelector("[ng-version]")),t=!!(Ub()&&typeof window.ng<"u");return e||t}function Dze(){var e;return z5()&&typeof qq=="object"&&((e=qq.npm_lifecycle_script)==null?void 0:e.startsWith("ng "))||!1}function Lze(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function $ze(){return bR()&&typeof global.expo<"u"}function Fze(){return Ub()}const Bze=[{platform:qr.Expo,detectionMethod:$ze},{platform:qr.ReactNative,detectionMethod:Lze},{platform:qr.NextJs,detectionMethod:Pze},{platform:qr.Nuxt,detectionMethod:Rze},{platform:qr.Angular,detectionMethod:Nze},{platform:qr.React,detectionMethod:_ze},{platform:qr.VueJs,detectionMethod:Cze},{platform:qr.Svelte,detectionMethod:Aze},{platform:qr.WebUnknown,detectionMethod:Fze},{platform:qr.NextJsSSR,detectionMethod:Ize},{platform:qr.NuxtSSR,detectionMethod:Mze},{platform:qr.ReactSSR,detectionMethod:kze},{platform:qr.VueJsSSR,detectionMethod:Tze},{platform:qr.AngularSSR,detectionMethod:Dze},{platform:qr.SvelteSSR,detectionMethod:Oze}];function jze(){var e;return((e=Bze.find(t=>t.detectionMethod()))==null?void 0:e.platform)||qr.ServerSideUnknown}let Ax;const b2=[];let PB=!1;const zze=10,Uze=10,Vze=1e3,tfe=()=>{var e;if(!Ax){if(Ax=jze(),PB)for(;b2.length;)(e=b2.pop())==null||e();else b2.forEach(t=>{t()});Gq(qr.ServerSideUnknown,zze),Gq(qr.WebUnknown,Uze)}return Ax};function Wze(){Ax=void 0}function Gq(e,t){Ax===e&&!PB&&setTimeout(()=>{Wze(),PB=!0,setTimeout(tfe,Vze)},t)}const Xd={},mu=e=>{Xd[e.category]=e.apis.reduce((r,i)=>{var o;return{...r,[i]:{refCount:(o=r[i])!=null&&o.refCount?r[i].refCount+1:1,additionalDetails:e.additionalDetails}}},Xd[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(r=>{const i=Xd[e.category][r].refCount;i>1?Xd[e.category][r].refCount=i-1:(delete Xd[e.category][r],Object.keys(Xd[e.category]).length||delete Xd[e.category])}))}},Hze=(e,t)=>{var n,r;return(r=(n=Xd[e])==null?void 0:n[t])==null?void 0:r.additionalDetails},Kze="aws-amplify",qze=e=>e.replace(/\+.*/,""),Gze=({category:e,action:t}={})=>{const n=[[Kze,qze(Sze)]];if(e&&n.push([e,t]),n.push(["framework",tfe()]),e&&t){const r=Hze(e,t);r&&r.forEach(i=>{n.push(i)})}return n},Vb=e=>Gze(e).map(([r,i])=>r&&i?`${r}/${i}`:r).join(" ");function Ji(e){return typeof e=="function"}function Yze(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var w2=Yze(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: 843`+n.map(function(r,i){return i+1+") "+r.toString()}).join(` 844 `):"",this.name="UnsubscriptionError",this.errors=n}});function Yq(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var U5=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=RE(s),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(m){t={error:m}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(Ji(u))try{u()}catch(m){o=m instanceof w2?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=RE(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{Xq(p)}catch(m){o=o??[],m instanceof w2?o=RA(RA([],TB(o)),TB(m.errors)):o.push(m)}}}catch(m){r={error:m}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(o)throw new w2(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Xq(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Yq(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Yq(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();U5.EMPTY;function nfe(e){return e instanceof U5||e&&"closed"in e&&Ji(e.remove)&&Ji(e.add)&&Ji(e.unsubscribe)}function Xq(e){Ji(e)?e():e.unsubscribe()}var Xze={Promise:void 0},Zze={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,RA([e,t],TB(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function rfe(e){Zze.setTimeout(function(){throw e})}function Zq(){}function Qze(e){e()}var V5=function(e){B5(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,nfe(n)&&n.add(r)):r.destination=t4e,r}return t.create=function(n,r,i){return new IB(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(U5),Jze=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){sk(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){sk(r)}else sk(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){sk(n)}},e}(),IB=function(e){B5(t,e);function t(n,r,i){var o=e.call(this)||this,s;return Ji(n)||!n?s={next:n??void 0,error:r??void 0,complete:i??void 0}:s=n,o.destination=new Jze(s),o}return t}(V5);function sk(e){rfe(e)}function e4e(e){throw e}var t4e={closed:!0,next:Zq,error:e4e,complete:Zq},W5=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function n4e(e){return e}function r4e(e){return e.length===0?n4e:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var _s=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=o4e(t)?t:new IB(t,n,r);return Qze(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Qq(n),new n(function(i,o){var s=new IB({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[W5]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r4e(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Qq(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function Qq(e){var t;return(t=e??Xze.Promise)!==null&&t!==void 0?t:Promise}function i4e(e){return e&&Ji(e.next)&&Ji(e.error)&&Ji(e.complete)}function o4e(e){return e&&e instanceof V5||i4e(e)&&nfe(e)}function s4e(e){return Ji(e==null?void 0:e.lift)}function oS(e){return function(t){if(s4e(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function wR(e,t,n,r,i){return new a4e(e,t,n,r,i)}var a4e=function(e){B5(t,e);function t(n,r,i,o,s,a){var l=e.call(this,n)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=r?function(c){try{r(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=o?function(c){try{o(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(V5),ife=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function ofe(e){return Ji(e==null?void 0:e.then)}function sfe(e){return Ji(e[W5])}function afe(e){return Symbol.asyncIterator&&Ji(e==null?void 0:e[Symbol.asyncIterator])}function lfe(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function l4e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cfe=l4e();function ufe(e){return Ji(e==null?void 0:e[cfe])}function dfe(e){return fze(this,arguments,function(){var n,r,i,o;return j5(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Qv(n.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,Qv(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Qv(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function ffe(e){return Ji(e==null?void 0:e.getReader)}function xR(e){if(e instanceof _s)return e;if(e!=null){if(sfe(e))return c4e(e);if(ife(e))return u4e(e);if(ofe(e))return d4e(e);if(afe(e))return hfe(e);if(ufe(e))return f4e(e);if(ffe(e))return h4e(e)}throw lfe(e)}function c4e(e){return new _s(function(t){var n=e[W5]();if(Ji(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function u4e(e){return new _s(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function d4e(e){return new _s(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,rfe)})}function f4e(e){return new _s(function(t){var n,r;try{for(var i=RE(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function hfe(e){return new _s(function(t){p4e(e,t).catch(function(n){return t.error(n)})})}function h4e(e){return hfe(dfe(e))}function p4e(e,t){var n,r,i,o;return Zde(this,void 0,void 0,function(){var s,a;return j5(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=hze(e),l.label=1;case 1:return[4,n.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function um(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function pfe(e,t){return t===void 0&&(t=0),oS(function(n,r){n.subscribe(wR(r,function(i){return um(r,e,function(){return r.next(i)},t)},function(){return um(r,e,function(){return r.complete()},t)},function(i){return um(r,e,function(){return r.error(i)},t)}))})}function mfe(e,t){return t===void 0&&(t=0),oS(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function m4e(e,t){return xR(e).pipe(mfe(t),pfe(t))}function g4e(e,t){return xR(e).pipe(mfe(t),pfe(t))}function v4e(e,t){return new _s(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function y4e(e,t){return new _s(function(n){var r;return um(n,t,function(){r=e[cfe](),um(n,t,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(a){n.error(a);return}s?n.complete():n.next(o)},0,!0)}),function(){return Ji(r==null?void 0:r.return)&&r.return()}})}function gfe(e,t){if(!e)throw new Error("Iterable cannot be null");return new _s(function(n){um(n,t,function(){var r=e[Symbol.asyncIterator]();um(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function b4e(e,t){return gfe(dfe(e),t)}function w4e(e,t){if(e!=null){if(sfe(e))return m4e(e,t);if(ife(e))return v4e(e,t);if(ofe(e))return g4e(e,t);if(afe(e))return gfe(e,t);if(ufe(e))return y4e(e,t);if(ffe(e))return b4e(e,t)}throw lfe(e)}function x4e(e,t){return t?w4e(e,t):xR(e)}function H5(e,t){return oS(function(n,r){var i=0;n.subscribe(wR(r,function(o){r.next(e.call(t,o,i++))}))})}function E4e(e,t){return oS(function(n,r){var i=0;n.subscribe(wR(r,function(o){return e.call(t,o,i++)&&r.next(o)}))})}function vfe(e){return oS(function(t,n){var r=null,i=!1,o;r=t.subscribe(wR(n,void 0,void 0,function(s){o=xR(e(s,vfe(e)(t))),r?
844(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}const S4e=()=>{if(typeof self>"u")return!1;const e=self;return typeof e.WorkerGlobalScope<"u"&&self instanceof e.WorkerGlobalScope};class Jv{networkMonitor(t){const n=S4e()?self:typeof window<"u"&&window;return n?new _s(r=>{r.next({online:n.navigator.onLine});const i=()=>{r.next({online:!0})},o=()=>{r.next({online:!1})};return n.addEventListener("online",i),n.addEventListener("offline",o),Jv._observers.push(r),()=>{n.removeEventListener("online",i),n.removeEventListener("offline",o),Jv._observers=Jv._observers.filter(s=>s!==r)}}):x4e([{online:!0}])}static _observerOverride(t){for(const n of this._observers){if(n.closed){this._observers=this._observers.filter(r=>r!==n);continue}n!=null&&n.next&&n.next(t)}}}Jv._observers=[];const ER=()=>typeof window<"u"&&typeof window.document<"u",Jq=new pi("Auth");class _4e{configure(t,n){var r,i;this.authConfig=t,this.authOptions=n,t&&((r=t.Cognito)!=null&&r.userPoolEndpoint)&&Jq.warn(eG("Amazon Cognito User Pool")),t&&((i=t.Cognito)!=null&&i.identityPoolEndpoint)&&Jq.warn(eG("Amazon Cognito Identity Pool"))}async fetchAuthSession(t={}){var o,s,a,l,c,u;let n,r;const i=await this.getTokens(t);return i?(r=(s=(o=i.accessToken)==null?void 0:o.payload)==null?void 0:s.sub,n=await((l=(a=this.authOptions)==null?void 0:a.credentialsProvider)==null?void 0:l.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:i,authenticated:!0,forceRefresh:t.forceRefresh}))):n=await((u=(c=this.authOptions)==null?void 0:c.credentialsProvider)==null?void 0:u.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:t.forceRefresh})),{tokens:i,credentials:n==null?void 0:n.credentials,identityId:n==null?void 0:n.identityId,userSub:r}}async clearCredentials(){var t,n;await((n=(t=this.authOptions)==null?void 0:t.credentialsProvider)==null?void 0:n.clearCredentialsAndIdentityId())}async getTokens(t){var n,r;return await((r=(n=this.authOptions)==null?void 0:n.tokenProvider)==null?void 0:r.getTokens(t))??void 0}}const eG=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;class k4e{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new _4e}configure(t,n){var i,o,s,a,l;const r=Yde(t);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=Kde(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),((i=this.resourcesConfig.Analytics)!=null&&i.Pinpoint||(s=(o=this.resourcesConfig.Notifications)==null?void 0:o.InAppMessaging)!=null&&s.Pinpoint||(l=(a=this.resourcesConfig.Notifications)==null?void 0:a.PushNotification)!=null&&l.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),Ml.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",Rl),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[qde](t){var n,r,i;(r=(n=this.resourcesConfig.Auth)==null?void 0:n.Cognito.loginWith)!=null&&r.oauth?t((i=this.resourcesConfig.Auth)==null?void 0:i.Cognito):this.oAuthListener=t}notifyOAuthListener(){var t,n,r;!((n=(t=this.resourcesConfig.Auth)==null?void 0:t.Cognito.loginWith)!=null&&n.oauth)||!this.oAuthListener||(this.oAuthListener((r=this.resourcesConfig.Auth)==null?void 0:r.Cognito),this.oAuthListener=void 0)}}const bt=new k4e,yfe=(e,t)=>e.Auth.fetchAuthSession(t),ro=e=>yfe(bt,e);function bfe(){return bt.Auth.clearCredentials()}const SR=e=>{const{headers:t,statusCode:n}=e;return{...C4e(e)?e.$metadata:{},httpStatusCode:n,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},C4e=e=>typeof(e==null?void 0:e.$metadata)=="object",Lh=async e=>{if(!e||e.statusCode<300)return;const t=await sS(e),r=(s=>{const[a]=s.toString().split(/[,:]+/);return a.includes("#")?a.split("#")[1]:a})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError"),i=t.message??t.Message??"Unknown error",o=new Error(i);return Object.assign(o,{name:r,$metadata:SR(e)})},sS=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:SR(e)})},fn=(e,t,n,r)=>async(i,o)=>{const s={...r,...i},a=await s.endpointResolver(s,o),l=await t(o,a),c=await e(l,{...s});return n(c)},wfe=5*60*1e3;function xfe(e=wfe){return r=>{const i=2**r*100+100*Math.random();return i>e?!1:i}}const Efe=3,tG="amz-sdk-invocation-id",T4e="amz-sdk-request",nG=5
844*60*1e3,K5=e=>{const n=xfe(nG)(e);return n===!1?nG:n},A4e=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],O4e=e=>!!e&&A4e.includes(e),q5=e=>async(t,n)=>{const r=n??await e(t)??void 0,i=(r==null?void 0:r.code)||(r==null?void 0:r.name),o=t==null?void 0:t.statusCode;return{retryable:M4e(n)||R4e(o,i)||O4e(i)||N4e(o,i)}},P4e=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],I4e=["TimeoutError","RequestTimeout","RequestTimeoutException"],R4e=(e,t)=>e===429||!!t&&P4e.includes(t),M4e=e=>[Im.NetworkError,"ERR_NETWORK"].includes(e==null?void 0:e.name),N4e=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&I4e.includes(t),Sfe="cognito-identity",_fe={service:Sfe,retryDecider:q5(Lh),computeDelay:K5,cache:"no-store"},G5=({maxAttempts:e=Efe,retryDecider:t,computeDelay:n,abortSignal:r})=>{if(e<1)throw new Error("maxAttempts must be greater than 0");return(i,o)=>async function(a){let l,c=o.attemptsCount??0,u;const d=()=>{if(u)return rG(u,c),u;throw rG(l,c),l};for(;!(r!=null&&r.aborted)&&c<e;){try{u=await i(a),l=void 0}catch(p){l=p,u=void 0}c=(o.attemptsCount??0)>c?o.attemptsCount??0:c+1,o.attemptsCount=c;const{isCredentialsExpiredError:f,retryable:h}=await t(u,l,o);if(h){if(o.isCredentialsExpired=!!f,!(r!=null&&r.aborted)&&c<e){const p=n(c);await D4e(p,r)}continue}else return d()}if(r!=null&&r.aborted)throw new Error("Request aborted.");return d()}},D4e=(e,t)=>{if(t!=null&&t.aborted)return Promise.resolve();let n,r;const i=new Promise(o=>{r=o,n=setTimeout(o,e)});return t==null||t.addEventListener("abort",function o(s){clearTimeout(n),t==null||t.removeEventListener("abort",o),r()}),i},rG=(e,t)=>{Object.prototype.toString.call(e)==="[object Object]"&&(e.$metadata={...e.$metadata??{},attempts:t})},RB=Q3e,L4e=()=>e=>async function(n){return n.headers[tG]||(n.headers[tG]=RB()),e(n)},$4e=({maxAttempts:e=Efe})=>(t,n)=>async function(i){const o=n.attemptsCount??0;return i.headers[T4e]=`attempt=${o+1}; max=${e}`,t(i)},Y5=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>n=>async function(i){if(t.trim().length===0)return await n(i);{const o=e.toLowerCase();return i.headers[o]=i.headers[o]?`${i.headers[o]} ${t}`:t,await n(i)}},aS=(e,t)=>(n,r)=>{const i={};let o=s=>e(s,r);for(let s=t.length-1;s>=0;s--){const a=t[s];o=a(r)(o,i)}return o(n)},x2=e=>{let t;return()=>(t||(t=e()),t)},F4e=e=>!["HEAD","GET"].includes(e.toUpperCase()),X5=async({url:e,method:t,headers:n,body:r},{abortSignal:i,cache:o,withCrossDomainCredentials:s})=>{var d;let a;try{a=await fetch(e,{method:t,headers:n,body:F4e(t)?r:void 0,signal:i,cache:o,credentials:s?"include":"same-origin"})}catch(f){throw f instanceof TypeError?new wo({name:Im.NetworkError,message:"A network error has occurred.",underlyingError:f}):f}const l={};(d=a.headers)==null||d.forEach((f,h)=>{l[h.toLowerCase()]=f});const c={statusCode:a.status,headers:l,body:null},u=Object.assign(a.body??{},{text:x2(()=>a.text()),blob:x2(()=>a.blob()),json:x2(()=>a.json())});return{...c,body:u}},kfe=aS(X5,[Y5,L4e,G5,$4e]),B4e=()=>e=>async function(n){return n.headers["cache-control"]="no-store",e(n)},Cfe=aS(kfe,[B4e]),Tfe=e=>(t,n)=>{const r=j4e(e),i=JSON.stringify(t);return z4e(n,r,i)},j4e=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),z4e=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"}),iG=e=>fn(Cfe,Tfe("GetCredentialsForIdentity"),U4e,{..._fe,...e,userAgentValue:Vb()}),U4e=async e=>{if(e.statusCode>=300)throw await Lh(e);const t=await sS(e);return{IdentityId:t.IdentityId,Credentials:V4e(t.Credentials),$metadata:SR(e)}},V4e=({Expiration:e,...t}={})=>({...t,Expiration:e&&new Date(e*1e3)}),W4e=e=>fn(Cfe,Tfe("GetId"),H4e,{..._fe,...e,userAgentValue:Vb()}),H4e=async e=>{if(e.statusCode>=300)throw await Lh(e);return{IdentityId:(await sS(e)).IdentityId,$metadata:SR(e)}},Afe={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},K4e={partitions:[Afe,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},Ofe=e=>{const{partitions:t}=K4e;for(const{regions:n,outputs:r,regionRegex:i}
844of t){const o=new RegExp(i);if(n.includes(e)||o.test(e))return r.dnsSuffix}return Afe.outputs.dnsSuffix},Xs=URL,Pfe=URLSearchParams,q4e=({region:e})=>({url:new Xs(`https://${Sfe}.${e}.${Ofe(e)}`)});class Hw extends wo{constructor(){super({name:Im.PlatformNotSupported,message:"Function not supported on current platform"})}}class Ife{constructor(t){this.storage=t}async setItem(t,n){if(!this.storage)throw new Hw;this.storage.setItem(t,n)}async getItem(t){if(!this.storage)throw new Hw;return this.storage.getItem(t)}async removeItem(t){if(!this.storage)throw new Hw;this.storage.removeItem(t)}async clear(){if(!this.storage)throw new Hw;this.storage.clear()}}class Rfe{constructor(){this.storage=new Map}get length(){return this.storage.size}key(t){return t>this.length-1?null:Array.from(this.storage.keys())[t]}setItem(t,n){this.storage.set(t,n)}getItem(t){return this.storage.get(t)??null}removeItem(t){this.storage.delete(t)}clear(){this.storage.clear()}}const Mfe=new pi("CoreStorageUtils"),G4e=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{Mfe.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new Rfe},Nfe=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return Mfe.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new Rfe}};class Y4e extends Ife{constructor(){super(G4e())}}class X4e extends Ife{constructor(){super(Nfe())}}class Z4e{constructor(t){this._storage=t}get storage(){if(!this._storage)throw new Hw;return this._storage}setItem(t,n){this.storage.setItem(t,n)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}}class Q4e extends Z4e{constructor(){super(Nfe())}}/*! js-cookie v3.0.5 | MIT */function ak(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var J4e={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function MB(e,t){function n(i,o,s){if(!(typeof document>"u")){s=ak({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(s[u]=e.read(c,u),i===u)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",ak({},o,{expires:-1}))},withAttributes:function(i){return MB(this.converter,ak({},this.attributes,i))},withConverter:function(i){return MB(ak({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var lk=MB(J4e,{path:"/"});class eUe{constructor(t={}){const{path:n,domain:r,expires:i,sameSite:o,secure:s}=t;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(t,"expires")?i:365,this.secure=Object.prototype.hasOwnProperty.call(t,"secure")?s:!0,Object.prototype.hasOwnProperty.call(t,"sameSite")){if(!o||!["strict","lax","none"].includes(o))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(o==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=o}}async setItem(t,n){lk.set(t,n,this.getData())}async getItem(t){return lk.get(t)??null}async removeItem(t){lk.remove(t,this.getData())}async clear(){const t=lk.get(),n=Object.keys(t).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const lS=new Y4e;new X4e;const Yu=new Q4e,Dfe=e=>Object.keys(e).map(t=>t.toLowerCase()).sort().join(";"),tUe="X-Amz-Date",nUe="X-Amz-Security-Token",rUe="authorization",iUe="host",oUe=tUe.toLowerCase(),sUe=nUe.toLowerCase(),Lfe="aws4_request",$fe="AWS4-HMAC-SHA256",aUe="AWS4",lUe="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",Ffe="UNSIGNED-PAYLOAD",cUe=(e,t,n)=>`${e}/${t}/${n}/${Lfe}`,uUe=e=>{const t=e.toISOString().replace(/[:-]|\.\d{3}/g,"");return{longDate:t,shortDate:t.slice(0,8)}},dUe=({credentials:e,signingDate:t=new Date,signingRegion:n,signingService:r,uriEscapePath:i=!0})=>{const{accessKeyId:o,secretAccessKey:s,sessionToken:a}=e,{longDate:l,shortDate:c}=uUe(t),u=cUe(c,n,r);return{accessKeyId:o,credentialScope:u,longDate:l,secretAccessKey:s,sessionToken:a,shortDate:c,signingRegion:n,signingService:r,uriEscapePath:i}},Kw=(e,t)=>{const n=new jy(e??void 0);return n.update(t),n.digestSync()},NB=(e,t)=>{const n=Kw(e,t);return Eze(n)},fUe=e=>Object.entries(e).map(([t,n])=>({key:t.toLowerCase(),value:(n==null?void 0:n.trim().replace(/\s+/g," "))??""})).sort((t,n)=>t.key<n.key?-1:1).map(t=>`${t.key}:${t.value} 845`).join(""),hUe=e=>Array.from(e).sort(([t,n],[r,i])=>t===r?n<i?-1:1:t<r?-1:1).map(([t,n])=>`${oG(t)}=${oG(n)}`).join("&"),oG=e=>encodeURIComponent(e).replace(/[!'()*]/g,pUe),pUe=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,mUe=(e,t=!0)=>e?t?encodeURIComponent(e).replace(/%2F/g,"/"):e:"/",gUe=e=>e==null?lUe:vUe(e)?NB(null,e):Ffe,vUe=e=>e!==Ffe&&(typeof e=="string"||ArrayBuffer.isView(e)||yUe(e)),yUe=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",bUe=({body:e,headers:t,method:n,url:r},i=!0)=>[n,mUe(r.pathname,i),hUe(r.searchParams),fUe(t),Dfe(t),gUe(e)].join(` 846`),wUe=(e,t,n,r)=>{const i=`${aUe}${e}`,o=Kw(i,t),s=Kw(o,n),a=Kw(s,r);return Kw(a,Lfe)},xUe=(e,t,n)=>[$fe,e,t,n].join(` 847`),EUe=(e,{credentialScope:t,longDate:n,secretAccessKey:r,shortDate:i,signingRegion:o,signingService:s,uriEscapePath:a})=>{const l=bUe(e,a),c=NB(null,l),u=xUe(n,t,c);return NB(wUe(r,i,o,s),u)},Bfe=(e,t)=>
847{const n=dUe(t),{accessKeyId:r,credentialScope:i,longDate:o,sessionToken:s}=n,a={...e.headers};a[iUe]=e.url.host,a[oUe]=o,s&&(a[sUe]=s);const l={...e,headers:a},c=EUe(l,n),u=`Credential=${r}/${i}`,d=`SignedHeaders=${Dfe(a)}`,f=`Signature=${c}`;return a[rUe]=`${$fe} ${u}, ${d}, ${f}`,l},jfe=e=>new Date(Date.now()+e),SUe=5*60*1e3,_Ue=(e,t)=>Math.abs(jfe(t).getTime()-e)>=SUe,kUe=(e,t)=>_Ue(e,t)?e-Date.now():t,CUe=({credentials:e,region:t,service:n,uriEscapePath:r=!0})=>{let i;return(o,s)=>async function(l){i=i??0;const c={credentials:typeof e=="function"?await e({forceRefresh:!!(s!=null&&s.isCredentialsExpired)}):e,signingDate:jfe(i),signingRegion:t,signingService:n,uriEscapePath:r},u=await Bfe(l,c),d=await o(u),f=TUe(d);return f&&(i=kUe(Date.parse(f),i)),d}},TUe=({headers:e}={})=>(e==null?void 0:e.date)??(e==null?void 0:e.Date)??(e==null?void 0:e["x-amz-date"]),AUe=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(e);L5().getRandomValues(r);for(const i of r)n.push(t[i%t.length]);return n.join("")};class OUe extends Error{constructor(){super(...arguments),this.nonRetryable=!0}}const PUe=(e,t,n=wfe,r)=>U3e(e,t,xfe(n));function IUe(e){return(e.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function RUe(e){return e.split("").map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const MUe=e=>{let t;return async(...n)=>t||(t=new Promise((r,i)=>{e(...n).then(o=>{r(o)}).catch(o=>{i(o)}).finally(()=>{t=void 0})}),t)};function sG({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}const NUe=async()=>{const{userAgentData:e}=navigator;if(!e)return navigator.userAgent;const{platform:t="",platformVersion:n="",model:r="",architecture:i="",fullVersionList:o=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),s=o.map(l=>`${l.brand}/${l.version}`).join(";");return[t,n,i,r,t,s].filter(l=>l).join(" ")||navigator.userAgent};class MA extends wo{get response(){return this._response?DUe(this._response):void 0}constructor(t){super(t),this.constructor=MA,Object.setPrototypeOf(this,MA.prototype),t.response&&(this._response=t.response)}}const DUe=e=>({...e,headers:{...e.headers}});function LUe(e){return Array.from(e,t=>String.fromCodePoint(t)).join("")}const Rm={convert(e,t={urlSafe:!1,skipPadding:!1}){const n=typeof e=="string"?e:LUe(e);let r=B3e()(n);return t.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),t.skipPadding&&(r=r.replace(/=/g,"")),r}};function $Ue(){return L5().getRandomValues(new Uint32Array(1))[0]}function FUe(e){const{words:t}=e,{sigBytes:n}=e,r=[];for(let i=0;i<n;i++){const o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}class Z5{constructor(t,n){this.words=[];let r=t;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(t){const n=[];for(let r=0;r<t;r+=4)n.push($Ue());return new Z5(n,t)}toString(){return FUe(this)}}var zfe={},_R={};Object.defineProperty(_R,"__esModule",{value:!0});_R.regionAPIs=void 0;_R.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]]);var zy={},BUe=zt&&zt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(zy,"__esModule",{value:!0});zy.ref=zy.init=void 0;const aG="_intercom_npm_loader",NE=function(){NE.loaderQueue(arguments)};NE.q=[];NE.loaderQueue=function(e){NE.q.push(e)};const ck=function(){var e,t,n=document;if(!n.getElementById(aG)){var r=n.createElement("script");r.type="text/javascript",r.async=!0,r.id=aG,r.src="https://widget.intercom.io/widget/"+((e=window.intercomSettings)===null||e===void 0?void 0:e.app_id);var i=n.getElementsByTagName("script")[0];(t=i.parentNode)===null||t===void 0||t.insertBefore(r,i)}},lG=()=>document.readyState==="complete"||document.readyState==="interactive",jUe=()=>BUe(void 0,void 0,void 0,function*(){var e=window,t=e.Intercom;e.intercomSettings&&(e.intercomSettings.installation_type="npm-package"),typeof t=="function"?(t("reattach_activator"),t("update",e.intercomSettings)):(e.Intercom=NE,lG()?ck():(document.addEventListener("readystatechange",function(){lG()&&ck()}),e.attachEvent?e.attachEvent("onload",ck):e.addEventListener("load",ck,!1)))});zy.init=jUe;zy.ref=void 0;(function(e){var t=zt&&zt.__rest||function(A,O){var R={};for(var I in A)Object.prototype.hasOwnProperty.call(A,I)&&O.indexOf(I)<0&&(R[I]=A[I]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,I=Object.getOwnPropertySymbols(A);F<I.length;F++)O.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(A,I[F])&&(R[I[F]]=A[I[F]]);return R};
847Object.defineProperty(e,"__esModule",{value:!0}),e.onUserEmailSupplied=e.showConversation=e.showTicket=e.startChecklist=e.startSurvey=e.showNews=e.showArticle=e.startTour=e.getVisitorId=e.trackEvent=e.onUnreadCountChange=e.onShow=e.onHide=e.showNewMessage=e.showMessages=e.showSpace=e.show=e.hide=e.update=e.shutdown=e.boot=e.Intercom=void 0;const n=_R,r=zy,i=(A,...O)=>{typeof window!==void 0&&window.Intercom?window.Intercom(A,...O):console.warn("Please ensure Intercom is setup and running on client-side!")},o=A=>{if(typeof A!="object"){console.warn("Intercom initialiser called with invalid parameters.");return}const{region:O="us"}=A,R=t(A,["region"]);typeof window<"u"&&!r.ref&&(window.intercomSettings=Object.assign(Object.assign({},R),{api_base:n.regionAPIs.get(O)}),(0,r.init)())};e.Intercom=o,e.default=e.Intercom;const s=A=>i("boot",A);e.boot=s;const a=()=>i("shutdown");e.shutdown=a;const l=A=>i("update",A);e.update=l;const c=()=>i("hide");e.hide=c;const u=()=>i("show");e.show=u;const d=A=>i("showSpace",A);e.showSpace=d;const f=()=>i("showMessages");e.showMessages=f;const h=A=>i("showNewMessage",A);e.showNewMessage=h;const p=A=>i("onHide",A);e.onHide=p;const m=A=>i("onShow",A);e.onShow=m;const g=A=>i("onUnreadCountChange",A);e.onUnreadCountChange=g;const v=(...A)=>i("trackEvent",...A);e.trackEvent=v;const b=()=>i("getVisitorId");e.getVisitorId=b;const w=A=>i("startTour",A);e.startTour=w;const x=A=>i("showArticle",A);e.showArticle=x;const E=A=>i("showNews",A);e.showNews=E;const S=A=>i("startSurvey",A);e.startSurvey=S;const _=A=>i("startChecklist",A);e.startChecklist=_;const k=A=>i("showTicket",A);e.showTicket=k;const C=A=>i("showConversation",A);e.showConversation=C;const T=A=>i("onUserEmailSupplied",A);e.onUserEmailSupplied=T})(zfe);const Jtn=yr(zfe);var ht;(function(e){e.EmptySignInUsername="EmptySignInUsername",e.EmptySignInPassword="EmptySignInPassword",e.CustomAuthSignInPassword="CustomAuthSignInPassword",e.EmptySignUpUsername="EmptySignUpUsername",e.EmptySignUpPassword="EmptySignUpPassword",e.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",e.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",e.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",e.EmptyChallengeResponse="EmptyChallengeResponse",e.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",e.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",e.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",e.EmptyResetPasswordUsername="EmptyResetPasswordUsername",e.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",e.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",e.IncorrectMFAMethod="IncorrectMFAMethod",e.EmptyUpdatePassword="EmptyUpdatePassword",e.InvalidPreferredChallenge="InvalidPreferredChallenge"})(ht||(ht={}));
847const Ufe={[ht.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[ht.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[ht.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[ht.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[ht.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[ht.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[ht.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[ht.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[ht.EmptySignInPassword]:{message:"password is required to signIn"},[ht.EmptySignInUsername]:{message:"username is required to signIn"},[ht.EmptySignUpPassword]:{message:"password is required to signUp"},[ht.EmptySignUpUsername]:{message:"username is required to signUp"},[ht.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[ht.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[ht.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[ht.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[ht.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[ht.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};var bi;(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in",e.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(bi||(bi={}));var Gc;(function(e){e.SignInException="SignInException",e.OAuthSignInError="OAuthSignInException"})(Gc||(Gc={}));class ot extends wo{constructor(t){super(t),this.constructor=ot,Object.setPrototypeOf(this,ot.prototype)}}function $n(e,t){const{message:n,recoverySuggestion:r}=Ufe[t];if(!e)throw new ot({name:t,message:n,recoverySuggestion:r})}function mt(e){const t=e==null?void 0:e.split("_")[0];if(!e||e.indexOf("_")<0||!t||typeof t!="string")throw new ot({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function DB(e){if(!e||!e.includes(":"))throw new ot({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}function LB(e){return Object.entries(e).map(([t,n])=>({Name:t,Value:n}))}function zUe(e){const t={};return e==null||e.forEach(n=>{n.Name&&(t[n.Name]=n.Value)}),t}var cG;(function(e){e.ConcurrentModificationException="ConcurrentModificationException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(cG||(cG={}));var uG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(uG||(uG={}));var dG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UsernameExistsException="UsernameExistsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(dG||(dG={}));var fG;(function(e){e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(fG||(fG={}));var hG;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(hG||(hG={}));var pG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(pG||(pG={}));var mG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(mG||(mG={}));var gG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(gG||(gG={}));var vG;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPol
847icyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(vG||(vG={}));var yG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(yG||(yG={}));var bG;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(bG||(bG={}));var wG;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(wG||(wG={}));var xG;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(xG||(xG={}));var EG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException"})(EG||(EG={}));var NA;(function(e){e.PasswordResetRequiredException="PasswordResetRequiredException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(NA||(NA={}));var SG;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPol
847icyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(SG||(SG={}));var _G;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.MFAMethodNotFoundException="MFAMethodNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(_G||(_G={}));var kG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(kG||(kG={}));var $B;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UsernameExistsException="UsernameExistsException"})($B||($B={}));var CG;(function(e){e.AliasExistsException="AliasExistsException",e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(CG||(CG={}));var TG;(function(e){e.CodeMismatchException="CodeMismatchException",e.EnableSoftw
847areTokenMFAException="EnableSoftwareTokenMFAException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(TG||(TG={}));var AG;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(AG||(AG={}));var OG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(OG||(OG={}));var PG;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(PG||(PG={}));const UUe="SetUpTOTPException",kR="UserUnAuthenticatedException",VUe="UserAlreadyAuthenticatedException",WUe="DeviceMetadataNotFoundException",Vfe="AutoSignInException",HUe="InvalidRedirectException",KUe="InvalidAppSchemeException",qUe="InvalidPreferredRedirectUrlException",GUe=new ot({name:HUe,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new ot({name:KUe,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});const YUe=new ot({name:qUe,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."}),XUe="InvalidOriginException",ZUe=new ot({name:XUe,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),QUe="OAuthSignOutException",JUe="TokenRefreshException",e5e="UnexpectedSignInInterruptionException";function mi(e){if(!e||!e.accessToken)throw new ot({name:kR,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function t5e(e){if(!e||!e.idToken)throw new ot({name:kR,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const n5e=new ot({name:JUe,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. 848 Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow. 849 E.g { responseType: 'code' }`}),r5e=new ot({name:kR,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function Wfe(e){if(s5e(e))throw n5e;if(!o5e(e))throw r5e}function CR(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new ot({name:WUe,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const i5e={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function Hfe(e){return(e==null?void 0:e.accessToken)||(e==null?void 0:e.idToken)}function o5e(e){return Hfe(e)&&(e==null?void 0:e.refreshToken)}function s5e(e){return Hfe(e)&&!(e!=null&&e.refreshToken)}const a5e=async e=>{var a,l;const t=(a=e.getConfig().Auth)==null?void 0:a.Cognito;ct(t);const n=await e.Auth.getTokens({forceRefresh:!1});mi(n);const{"cognito:username":r,sub:i}=((l=n.idToken)==null?void 0:l.payload)??{},o={username:r,userId:i},s=l5e(n);
849return s&&(o.signInDetails=s),o};function l5e(e){return e==null?void 0:e.signInDetails}const Q5=async()=>a5e(bt),_t=(e,t)=>Vb({category:Ys.Auth,action:e,...t}),xn=e=>(t,n)=>{const r=c5e(e),i=JSON.stringify(t);return u5e(n,r,i)},c5e=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),u5e=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"});function Zs(e){if(!e||e.name==="Error"||e instanceof TypeError)throw new ot({name:Im.Unknown,message:"An unknown error has occurred.",underlyingError:e})}const Qn=()=>async e=>{if(e.statusCode>=300){const t=await Lh(e);throw Zs(t),new ot({name:t.name,message:t.message,metadata:t.$metadata})}return sS(e)},d5e=()=>(e,t)=>async function(r){return r.headers["cache-control"]="no-store",e(r)},En=aS(kfe,[d5e]),Kfe="cognito-idp",Sn={service:Kfe,retryDecider:q5(Lh),computeDelay:K5,get userAgentValue(){return Vb()},cache:"no-store"},cS=e=>fn(En,xn("InitiateAuth"),Qn(),{...Sn,...e}),Qs=e=>fn(En,xn("RespondToAuthChallenge"),Qn(),{...Sn,...e}),qfe=e=>fn(En,xn("VerifySoftwareToken"),Qn(),{...Sn,...e}),Gfe=e=>fn(En,xn("AssociateSoftwareToken"),Qn(),{...Sn,...e}),f5e=({region:e})=>({url:new Xs(`https://${Kfe}.${e}.${Ofe(e)}`)}),gt=({endpointOverride:e})=>t=>e?{url:new Xs(e)}:f5e(t),h5e=e=>fn(En,xn("GetTokensFromRefreshToken"),Qn(),{...Sn,...e}),p5e=async({tokens:e,authConfig:t,username:n,clientMetadata:r})=>{var p;ct(t==null?void 0:t.Cognito);const{userPoolId:i,userPoolClientId:o,userPoolEndpoint:s}=t.Cognito,a=mt(i);Wfe(e);const l=h5e({endpointResolver:gt({endpointOverride:s})}),{AuthenticationResult:c}=await l({region:a},{ClientId:o,RefreshToken:e.refreshToken,DeviceKey:(p=e.deviceMetadata)==null?void 0:p.deviceKey,ClientMetadata:r}),u=qc((c==null?void 0:c.AccessToken)??""),d=c!=null&&c.IdToken?qc(c.IdToken):void 0,{iat:f}=u.payload;if(!f)throw new ot({name:"iatNotFoundException",message:"iat not found in access token"});const h=f*1e3-new Date().getTime();return{accessToken:u,idToken:d,clockDrift:h,refreshToken:(c==null?void 0:c.RefreshToken)??e.refreshToken,username:n}},m5e=MUe(p5e),g5e={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var DA;(function(e){e.InvalidAuthTokens="InvalidAuthTokens"})(DA||(DA={}));const v5e={[DA.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},y5e=D5(v5e),IG="CognitoIdentityServiceProvider";class b5e{getKeyValueStorage(){if(!this.keyValueStorage)throw new ot({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(t){this.keyValueStorage=t}setAuthConfig(t){this.authConfig=t}async loadTokens(){try{const t=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t.accessToken);if(!n)throw new ot({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=qc(n),i=await this.getKeyValueStorage().getItem(t.idToken),o=i?qc(i):void 0,s=await this.getKeyValueStorage().getItem(t.refreshToken)??void 0,a=await this.getKeyValueStorage().getItem(t.clockDrift)??"0",l=Number.parseInt(a),c=await this.getKeyValueStorage().getItem(t.signInDetails),u={accessToken:r,idToken:o,refreshToken:s,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:l,username:await this.getLastAuthUser()};return c&&(u.signInDetails=JSON.parse(c)),u}catch{return null}}async storeTokens(t){y5e(t!==void 0,DA.InvalidAuthTokens);const n=t.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,t.accessToken.toString()),t.idToken?await this.getKeyValueStorage().setItem(r.idToken,t.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),t.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,t.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),t.deviceMetadata&&(t.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,t.deviceMetadata.deviceKey),t.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,t.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,t.deviceMetadata.randomPassword)),t.signInDetail
849s?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(t.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${t.clockDrift}`)}async clearTokens(){const t=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(t.accessToken),this.getKeyValueStorage().removeItem(t.idToken),this.getKeyValueStorage().removeItem(t.clockDrift),this.getKeyValueStorage().removeItem(t.refreshToken),this.getKeyValueStorage().removeItem(t.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(t.oauthMetadata)])}async getDeviceMetadata(t){const n=await this.getAuthKeys(t),r=await this.getKeyValueStorage().getItem(n.deviceKey),i=await this.getKeyValueStorage().getItem(n.deviceGroupKey),o=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return o&&i&&r?{deviceKey:r,deviceGroupKey:i,randomPassword:o}:null}async clearDeviceMetadata(t){const n=await this.getAuthKeys(t);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(t){var r;ct((r=this.authConfig)==null?void 0:r.Cognito);const n=t??await this.getLastAuthUser();return w5e(IG,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){var n;ct((n=this.authConfig)==null?void 0:n.Cognito);const t=this.authConfig.Cognito.userPoolClientId;return`${IG}.${t}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(t){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(t))}async getOAuthMetadata(){const{oauthMetadata:t}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(t);return n&&JSON.parse(n)}}const w5e=(e,t)=>J5(g5e)(`${e}`,t);function J5(e){const t=Object.values({...e});return(n,r)=>t.reduce((i,o)=>({...i,[o]:`${n}.${r}.${o}`}),{})}const RG="amplify-signin-with-hostedUI",Jl="CognitoIdentityServiceProvider";class Yfe{constructor(t){this.keyValueStorage=t}async clearOAuthInflightData(){ct(this.cognitoConfig);const t=ec(Jl,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(t.inflightOAuth),this.keyValueStorage.removeItem(t.oauthPKCE),this.keyValueStorage.removeItem(t.oauthState)])}async clearOAuthData(){ct(this.cognitoConfig);const t=ec(Jl,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(RG),this.keyValueStorage.removeItem(t.oauthSignIn)}loadOAuthState(){ct(this.cognitoConfig);const t=ec(Jl,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthState)}storeOAuthState(t){ct(this.cognitoConfig);const n=ec(Jl,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,t)}loadPKCE(){ct(this.cognitoConfig);const t=ec(Jl,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthPKCE)}storePKCE(t){ct(this.cognitoConfig);const n=ec(Jl,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,t)}setAuthConfig(t){this.cognitoConfig=t}async loadOAuthInFlight(){ct(this.cognitoConfig);const t=ec(Jl,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(t.inflightOAuth)==="true"}async storeOAuthInFlight(t){ct(this.cognitoConfig);const n=ec(Jl,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${t}`)}async loadOAuthSignIn(){var o;ct(this.cognitoConfig);const t=ec(Jl,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(RG),[r,i]=((o=await this.keyValueStorage.getItem(t.oauthSignIn))==null?void 0:o.split(","))??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:i==="true"}}async storeOAuthSignIn(t,n=!1){ct(this.cognitoConfig);const r=ec(Jl,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${t},${n}`)}}const ec=(e,t)=>J5(i5e)(e,t),cs=new Yfe(lS),FB=[],x5e=e=>{FB.push(e)},Xfe=()=>{var e;
849for(;FB.length;)(e=FB.pop())==null||e()};class E5e{constructor(){this.waitForInflightOAuth=ER()?async()=>{if(await cs.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((t,n)=>{x5e(t)}),this.inflightPromise)}:async()=>{}}setAuthConfig(t){cs.setAuthConfig(t.Cognito),this.authConfig=t}setTokenRefresher(t){this.tokenRefresher=t}setAuthTokenStore(t){this.tokenStore=t}getTokenStore(){if(!this.tokenStore)throw new ot({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new ot({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(t){this.clientMetadataProvider=t}async getTokens(t){var s,a,l,c,u,d;let n;try{ct((s=this.authConfig)==null?void 0:s.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const i=!!(n!=null&&n.idToken)&&sG({expiresAt:(((l=(a=n.idToken)==null?void 0:a.payload)==null?void 0:l.exp)??0)*1e3,clockDrift:n.clockDrift??0}),o=sG({expiresAt:(((u=(c=n.accessToken)==null?void 0:c.payload)==null?void 0:u.exp)??0)*1e3,clockDrift:n.clockDrift??0});return(t!=null&&t.forceRefresh||i||o)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:(t==null?void 0:t.clientMetadata)??await((d=this.clientMetadataProvider)==null?void 0:d.call(this))}),n===null)?null:{accessToken:n==null?void 0:n.accessToken,idToken:n==null?void 0:n.idToken,signInDetails:n==null?void 0:n.signInDetails}}async refreshTokens({tokens:t,username:n,clientMetadata:r}){try{const{signInDetails:i}=t,o=await this.getTokenRefresher()({tokens:t,authConfig:this.authConfig,username:n,clientMetadata:r});return o.signInDetails=i,await this.setTokens({tokens:o}),Ml.dispatch("auth",{event:"tokenRefresh"},"Auth",Rl),o}catch(i){return this.handleErrors(i)}}handleErrors(t){if(Zs(t),this.isAuthenticationError(t)&&this.clearTokens(),Ml.dispatch("auth",{event:"tokenRefresh_failure",data:{error:t}},"Auth",Rl),t.name.startsWith("NotAuthorizedException"))return null;throw t}isAuthenticationError(t){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>{var i,o;return(o=(i=t==null?void 0:t.name)==null?void 0:i.startsWith)==null?void 0:o.call(i,r)})}async setTokens({tokens:t}){return this.getTokenStore().storeTokens(t)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(t){return this.getTokenStore().getDeviceMetadata(t)}clearDeviceMetadata(t){return this.getTokenStore().clearDeviceMetadata(t)}setOAuthMetadata(t){return this.getTokenStore().setOAuthMetadata(t)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class S5e{constructor(){this.authTokenStore=new b5e,this.authTokenStore.setKeyValueStorage(lS),this.tokenOrchestrator=new E5e,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(m5e)}getTokens(t={}){return this.tokenOrchestrator.getTokens(t)}setKeyValueStorage(t){this.authTokenStore.setKeyValueStorage(t)}
849setClientMetadataProvider(t){this.tokenOrchestrator.setClientMetadataProvider(t)}setAuthConfig(t){this.authTokenStore.setAuthConfig(t),this.tokenOrchestrator.setAuthConfig(t)}}const qw=new S5e,{tokenOrchestrator:Br}=qw;async function Cd(e){if(e.AccessToken){const t=qc(e.AccessToken),n=(t.payload.iat||0)*1e3,r=new Date().getTime(),i=n>0?n-r:0;let o,s,a;e.RefreshToken&&(s=e.RefreshToken),e.IdToken&&(o=qc(e.IdToken)),e!=null&&e.NewDeviceMetadata&&(a=e.NewDeviceMetadata);const l={accessToken:t,idToken:o,refreshToken:s,clockDrift:i,deviceMetadata:a,username:e.username};e!=null&&e.signInDetails&&(l.signInDetails=e.signInDetails),await Br.setTokens({tokens:l})}else throw new wo({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const _5e="Unable to get user session following successful sign-in.",$h=async()=>{try{Ml.dispatch("auth",{event:"signedIn",data:await Q5()},"Auth",Rl)}catch(e){throw e.name===kR?new ot({name:e5e,message:_5e,recoverySuggestion:"This most likely
849is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):e}};function Zfe(){return{active:!1}}const k5e=(e,t)=>{switch(t.type){case"SET_USERNAME":return{...e,username:t.value};case"SET_SESSION":return{...e,session:t.value};case"START":return{...e,active:!0};case"RESET":return Zfe();default:return e}},C5e=e=>{let t=e(Zfe(),{type:"RESET"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},If=C5e(k5e),T5e=3*60*1e3,uk="CognitoSignInState",Xu={username:`${uk}.username`,challengeName:`${uk}.challengeName`,signInSession:`${uk}.signInSession`,expiry:`${uk}.expiry`},A5e=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return dk({signInSession:t.value}),{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return dk(t.value),{...t.value};case"SET_CHALLENGE_NAME":return dk({challengeName:t.value}),{...e,challengeName:t.value};case"SET_USERNAME":return dk({username:t.value}),{...e,username:t.value};case"SET_INITIAL_STATE":return P5e();case"RESET_STATE":return Qfe(),eV();default:return e}},O5e=e=>{const t=Number(e),n=Date.now();return t<=n},Nl=()=>{Yc.dispatch({type:"RESET_STATE"})},Qfe=()=>{for(const e of Object.values(Xu))Yu.removeItem(e)},eV=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),P5e=()=>{const e=Yu.getItem(Xu.expiry);if(!e||O5e(e))return Qfe(),eV();const t=Yu.getItem(Xu.username)??void 0,n=Yu.getItem(Xu.challengeName)??void 0,r=Yu.getItem(Xu.signInSession)??void 0;return{username:t,challengeName:n,signInSession:r}},I5e=e=>{let t=e(eV(),{type:"SET_INITIAL_STATE"});return{getState:()=>t,dispatch:n=>{t=e(t,n)}}},Yc=I5e(A5e);function vg(e){Yc.dispatch({type:"SET_SIGN_IN_STATE",value:e})}const dk=({challengeName:e,signInSession:t,username:n})=>{n&&Yu.setItem(Xu.username,n),e&&Yu.setItem(Xu.challengeName,e),t&&(Yu.setItem(Xu.signInSession,t),Yu.setItem(Xu.expiry,String(Date.now()+T5e)))},MG="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.";class Da extends wo{constructor(t){super(t),this.constructor=Da,Object.setPrototypeOf(this,Da.prototype)}}var bn;(function(e){e.PasskeyNotSupported="PasskeyNotSupported",e.PasskeyAlreadyExists="PasskeyAlreadyExists",e.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",e.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",e.RelyingPartyMismatch="RelyingPartyMismatch",e.PasskeyRegistrationFailed="PasskeyRegistrationFailed",e.PasskeyRetrievalFailed="PasskeyRetrievalFailed",e.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",e.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",e.PasskeyOperationAborted="PasskeyOperationAborted"})(bn||(bn={}));const E2="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",NG="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",Uy={[bn.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:MG},[bn.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:NG},[bn.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:NG},[bn.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:MG},[bn.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[bn.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[bn.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:E2},[bn.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:E2},[bn.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:E2},[bn.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},Wb=D5(Uy,Da),Jfe=e=>{if(e instanceof Error){if(e.name==="AbortError"){const{message:t,recoverySuggestion:n}=Uy[bn.PasskeyOperationAborted];return new Da({name:bn.PasskeyOperationAborted,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="SecurityError"){const{message:t,recoverySuggestion:n}=Uy[bn.RelyingPartyMismatch];return new Da({name:bn.RelyingPartyMismatch,message:t,recoverySuggestion:n,underlyingError:e})}}return new Da({name:Im.Unknown,message:"An unknown error has occurred.",underlyingError:e})},R5e=e=>{if(e instanceof Da)return e;if(e instanceof Error&&e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=Uy[bn.PasskeyAuthenticationCanceled];return new Da({name:bn.PasskeyAuthenticationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}return Jfe(e)},ehe=()=>ER()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",Cc=e=>Rm.convert(new Uint8Array(e),{urlSafe:!0,skipPadding:!0}),Ox=e=>Uint8Array.from($5.convert(e,{urlSafe:!0}),t=>t.charCodeAt(0)).buffer,M5e=e=>{const t=Ox(e.user.id),n=Ox(e.challenge),r=(e.excludeCredentials||[]).map(i=>({...i,id:Ox(i.id)}));return{...e,excludeCredentials:r,challenge:n,user:{...e.user,id:t}}},N5e=e=>{const t={clientDataJSON:Cc(e.response.clientDataJSON),attestationObject:Cc(e.response.attestationObject),transports:e.response.getTransports(),publicKeyAlgorithm:e.response.getPublicKeyAlgorithm(),authenticatorData:Cc(e.response.getAuthenticatorData())},n=e.response.getPublicKey();n&&(t.publicKey=Cc(n));const r={type:e.type,id:e.id,rawId:Cc(e.rawId),clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(r.authenticatorAttachment=e.authenticatorAttachment),r},D5e=e=>{const t=Ox(e.challenge),n=(e.allowCredentials||[]).map(r=>({...r,id:Ox(r.id)}));return{...e,challenge:t,allowCredentials:n}},L5e=e=>{const t={clientDataJSON:Cc(e.response.clientDataJSON),authenticatorData:Cc(e.response.authenticatorData),signature:Cc(e.response.signature)};e.response.userHandle&&(t.userHandle=Cc(e.response.userHandle));const n={id:e.id,rawId:Cc(e.rawId),type:e.type,clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(n.authenticatorAttachment=e.authenticatorAttachment),n};function $5e(e){Wb([!!e,!!(e!=null&&e.challenge),!!(e!=null&&e.user),!!(e!=null&&e.rp),!!(e!=null&&e.pubKeyCredParams)].every(Boolean),bn.InvalidPasskeyRegistrationOptions)}function F5e(e){Wb(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAttestationResponse,bn.PasskeyRegistrationFailed)}function B5e(e){Wb(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAssertionResponse,bn.PasskeyRetrievalFailed)}const j5e=async e=>{try{const t=ehe();Wb(t,bn.PasskeyNotSupported);const n=D5e(e),r=await navigator.credentials.get({publicKey:n});return B5e(r),L5e(r)}catch(t){throw R5e(t)}},z5e=e=>fn(En,xn("ConfirmDevice"),Qn(),{...Sn,...e}
849),oT={convert(e){return new TextEncoder().encode(e)}};function Ue(e,t){e!=null&&this.fromString(e,t)}function zo(){return new Ue(null,null)}let Jf;const U5e=0xdeadbeefcafe,DG=(U5e&16777215)===15715070;function V5e(e,t,n,r,i,o){for(;--o>=0;){const s=t*this[e++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=s&67108863}return i}function W5e(e,t,n,r,i,o){const s=t&32767,a=t>>15;for(;--o>=0;){let l=this[e]&32767;const c=this[e++]>>15,u=a*l+c*s;l=s*l+((u&32767)<<15)+n[r]+(i&1073741823),i=(l>>>30)+(u>>>15)+a*c+(i>>>30),n[r++]=l&1073741823}return i}function H5e(e,t,n,r,i,o){const s=t&16383,a=t>>14;for(;--o>=0;){let l=this[e]&16383;const c=this[e++]>>14,u=a*l+c*s;l=s*l+((u&16383)<<14)+n[r]+i,i=(l>>28)+(u>>14)+a*c,n[r++]=l&268435455}return i}const LG=typeof navigator<"u";LG&&DG&&navigator.appName==="Microsoft Internet Explorer"?(Ue.prototype.am=W5e,Jf=30):LG&&DG&&navigator.appName!=="Netscape"?(Ue.prototype.am=V5e,Jf=26):(Ue.prototype.am=H5e,Jf=28);Ue.prototype.DB=Jf;Ue.prototype.DM=(1<<Jf)-1;Ue.prototype.DV=1<<Jf;const tV=52;Ue.prototype.FV=Math.pow(2,tV);Ue.prototype.F1=tV-Jf;Ue.prototype.F2=2*Jf-tV;const K5e="0123456789abcdefghijklmnopqrstuvwxyz",TR=[];let Hb,Oa;Hb=48;for(Oa=0;Oa<=9;++Oa)TR[Hb++]=Oa;Hb=97;for(Oa=10;Oa<36;++Oa)TR[Hb++]=Oa;Hb=65;for(Oa=10;Oa<36;++Oa)TR[Hb++]=Oa;function $G(e){return K5e.charAt(e)}function q5e(e,t){const n=TR[e.charCodeAt(t)];return n??-1}function G5e(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function Y5e(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function nV(e){const t=zo();return t.fromInt(e),t}function X5e(e,t){let n;if(t===16)n=4;else if(t===8)n=3;else if(t===2)n=1;else if(t===32)n=5;else if(t===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=e.length,i=!1,o=0;for(;--r>=0;){const s=q5e(e,r);if(s<0){e.charAt(r)==="-"&&(i=!0);continue}i=!1,o===0?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,o+=n,o>=this.DB&&(o-=this.DB)}this.clamp(),i&&Ue.ZERO.subTo(this,this)}function Z5e(){const e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t}function Q5e(e){if(this.s<0)return"-"+this.negate().toString(e);let t;if(e==16)t=4;else if(e===8)t=3;else if(e===2)t=1;else if(e===32)t=5;else if(e===4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<t)-1;let r,i=!1,o="",s=this.t,a=this.DB-s*this.DB%t;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=$G(r));s>=0;)a<t?(r=(this[s]&(1<<a)-1)<<t-a,r|=this[--s]>>(a+=this.DB-t)):(r=this[s]>>(a-=t)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=$G(r));return i?o:"0"}function J5e(){const e=zo();return Ue.ZERO.subTo(this,e),e}function eVe(){return this.s<0?this.negate():this}function tVe(e){let t=this.s-e.s;if(t!=0)return t;let n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0}function rV(e){let t=1,n;return(n=e>>>16)!==0&&(e=n,t+=16),(n=e>>8)!==0&&(e=n,t+=8),(n=e>>4)!==0&&(e=n,t+=4),(n=e>>2)!==0&&(e=n,t+=2),(n=e>>1)!==0&&(e=n,t+=1),t}function nVe(){return this.t<=0?0:this.DB*(this.t-1)+rV(this[this.t-1]^this.s&this.DM)}function rVe(e,t){let n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function iVe(e,t){for(let n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function oVe(e,t){const n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB);let s=this.s<<n&this.DM,a;for(a=this.t-1;a>=0;--a)t[a+o+1]=this[a]>>r|s,s=(this[a]&i)<<n;for(a=o-1;a>=0;--a)t[a]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()}function sVe(e,t){t.s=this.s;const n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}const r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(let s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&o)<<i,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}function aVe(e,t){let n=0,r=0;const i=Math.min(e.t,this.t);for(;n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function lVe(e,t){const n=this.abs(),r=e.abs();let i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!==e.s&&Ue.ZERO.subTo(t,t)}function cVe(e){const t=this.abs();let n=e.t=2*t.t;for(;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){const r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function uVe(e,t,n){const r=e.abs();if(r.t<=0)return;const i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=zo());const o=zo(),s=this.s,a=e.s,l=this.DB-rV(r[r.t-1]);l>0?(r.lShiftTo(l,o),i.lShiftTo(l,n)):(r.copyTo(o),i.copyTo(n));const c=o.t,u=o[c-1];if(u===0)return;const d=u*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),f=this.FV/d,h=(1<<this.F1)/d,p=1<<this.F2;let m=n.t,g=m-c;const v=t===null?zo():t;for(o.dlShiftTo(g,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),Ue.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--g>=0;){let b=n[--m]===u?this.DM:Math.floor(n[m]*f+(n[m-1]+p)*h);if((n[m]+=o.am(0,b,n,g,0,c))<b)for(o.dlShiftTo(g,v),n.subTo(v,n);n[m]<--b;)n.subTo(v,n)}t!==null&&(n.drShiftTo(c,t),s!==a&&Ue.ZERO.subTo(t,t)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),s<0&&Ue.ZERO.subTo(n,n)}function dVe(e){const t=zo();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Ue.ZERO)>0&&e.subTo(t,t),t}
849function fVe(){if(this.t<1)return 0;const e=this[0];if(!(e&1))return 0;let t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function hVe(e){return this.compareTo(e)===0}function pVe(e,t){let n=0,r=0;const i=Math.min(e.t,this.t);for(;n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function mVe(e){const t=zo();return this.addTo(e,t),t}function gVe(e){const t=zo();return this.subTo(e,t),t}function vVe(e){const t=zo();return this.multiplyTo(e,t),t}function yVe(e){const t=zo();return this.divRemTo(e,t,null),t}function Kb(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function bVe(e){const t=zo();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ue.ZERO)>0&&this.m.subTo(t,t),t}function wVe(e){const t=zo();return e.copyTo(t),this.reduce(t),t}function xVe(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let n=e[t]&32767;const r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function EVe(e,t){e.squareTo(t),this.reduce(t)}function SVe(e,t,n){e.multiplyTo(t,n),this.reduce(n)}Kb.prototype.convert=bVe;Kb.prototype.revert=wVe;Kb.prototype.reduce=xVe;Kb.prototype.mulTo=SVe;Kb.prototype.sqrTo=EVe;function _Ve(e,t,n){let r=e.bitLength(),i,o=nV(1);const s=new Kb(t);if(r<=0)return o;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6;const a=[];let l=3;const c=i-1,u=(1<<i)-1;if(a[1]=s.convert(this),i>1){const v=zo();for(s.sqrTo(a[1],v);l<=u;)a[l]=zo(),s.mulTo(v,a[l-2],a[l]),l+=2}let d=e.t-1,f,h=!0,p=zo(),m;for(r=rV(e[d])-1;d>=0;){for(r>=c?f=e[d]>>r-c&u:(f=(e[d]&(1<<r+1)-1)<<c-r,d>0&&(f|=e[d-1]>>this.DB+r-c)),l=i;!(f&1);)f>>=1,--l;if((r-=l)<0&&(r+=this.DB,--d),h)a[f].copyTo(o),h=!1;else{for(;l>1;)s.sqrTo(o,p),s.sqrTo(p,o),l-=2;l>
8490?s.sqrTo(o,p):(m=o,o=p,p=m),s.mulTo(p,a[f],o)}for(;d>=0&&!(e[d]&1<<r);)s.sqrTo(o,p),m=o,o=p,p=m,--r<0&&(r=this.DB-1,--d)}const g=s.revert(o);return n(null,g),g}Ue.prototype.copyTo=G5e;Ue.prototype.fromInt=Y5e;Ue.prototype.fromString=X5e;Ue.prototype.clamp=Z5e;Ue.prototype.dlShiftTo=rVe;Ue.prototype.drShiftTo=iVe;Ue.prototype.lShiftTo=oVe;Ue.prototype.rShiftTo=sVe;Ue.prototype.subTo=aVe;Ue.prototype.multiplyTo=lVe;Ue.prototype.squareTo=cVe;Ue.prototype.divRemTo=uVe;Ue.prototype.invDigit=fVe;Ue.prototype.addTo=pVe;Ue.prototype.toString=Q5e;Ue.prototype.negate=J5e;Ue.prototype.abs=eVe;Ue.prototype.compareTo=tVe;Ue.prototype.bitLength=nVe;Ue.prototype.mod=dVe;Ue.prototype.equals=hVe;Ue.prototype.add=mVe;Ue.prototype.subtract=gVe;Ue.prototype.multiply=vVe;Ue.prototype.divide=yVe;Ue.prototype.modPow=_Ve;Ue.ZERO=nV(0);Ue.ONE=nV(1);const kVe=async({a:e,g:t,k:n,x:r,B:i,N:o,U:s})=>new Promise((a,l)=>{t.modPow(r,o,(c,u)=>{if(c){l(c);return}i.subtract(n.multiply(u)).modPow(e.add(s.multiply(r)),o,(d,f)=>{if(d){l(d);return}a(f.mod(o))})})}),CVe="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",the={},BB={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),the[e]=t,BB[t]=e}const Vy=e=>{if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in BB)t[n/2]=BB[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t},iV=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=the[e[n]];return t},jB=e=>{const t=new jy;t.update(e);const n=t.digestSync(),r=iV(n);return new Array(64-r.length).join("0")+r},sT=e=>jB(Vy(e)),TVe=/^[89a-f]/i,Ru=e=>{if(!(e instanceof Ue))throw new Error("Not a BigInteger");const t=e.compareTo(Ue.ZERO)<0;let n=e.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=TVe.test(n)?`00${n}`:n,t){const r=n.split("").map(o=>{const s=~parseInt(o,16)&15;return"0123456789ABCDEF".charAt(s)}).join("");n=new Ue(r,16).add(Ue.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},AVe=({A:e,B:t})=>{const n=new Ue(sT(Ru(e)+Ru(t)),16);if(n.equals(Ue.ZERO))throw new Error("U cannot be zero.");return n},OVe=(e,t,n)=>{const r=new jy(t);r.update(e);const i=r.digestSync(),o=new jy(i);return o.update(n),o.digestSync().slice(0,16)},oV=e=>{const t=new Z5().random(e).toString();return Vy(t)},PVe=()=>Rm.convert(oV(40));class IVe{constructor({userPoolName:t,a:n,g:r,A:i,N:o}){this.encoder=oT,this.userPoolName=t,this.a=n,this.g=r,this.A=i,this.N=o,this.k=new Ue(sT(`${Ru(o)}${Ru(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new ot({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new ot({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new ot({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(t,n){this.randomPassword=PVe();const r=`${t}${n}:${this.randomPassword}`,i=jB(r),o=iV(oV(16));return this.saltToHashDevices=Ru(new Ue(o,16)),new Promise((s,a)=>{this.g.modPow(new Ue(sT(this.saltToHashDevices+i),16),this.N,(l,c)=>{if(l){a(l);return}this.verifierDevices=Ru(c),s()})})}async getPasswordAuthenticationKey({username:t,password:n,serverBValue:r,salt:i}){if(r.mod(this.N).equals(Ue.ZERO))throw new Error("B cannot be zero.");const o=AVe({A:this.A,B:r}),s=`${this.userPoolName}${t}:${n}`,a=jB(s),l=new Ue(sT(Ru(i)+a),16),c=await kVe({a:this.a,g:this.g,k:this.k,x:l,B:r,N:this.N,U:o}),u=this.encoder.convert("Caldera Derived Key"),d=this.encoder.convert("�"),f=new Uint8Array(u.byteLength+d.byteLength);return f.set(u,0),f.set(d,u.byteLength),OVe(Vy(Ru(c)),Vy(Ru(o)),f)}}const RVe=async({a:e,g:t,N:n})=>new Promise((r,i)=>{t.modPow(e,n,(o,s)=>{if(o){i(o);return}if(s.mod(n).equals(Ue.ZERO)){i(new Error("Illegal parameter. A mod N cannot be 0."));return}r(s)})}),uS=async e=>{const t=new Ue(CVe,16),n=new Ue("2",16),r=MVe(),i=await RVe({a:r,g:n,N:t});return new IVe({userPoolName:e,a:r,g:n,A:i,N:t})},MVe=()=>{const e=iV(oV(128));return new Ue(e,16)};async function yg({userPoolId:e,userPoolEndpoint:t,newDeviceMetadata:n,accessToken:r}){if(!n)return;const i=e.split("_")[1]||"",o=await uS(i),s=n==null?void 0:n.DeviceKey,a=n==null?void 0:n.DeviceGroupKey;try{await o.generateHashDevice(a??"",s??"")}catch{return}const l={Salt:Rm.convert(Vy(o.getSaltToHashDevices())),PasswordVerifier:Rm.convert(Vy(o.getVerifierDevices()))},c=o.getRandomPassword();try{return await z5e({endpointResolver:gt({endpointOverride:t})})({region:mt(e)}
849,{AccessToken:r,DeviceName:await NUe(),DeviceKey:n==null?void 0:n.DeviceKey,DeviceSecretVerifierConfig:l}),{deviceKey:s,deviceGroupKey:a,randomPassword:c}}catch{return}}async function NVe(e){var h;const t=(h=bt.getConfig().Auth)==null?void 0:h.Cognito;ct(t);const{username:n,signInSession:r,signInDetails:i,challengeName:o}=Yc.getState();if(o!=="WEB_AUTHN"||!n)throw new ot({name:Gc.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:s}=e;Wb(!!s,bn.InvalidPasskeyAuthenticationOptions);const a=await j5e(JSON.parse(s)),l=Qs({endpointResolver:gt({endpointOverride:t.userPoolEndpoint})}),{ChallengeName:c,ChallengeParameters:u,AuthenticationResult:d,Session:f}=await l({region:mt(t.userPoolId),userAgentValue:_t(nt.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(a)},ClientId:t.userPoolClientId,Session:r});if(vg({signInSession:f,username:n,challengeName:c,signInDetails:i}),d)return await Cd({...d,username:n,NewDeviceMetadata:await yg({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:d.NewDeviceMetadata,accessToken:d.AccessToken}),signInDetails:i}
849),Yc.dispatch({type:"RESET_STATE"}),await $h(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(c==="WEB_AUTHN")throw new ot({name:Gc.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:c,challengeParameters:u}}function Mi({username:e,userPoolId:t,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const i=r.getData(e,t,n);return i?{EncodedData:i}:{}}const DVe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],LVe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],nhe=()=>{const e=new Date,t=LVe[e.getUTCDay()],n=DVe[e.getUTCMonth()],r=e.getUTCDate();let i=e.getUTCHours();i<10&&(i=`0${i}`);let o=e.getUTCMinutes();o<10&&(o=`0${o}`);let s=e.getUTCSeconds();s<10&&(s=`0${s}`);const a=e.getUTCFullYear();return`${t} ${n} ${r} ${i}:${o}:${s} UTC ${a}`},rhe=({userPoolName:e,username:t,challengeParameters:n,dateNow:r,hkdf:i})=>{const o=oT.convert(e),s=oT.convert(t),a=$Ve(n.SECRET_BLOCK),l=oT.convert(r),c=new Uint8Array(o.byteLength+s.byteLength+a.byteLength+l.byteLength);c.set(o,0),c.set(s,o.byteLength),c.set(a,o.byteLength+s.byteLength),c.set(l,o.byteLength+s.byteLength+a.byteLength);const u=new jy(i);u.update(c);const d=u.digestSync();return Rm.convert(d)},$Ve=e=>{const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=$5.convert(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i};async function dS({username:e,config:t,clientMetadata:n,session:r,tokenOrchestrator:i}){const{userPoolId:o,userPoolEndpoint:s}=t,a=t.userPoolClientId,l=await(i==null?void 0:i.getDeviceMetadata(e));CR(l);const c=await uS(l.deviceGroupKey),u={USERNAME:e,SRP_A:c.A.toString(16),DEVICE_KEY:l.deviceKey},d={ChallengeName:"DEVICE_SRP_AUTH",ClientId:a,ChallengeResponses:u,ClientMetadata:n,Session:r},f=Qs({endpointResolver:gt({endpointOverride:s})}),{ChallengeParameters:h,Session:p}=await f({region:mt(o)},d);return FVe(e,h,n,p,c,t,i)}async function FVe(e,t,n,r,i,{userPoolId:o,userPoolClientId:s,userPoolEndpoint:a},l){const c=await(l==null?void 0:l.getDeviceMetadata(e));CR(c);const u=new Ue(t==null?void 0:t.SRP_B,16),d=new Ue(t==null?void 0:t.SALT,16),{deviceKey:f}=c,{deviceGroupKey:h}=c,p=await i.getPasswordAuthenticationKey({username:c.deviceKey,password:c.randomPassword,serverBValue:u,salt:d}),m=nhe(),g={USERNAME:(t==null?void 0:t.USERNAME)??e,PASSWORD_CLAIM_SECRET_BLOCK:t==null?void 0:t.SECRET_BLOCK,TIMESTAMP:m,PASSWORD_CLAIM_SIGNATURE:rhe({username:f,userPoolName:h,challengeParameters:t,dateNow:m,hkdf:p}),DEVICE_KEY:f},v=Mi({username:e,userPoolId:o,userPoolClientId:s}),b={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:s,ChallengeResponses:g,Session:r,ClientMetadata:n,UserContextData:v};return Qs({endpointResolver:gt({endpointOverride:a})})({region:mt(o)},b)}async function sV(e,t,n,r,i,o,s){const{userPoolId:a,userPoolClientId:l,userPoolEndpoint:c}=o,u=(a==null?void 0:a.split("_")[1])||"",d=new Ue(t==null?void 0:t.SRP_B,16),f=new Ue(t==null?void 0:t.SALT,16),h=t==null?void 0:t.USER_ID_FOR_SRP;if(!h)throw new ot({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const p=await i.getPasswordAuthenticationKey({username:h,password:e,serverBValue:d,salt:f}),m=nhe(),g={USERNAME:h,PASSWORD_CLAIM_SECRET_BLOCK:t==null?void 0:t.SECRET_BLOCK,TIMESTAMP:m,PASSWORD_CLAIM_SIGNATURE:rhe({username:h,userPoolName:u,challengeParameters:t,dateNow:m,hkdf:p})},v=await s.getDeviceMetadata(h);v&&v.deviceKey&&(g.DEVICE_KEY=v.deviceKey);const b=Mi({username:h,userPoolId:a,userPoolClientId:l}),w={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:g,ClientMetadata:n,Session:r,ClientId:l,UserContextData:b},E=await Qs({endpointResolver:gt({endpointOverride:c})})({region:mt(a)},w);return E.ChallengeName==="DEVICE_SRP_AUTH"?dS({username:h,config:o,clientMetadata:n,session:E.Session,tokenOrchestrator:s}):E}async function qb(e,t,n,r){try{return await e(...t)}catch(i){if(i instanceof ot&&i.name==="ResourceNotFoundException"&&i.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),e(...t);throw i}}function bg(e){const{dispatch:t}=Yc;t({type:"SET_USERNAME",value:e})}async function ihe({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:i,authFlow:o,preferredChallenge:s}){const{userPoolId:a,userPoolClientId:l,userPoolEndpoint:c}=r,u=(a==null?void 0:a.split("_")[1])||"",d=await uS(u),f={USERNAME:e,SRP_A:d.A.toString(16)};o==="USER_AUTH"&&s&&(f.PREFERRED_CHALLENGE=s);const h=Mi({username:e,userPoolId:a,userPoolClientId:l}
849),p={AuthFlow:o,AuthParameters:f,ClientMetadata:n,ClientId:l,UserContextData:h},g=await cS({endpointResolver:gt({endpointOverride:c})})({region:mt(a),userAgentValue:_t(nt.SignIn)},p),{ChallengeParameters:v,Session:b}=g,w=(v==null?void 0:v.USERNAME)??e;return bg(w),g.ChallengeName==="PASSWORD_VERIFIER"?qb(sV,[t,v,n,b,d,r,i],w,i):g}async function BVe({username:e,session:t,selectedChallenge:n,config:r,clientMetadata:i}){return Qs({endpointResolver:gt({endpointOverride:r.userPoolEndpoint})})({region:mt(r.userPoolId),userAgentValue:_t(nt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:e,ANSWER:n},ClientId:r.userPoolClientId,Session:t,ClientMetadata:i})}async function jVe(e,t,n,r,i){var h;const{userPoolId:o,userPoolClientId:s,userPoolEndpoint:a}=r,l={ANSWER:"PASSWORD",USERNAME:e,PASSWORD:t},c=Mi({username:e,userPoolId:o,userPoolClientId:s}),d=await Qs({endpointResolver:gt({endpointOverride:a})})({region:mt(o),userAgentValue:_t(nt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:l,ClientId:s,ClientMetadata:n,Session:i,UserContextData:c}),f=((h=d.ChallengeParameters)==null?void 0:h.USERNAME)??e;return bg(f),d}async function zVe(e,t,n,r,i,o){var g;const{userPoolId:s,userPoolClientId:a,userPoolEndpoint:l}=r,c=s.split("_")[1]||"",u=await uS(c),d={ANSWER:"PASSWORD_SRP",USERNAME:e,SRP_A:u.A.toString(16)},f=Mi({username:e,userPoolId:s,userPoolClientId:a}),p=await Qs({endpointResolver:gt({endpointOverride:l})})({region:mt(s),userAgentValue:_t(nt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:d,ClientId:a,ClientMetadata:n,Session:i,UserContextData:f}),m=((g=p.ChallengeParameters)==null?void 0:g.USERNAME)??e;return bg(m),p.ChallengeName==="PASSWORD_VERIFIER"?qb(sV,[t,p.ChallengeParameters,n,p.Session,u,r,o],m,o):p}const zB="userAttributes.";function UVe(e){return"isSignedIn"in e&&"nextStep"in e}async function VVe({challengeResponse:e,clientMetadata:t,session:n,username:r,config:i,tokenOrchestrator:o}){const{userPoolId:s,userPoolClientId:a,userPoolEndpoint:l}=i,c={USERNAME:r,ANSWER:e},u=await(o==null?void 0:o.getDeviceMetadata(r));u&&u.deviceKey&&(c.DEVICE_KEY=u.deviceKey);const d=Mi({username:r,userPoolId:s,userPoolClientId:a}),f={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:c,Session:n,ClientMetadata:t,ClientId:a,UserContextData:d},p=await Qs({endpointResolver:gt({endpointOverride:l})})({region:mt(s),userAgentValue:_t(nt.ConfirmSignIn)},f);return p.ChallengeName==="DEVICE_SRP_AUTH"?dS({username:r,config:i,clientMetadata:t,session:p.Session,tokenOrchestrator:o}):p}async function WVe({challengeResponse:e,username:t,clientMetadata:n,session:r,deviceName:i,config:o}){const{userPoolId:s,userPoolClientId:a,userPoolEndpoint:l}=o;if(e==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(e==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const c={USERNAME:t};if(/^\d+$/.test(e)){const f=qfe({endpointResolver:gt({endpointOverride:l})}),{Session:h}=await f({region:mt(s),userAgentValue:_t(nt.ConfirmSignIn)},{UserCode:e,Session:r,FriendlyDeviceName:i});Yc.dispatch({type:"SET_SIGN_IN_SESSION",value:h});const p={ChallengeName:"MFA_SETUP",ChallengeResponses:c,Session:h,ClientMetadata:n,ClientId:a};return Qs({endpointResolver:gt({endpointOverride:l})})({region:mt(s),userAgentValue:_t(nt.ConfirmSignIn)},p)}if(e.includes("@")){c.EMAIL=e;const f={ChallengeName:"MFA_SETUP",ChallengeResponses:c,Session:r,ClientMetadata:n,ClientId:a};return Qs({endpointResolver:gt({endpointOverride:l})})({region:mt(s),userAgentValue:_t(nt.ConfirmSignIn)},f)}throw new ot({name:Gc.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${e}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function HVe({challengeResponse:e,username:t,clientMetadata:n,session:r,config:i}){const{userPoolId:o,userPoolClientId:s,userPoolEndpoint:a}=i;$n(e==="TOTP"||e==="SMS"||e==="EMAIL",ht.IncorrectMFAMethod);const l={USERNAME:t,ANSWER:e6e(e)},c=Mi({username:t,userPoolId:o,userPoolClientId:s}),u={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:l,Session:r,ClientMetadata:n,ClientId:s,UserContextData:c};return Qs({endpointResolver:gt({endpointOverride:a})}
849)({region:mt(o),userAgentValue:_t(nt.ConfirmSignIn)},u)}async function KVe({challengeResponse:e,clientMetadata:t,session:n,username:r,requiredAttributes:i,config:o}){const{userPoolId:s,userPoolClientId:a,userPoolEndpoint:l}=o,c={...QVe(i),NEW_PASSWORD:e,USERNAME:r},u=Mi({username:r,userPoolId:s,userPoolClientId:a}),d={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:c,ClientMetadata:t,Session:n,ClientId:a,UserContextData:u};return Qs({endpointResolver:gt({endpointOverride:l})})({region:mt(s),userAgentValue:_t(nt.ConfirmSignIn)},d)}async function qVe(e,t,n,r,i){var m,g;const{userPoolClientId:o,userPoolId:s,userPoolEndpoint:a}=r,l={USERNAME:e,PASSWORD:t},c=await i.getDeviceMetadata(e);c&&c.deviceKey&&(l.DEVICE_KEY=c.deviceKey);const u=Mi({username:e,userPoolId:s,userPoolClientId:o}),d={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:l,ClientMetadata:n,ClientId:o,UserContextData:u},h=await cS({endpointResolver:gt({endpointOverride:a})})({region:mt(s),userAgentValue:_t(nt.SignIn)},d),p=((m=h.ChallengeParameters)==null?void 0:m.USERNAME)??((g=h.ChallengeParameters)==null?void 0:g.USER_ID_FOR_SRP)??e;return bg(p),h.ChallengeName==="DEVICE_SRP_AUTH"?dS({username:p,config:r,clientMetadata:n,session:h.Session,tokenOrchestrator:i}):h}async function GVe(e,t,n,r,i){return ihe({username:e,password:t,clientMetadata:n,config:r,tokenOrchestrator:i,authFlow:"USER_SRP_AUTH"})}async function YVe(e,t,n,r){var p;const{userPoolClientId:i,userPoolId:o,userPoolEndpoint:s}=n,a={USERNAME:e},l=await r.getDeviceMetadata(e);l&&l.deviceKey&&(a.DEVICE_KEY=l.deviceKey);const c=Mi({username:e,userPoolId:o,userPoolClientId:i}),u={AuthFlow:"CUSTOM_AUTH",AuthParameters:a,ClientMetadata:t,ClientId:i,UserContextData:c},f=await cS({endpointResolver:gt({endpointOverride:s})})({region:mt(o),userAgentValue:_t(nt.SignIn)},u),h=((p=f.ChallengeParameters)==null?void 0:p.USERNAME)??e;return bg(h),f.ChallengeName==="DEVICE_SRP_AUTH"?dS({username:h,config:n,clientMetadata:t,session:f.Session,tokenOrchestrator:r}):f}async function XVe(e,t,n,r,i){ct(r);const{userPoolId:o,userPoolClientId:s,userPoolEndpoint:a}=r,l=(o==null?void 0:o.split("_")[1])||"",c=await uS(l),u={USERNAME:e,SRP_A:c.A.toString(16),CHALLENGE_NAME:"SRP_A"},d=Mi({username:e,userPoolId:o,userPoolClientId:s}),f={AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:n,ClientId:s,UserContextData:d},h=cS({endpointResolver:gt({endpointOverride:a})}),{ChallengeParameters:p,Session:m}=await h({region:mt(o),userAgentValue:_t(nt.SignIn)},f),g=(p==null?void 0:p.USERNAME)??e;return bg(g),qb(sV,[t,p,n,m,c,r,i],g,i)}async function wg(e){var o;const{challengeName:t,challengeParameters:n,availableChallenges:r}=e,i=(o=bt.getConfig().Auth)==null?void 0:o.Cognito;switch(ct(i),t){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:a}=Yc.getState(),l=UB(FG(n.MFAS_CAN_SETUP))||[],c=t6e(l),u=c.includes("TOTP"),d=c.includes("EMAIL");if(u&&d)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:c}};if(d)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(u){const f=Gfe({endpointResolver:gt({endpointOverride:i.userPoolEndpoint})}),{Session:h,SecretCode:p}=await f({region:mt(i.userPoolId)},{Session:s});return Yc.dispatch({type:"SET_SIGN_IN_SESSION",value:h}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:ohe(p,a)}}}throw new ot({name:Gc.SignInException,message:`Cannot initiate MFA setup from available types: ${l}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:ZVe(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:UB(FG(n.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const s=await NVe(n);return UVe(s)?s:wg(s)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:r}}}throw new ot({name:Gc.SignInException,message:`An error occurred during the sign in process. ${t} challengeName returned by the underlying service was not addressed.`})}function ohe(e,t){return{sharedSecret:e,getSetupUri:(n,r)=>{const i=`otpauth://totp/${n}:${r??t}?secret=${e}&issuer=${n}`;return new Xs(i)}}}function Gb(e){if(e===NA.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(e===NA.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}
849}function ZVe(e){return e?JSON.parse(e).map(n=>n.includes(zB)?n.replace(zB,""):n):[]}function QVe(e){if(!e)return{};const t={};return Object.entries(e).forEach(([n,r])=>{r&&(t[`${zB}${n}`]=r)}),t}async function JVe(e,t,n,r,i,o,s,a){const l=a==null?void 0:a.userAttributes,c=a==null?void 0:a.friendlyDeviceName;switch(t){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:BVe({username:e,session:n,selectedChallenge:r,config:i,clientMetadata:s});case"SELECT_MFA_TYPE":return HVe({challengeResponse:r,clientMetadata:s,session:n,username:e,config:i});case"MFA_SETUP":return WVe({challengeResponse:r,clientMetadata:s,session:n,username:e,deviceName:c,config:i});case"NEW_PASSWORD_REQUIRED":return KVe({challengeResponse:r,clientMetadata:s,session:n,username:e,requiredAttributes:l,config:i});case"CUSTOM_CHALLENGE":return qb(VVe,[{challengeResponse:r,clientMetadata:s,session:n,username:e,config:i,tokenOrchestrator:o}],e,o);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return n6e({challengeName:t,challengeResponse:r,clientMetadata:s,session:n,username:e,config:i,tokenOrchestrator:o});case"PASSWORD":return jVe(e,r,s,i,n);case"PASSWORD_SRP":return zVe(e,r,s,i,n,o)}throw new ot({name:Gc.SignInException,message:`An error occurred during the sign in process. 850 ${t} challengeName returned by the underlying service was not addressed.`})}function e6e(e){let t="SMS_MFA";return e==="TOTP"&&(t="SOFTWARE_TOKEN_MFA"),e==="EMAIL"&&(t="EMAIL_OTP"),t}function she(e){if(e==="SMS_MFA")return"SMS";if(e==="SOFTWARE_TOKEN_MFA")return"TOTP";if(e==="EMAIL_OTP")return"EMAIL"}
850function UB(e){if(e)return e.map(she).filter(Boolean)}function FG(e){return e?JSON.parse(e):[]}function t6e(e){return e.filter(t=>t==="EMAIL"||t==="TOTP")}async function ahe(){let e;try{e=await Q5()}catch{}if(e&&e.userId&&e.username)throw new ot({name:VUe,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}function fS(e){return Yc.getState().username??e}async function n6e({challengeName:e,challengeResponse:t,clientMetadata:n,session:r,username:i,config:o,tokenOrchestrator:s}){const{userPoolId:a,userPoolClientId:l,userPoolEndpoint:c}=o,u={USERNAME:i};e==="EMAIL_OTP"&&(u.EMAIL_OTP_CODE=t),e==="SMS_MFA"&&(u.SMS_MFA_CODE=t),e==="SMS_OTP"&&(u.SMS_OTP_CODE=t),e==="SOFTWARE_TOKEN_MFA"&&(u.SOFTWARE_TOKEN_MFA_CODE=t);const d=await(s==null?void 0:s.getDeviceMetadata(i));d&&d.deviceKey&&(u.DEVICE_KEY=d.deviceKey);const f=Mi({username:i,userPoolId:a,userPoolClientId:l}),h={ChallengeName:e,ChallengeResponses:u,Session:r,ClientMetadata:n,ClientId:l,UserContextData:f},m=await Qs({endpointResolver:gt({endpointOverride:c})})({region:mt(a),userAgentValue:_t(nt.ConfirmSignIn)},h);return m.ChallengeName==="DEVICE_SRP_AUTH"?dS({username:i,config:o,clientMetadata:n,session:m.Session,tokenOrchestrator:s}):m}async function r6e(e){var a;const t=(a=bt.getConfig().Auth)==null?void 0:a.Cognito;ct(t);const{username:n,password:r,options:i}=e,o={loginId:n,authFlowType:"CUSTOM_WITHOUT_SRP"},s=i==null?void 0:i.clientMetadata;$n(!!n,ht.EmptySignInUsername),$n(!r,ht.CustomAuthSignInPassword);try{const{ChallengeName:l,ChallengeParameters:c,AuthenticationResult:u,Session:d}=await qb(YVe,[n,s,t,Br],n,Br),f=fS(n);return vg({signInSession:d,username:f,challengeName:l,signInDetails:o}),u?(await Cd({username:f,...u,NewDeviceMetadata:await yg({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:u.NewDeviceMetadata,accessToken:u.AccessToken}),signInDetails:o}),Nl(),await $h(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):wg({challengeName:l,challengeParameters:c})}catch(l){Nl(),Zs(l);const c=Gb(l.name);if(c)return c;throw l}}async function i6e(e){var a;const{username:t,password:n,options:r}=e,i={loginId:t,authFlowType:"CUSTOM_WITH_SRP"},o=(a=bt.getConfig().Auth)==null?void 0:a.Cognito;ct(o);const s=r==null?void 0:r.clientMetadata;$n(!!t,ht.EmptySignInUsername),$n(!!n,ht.EmptySignInPassword);try{const{ChallengeName:l,ChallengeParameters:c,AuthenticationResult:u,Session:d}=await XVe(t,n,s,o,Br),f=fS(t);return vg({signInSession:d,username:f,challengeName:l,signInDetails:i}
850),u?(await Cd({username:f,...u,NewDeviceMetadata:await yg({userPoolId:o.userPoolId,userPoolEndpoint:o.userPoolEndpoint,newDeviceMetadata:u.NewDeviceMetadata,accessToken:u.AccessToken}),signInDetails:i}),Nl(),await $h(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):wg({challengeName:l,challengeParameters:c})}catch(l){Nl(),Zs(l);const c=Gb(l.name);if(c)return c;throw l}}const lhe=async()=>{throw new ot({name:Vfe,message:"The autoSignIn flow has not started, or has been cancelled/completed.",recoverySuggestion:"Please try to use the signIn API or log out before starting a new autoSignIn flow."})};let aV=lhe;function VB(e){aV=e}function vs(e=!0){e&&(aV=lhe),If.dispatch({type:"RESET"})}async function BG(e){var s,a;const{username:t,password:n}=e,r=(s=bt.getConfig().Auth)==null?void 0:s.Cognito,i={loginId:t,authFlowType:"USER_SRP_AUTH"};ct(r);const o=(a=e.options)==null?void 0:a.clientMetadata;$n(!!t,ht.EmptySignInUsername),$n(!!n,ht.EmptySignInPassword);try{const{ChallengeName:l,ChallengeParameters:c,AuthenticationResult:u,Session:d}=await GVe(t,n,o,r,Br),f=fS(t);return vg({signInSession:d,username:f,challengeName:l,signInDetails:i}
850),u?(await Cd({username:f,...u,NewDeviceMetadata:await yg({userPoolId:r.userPoolId,userPoolEndpoint:r.userPoolEndpoint,newDeviceMetadata:u.NewDeviceMetadata,accessToken:u.AccessToken}),signInDetails:i}),Nl(),await $h(),vs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):wg({challengeName:l,challengeParameters:c})}catch(l){Nl(),vs(),Zs(l);const c=Gb(l.name);if(c)return c;throw l}}async function o6e(e){var a;const{username:t,password:n,options:r}=e,i=(a=bt.getConfig().Auth)==null?void 0:a.Cognito,o={loginId:t,authFlowType:"USER_PASSWORD_AUTH"};ct(i);const s=r==null?void 0:r.clientMetadata;$n(!!t,ht.EmptySignInUsername),$n(!!n,ht.EmptySignInPassword);try{const{ChallengeName:l,ChallengeParameters:c,AuthenticationResult:u,Session:d}=await qb(qVe,[t,n,s,i,Br],t,Br),f=fS(t);return vg({signInSession:d,username:f,challengeName:l,signInDetails:o}),u?(await Cd({...u,username:f,NewDeviceMetadata:await yg({userPoolId:i.userPoolId,userPoolEndpoint:i.userPoolEndpoint,newDeviceMetadata:u.NewDeviceMetadata,accessToken:u.AccessToken}),signInDetails:o}),Nl(),await $h(),vs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):wg({challengeName:l,challengeParameters:c})}catch(l){Nl(),vs(),Zs(l);const c=Gb(l.name);if(c)return c;throw l}}async function s6e({username:e,clientMetadata:t,config:n,tokenOrchestrator:r,preferredChallenge:i,password:o,session:s}){const{userPoolId:a,userPoolClientId:l,userPoolEndpoint:c}=n,u=Mi({username:e,userPoolId:a,userPoolClientId:l}),d={USERNAME:e};if(i){if(n.passwordless&&(i==="EMAIL_OTP"&&!n.passwordless.emailOtpEnabled||i==="SMS_OTP"&&!n.passwordless.smsOtpEnabled||i==="WEB_AUTHN"&&!n.passwordless.webAuthn)&&$n(!1,ht.InvalidPreferredChallenge),i==="PASSWORD_SRP")return $n(!!o,ht.EmptySignInPassword),ihe({username:e,password:o,clientMetadata:t,config:n,tokenOrchestrator:r,authFlow:"USER_AUTH",preferredChallenge:i});i==="PASSWORD"&&($n(!!o,ht.EmptySignInPassword),d.PASSWORD=o),d.PREFERRED_CHALLENGE=i}const f={AuthFlow:"USER_AUTH",AuthParameters:d,ClientMetadata:t,ClientId:l,UserContextData:u};s&&(f.Session=s);const p=await cS({endpointResolver:gt({endpointOverride:c})})({region:mt(a),userAgentValue:_t(nt.SignIn)},f);return bg(e),p}async function che(e){var l,c;const{username:t,password:n,options:r}=e,i=(l=bt.getConfig().Auth)==null?void 0:l.Cognito,o={loginId:t,authFlowType:"USER_AUTH"};ct(i);const s=r==null?void 0:r.clientMetadata,a=(r==null?void 0:r.preferredChallenge)??((c=i==null?void 0:i.passwordless)==null?void 0:c.preferredChallenge);$n(!!t,ht.EmptySignInUsername);try{const u={username:t,config:i,tokenOrchestrator:Br,clientMetadata:s,preferredChallenge:a,password:n},d=If.getState();d.active&&d.username===t&&(u.session=d.session);const f=await s6e(u),h=fS(t);return vg({signInSession:f.Session,username:h,challengeName:f.ChallengeName,signInDetails:o}),f.AuthenticationResult?(await Cd({username:h,...f.AuthenticationResult,NewDeviceMetadata:await yg({userPoolId:i.userPoolId,userPoolEndpoint:i.userPoolEndpoint,newDeviceMetadata:f.AuthenticationResult.NewDeviceMetadata,accessToken:f.AuthenticationResult.AccessToken}),signInDetails:o}),Nl(),await $h(),vs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):wg({challengeName:f.ChallengeName,challengeParameters:f.ChallengeParameters,availableChallenges:"AvailableChallenges"in f?f.AvailableChallenges:void 0})}catch(u){Nl(),vs(),Zs(u);const d=Gb(u.name);if(d)return d;throw u}}async function lV(e){var n;vs(!1);const t=(n=e.options)==null?void 0:n.authFlowType;switch(await ahe(),t){case"USER_SRP_AUTH":return BG(e);case"USER_PASSWORD_AUTH":return o6e(e);case"CUSTOM_WITHOUT_SRP":return r6e(e);case"CUSTOM_WITH_SRP":return i6e(e);case"USER_AUTH":return che(e);default:return BG(e)}}const uhe=3*60*1e3;function a6e(e){const t=IA.listen("auth-internal",async({payload:r})=>{switch(r.event){case"confirmSignUp":{const i=r.data;i!=null&&i.isSignUpComplete&&(IA.dispatch("auth-internal",{event:"autoSignIn"}),VB(fhe(e)),t())}}}),n=setTimeout(()=>{t(),clearTimeout(n),vs()},uhe)}function dhe(e,t){let n;return r=>{n||e(...r),clearTimeout(n),n=setTimeout(()=>{n=void 0},t)}}function l6e(e,t,n){const r=Date.now(),i=setInterval(async()=>
850{if(Date.now()-r>uhe)clearInterval(i),n(new ot({name:Vfe,message:"The account was not confirmed on time.",recoverySuggestion:"Try to verify your account by clicking the link sent your email or phone and then login manually."})),vs();else try{const a=await lV(e);a.nextStep.signInStep!=="CONFIRM_SIGN_UP"&&(t(a),clearInterval(i),vs())}catch(a){clearInterval(i),n(a),vs()}},5e3)}const c6e=dhe(l6e,300),u6e=dhe(f6e,300);function d6e(e){return async()=>new Promise((t,n)=>{c6e([e,t,n])})}async function f6e(e,t,n){var r;try{const i=((r=e==null?void 0:e.options)==null?void 0:r.authFlowType)==="USER_AUTH"?await che(e):await lV(e);t(i),vs()}catch(i){n(i),vs()}}function fhe(e){return async()=>new Promise((t,n)=>{u6e([e,t,n])})}const h6e=fhe,p6e=()=>async e=>{if(e.statusCode>=300){const t=await Lh(e);if(Zs(t),t.name===$B.InvalidParameterException&&/'password'/.test(t.message)&&/Member must not be null/.test(t.message)){const n=ht.EmptySignUpPassword,{message:r,recoverySuggestion:i}=Ufe[n];throw new ot({name:n,message:r,recoverySuggestion:i})}throw new ot({name:t.name,message:t.message})}return sS(e)},m6e=e=>fn(En,xn("SignUp"),p6e(),{...Sn,...e});async function g6e(e){var _;const{username:t,password:n,options:r}=e,i=(_=bt.getConfig().Auth)==null?void 0:_.Cognito,o=(i==null?void 0:i.signUpVerificationMethod)??"code",{clientMetadata:s,validationData:a,autoSignIn:l}=e.options??{};ct(i),$n(!!t,ht.EmptySignUpUsername);const c=typeof l!="boolean"?l:void 0,u={username:t,options:c};(c==null?void 0:c.authFlowType)!=="CUSTOM_WITHOUT_SRP"&&(u.password=n);const{userPoolId:d,userPoolClientId:f,userPoolEndpoint:h}=i,p=m6e({endpointResolver:gt({endpointOverride:h})}),m={Username:t,Password:void 0,UserAttributes:(r==null?void 0:r.userAttributes)&&LB(r==null?void 0:r.userAttributes),ClientMetadata:s,ValidationData:a&&LB(a),ClientId:f,UserContextData:Mi({username:t,userPoolId:d,userPoolClientId:f})};n&&(m.Password=n);const{UserSub:g,CodeDeliveryDetails:v,UserConfirmed:b,Session:w}=await p({region:mt(d),userAgentValue:_t(nt.SignUp)},m);(c||l===!0)&&(If.dispatch({type:"START"}),If.dispatch({type:"SET_USERNAME",value:t}),If.dispatch({type:"SET_SESSION",value:w}));const x={destination:v==null?void 0:v.Destination,deliveryMedium:v==null?void 0:v.DeliveryMedium,attributeName:v==null?void 0:v.AttributeName},E=!!b,S=If.getState().active;if(E)return S?(VB(h6e(u)),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:g}):{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:g};if(S){if(o==="link")return VB(d6e(u)),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:x},userId:g};a6e(u)}return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:x},userId:g}}const v6e=e=>fn(En,xn("ForgotPassword"),Qn(),{...Sn,...e});async function y6e(e){var d,f;const{username:t}=e;$n(!!t,ht.EmptyResetPasswordUsername);const n=(d=bt.getConfig().Auth)==null?void 0:d.Cognito;ct(n);const{userPoolClientId:r,userPoolId:i,userPoolEndpoint:o}=n,s=(f=e.options)==null?void 0:f.clientMetadata,a=Mi({username:t,userPoolId:i,userPoolClientId:r}),u=(await v6e({endpointResolver:gt({endpointOverride:o})})({region:mt(i),userAgentValue:_t(nt.ResetPassword)},{Username:t,ClientMetadata:s,ClientId:r,UserContextData:a})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:u==null?void 0:u.DeliveryMedium,destination:u==null?void 0:u.Destination,attributeName:u==null?void 0:u.AttributeName}}}}const b6e=e=>fn(En,xn("ConfirmForgotPassword"),Qn(),{...Sn,...e});async function w6e(e){var d,f;const t=(d=bt.getConfig().Auth)==null?void 0:d.Cognito;ct(t);const{userPoolClientId:n,userPoolId:r,userPoolEndpoint:i}=t,{username:o,newPassword:s}=e;$n(!!o,ht.EmptyConfirmResetPasswordUsername),$n(!!s,ht.EmptyConfirmResetPasswordNewPassword);const a=e.confirmationCode;$n(!!a,ht.EmptyConfirmResetPasswordConfirmationCode);const l=(f=e.options)==null?void 0:f.clientMetadata,c=Mi({username:o,userPoolId:r,userPoolClientId:n});await b6e({endpointResolver:gt({endpointOverride:i})})({region:mt(t.userPoolId),userAgentValue:_t(nt.ConfirmResetPassword)},{Username:o,ConfirmationCode:a,Password:s,ClientMetadata:l,ClientId:t.userPoolClientId,UserContextData:c})}const x6e=e=>fn(En,xn("ResendConfirmationCode"),Qn(),{...Sn,...e});async function E6e(e){var h,p;const{username:t}=e;$n(!!t,ht.EmptySignUpUsername);const n=(h=bt.getConfig().Auth)==null?void 0:h.Cognito;ct(n);const{userPoolClientId:r,userPoolId:i,userPoolEndpoint:o}=n,s=(p=e.options)==null?void 0:p.clientMetadata,a=Mi({username:t,userPoolId:i,userPoolClientId:r}
850),l=x6e({endpointResolver:gt({endpointOverride:o})}),{CodeDeliveryDetails:c}=await l({region:mt(n.userPoolId),userAgentValue:_t(nt.ResendSignUpCode)},{Username:t,ClientMetadata:s,ClientId:n.userPoolClientId,UserContextData:a}),{DeliveryMedium:u,AttributeName:d,Destination:f}={...c};return{destination:f,deliveryMedium:u,attributeName:d||void 0}}const S6e=e=>fn(En,xn("ConfirmSignUp"),Qn(),{...Sn,...e});async function _6e(e){var f;const{username:t,confirmationCode:n,options:r}=e,i=(f=bt.getConfig().Auth)==null?void 0:f.Cognito;ct(i);const{userPoolId:o,userPoolClientId:s,userPoolEndpoint:a}=i,l=r==null?void 0:r.clientMetadata;$n(!!t,ht.EmptyConfirmSignUpUsername),$n(!!n,ht.EmptyConfirmSignUpCode);const c=Mi({username:t,userPoolId:o,userPoolClientId:s}),u=S6e({endpointResolver:gt({endpointOverride:a})}),{Session:d}=await u({region:mt(i.userPoolId),userAgentValue:_t(nt.ConfirmSignUp)},{Username:t,ConfirmationCode:n,ClientMetadata:l,ForceAliasCreation:r==null?void 0:r.forceAliasCreation,ClientId:i.userPoolClientId,UserContextData:c});return new Promise((h,p)=>{try{const m={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}},g=If.getState();if(!g.active||g.username!==t){h(m),vs();return}If.dispatch({type:"SET_SESSION",value:d});const v=IA.listen("auth-internal",({payload:b})=>{switch(b.event){case"autoSignIn":h({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),v()}});IA.dispatch("auth-internal",{event:"confirmSignUp",data:m})}catch(m){p(m)}})}async function k6e(e){var c;const{challengeResponse:t,options:n}=e,{username:r,challengeName:i,signInSession:o,signInDetails:s}=Yc.getState(),a=(c=bt.getConfig().Auth)==null?void 0:c.Cognito;ct(a);const l=n==null?void 0:n.clientMetadata;if($n(!!t,ht.EmptyChallengeResponse),!r||!i||!o)throw new ot({name:Gc.SignInException,message:` 851 An error occurred during the sign in process. 852 853 This most likely occurred due to: 854 1. signIn was not called before confirmSignIn. 855 2. signIn threw an exception. 856 3. page was refreshed during the sign in flow and session has expired. 857 `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:u,ChallengeName:d,AuthenticationResult:f,ChallengeParameters:h}=await JVe(r,i,o,t,a,Br,l,n);return vg({signInSession:u,username:r,challengeName:d,signInDetails:s}),f?(await Cd({username:r,...f,NewDeviceMetadata:await yg({userPoolId:a.userPoolId,userPoolEndpoint:a.userPoolEndpoint,newDeviceMetadata:f.NewDeviceMetadata,accessToken:f.AccessToken}),signInDetails:s}),Nl(),await $h(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):wg({challengeName:d,challengeParameters:h})}catch(u){Zs(u);const d=Gb(u.name);if(d)return d;throw u}}const C6e=e=>fn(En,xn("SetUserMFAPreference"),Qn(),{...Sn,...e});async function T6e(e){var c;const{sms:t,totp:n,email:r}=e,i=(c=bt.getConfig().Auth)==null?void 0:c.Cognito;ct(i);const{userPoolEndpoint:o,userPoolId:s}=i,{tokens:a}=await ro({forceRefresh:!1});mi(a),await C6e({endpointResolver:gt({endpointOverride:o})})({region:mt(s),userAgentValue:_t(nt.UpdateMFAPreference)},{AccessToken:a.accessToken.toString(),SMSMfaSettings:S2(t),SoftwareTokenMfaSettings:S2(n),EmailMfaSettings:S2(r)})}function S2(e){if(e==="DISABLED")return{Enabled:!1};if(e==="PREFERRED")return{Enabled:!0,PreferredMfa:!0};if(e==="ENABLED")return{Enabled:!0};if(e==="NOT_PREFERRED")return{Enabled:!0,PreferredMfa:!1}}const hhe=e=>fn(En,xn("GetUser"),Qn(),{...Sn,...e});async function A6e(){var a;const e=(a=bt.getConfig().Auth)==null?void 0:a.Cognito;ct(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await ro({forceRefresh:!1});mi(r);const i=hhe({endpointResolver:gt({endpointOverride:t})}
857),{PreferredMfaSetting:o,UserMFASettingList:s}=await i({region:mt(n),userAgentValue:_t(nt.FetchMFAPreference)},{AccessToken:r.accessToken.toString()});return{preferred:she(o),enabled:UB(s)}}async function O6e(e){var l;const t=(l=bt.getConfig().Auth)==null?void 0:l.Cognito;ct(t);const{userPoolEndpoint:n,userPoolId:r}=t,{code:i,options:o}=e;$n(!!i,ht.EmptyVerifyTOTPSetupCode);const{tokens:s}=await ro({forceRefresh:!1});mi(s),await qfe({endpointResolver:gt({endpointOverride:n})})({region:mt(r),userAgentValue:_t(nt.VerifyTOTPSetup)},{AccessToken:s.accessToken.toString(),UserCode:i,FriendlyDeviceName:o==null?void 0:o.friendlyDeviceName})}const P6e=e=>fn(En,xn("ChangePassword"),Qn(),{...Sn,...e});async function I6e(e){var l;const t=(l=bt.getConfig().Auth)==null?void 0:l.Cognito;ct(t);const{userPoolEndpoint:n,userPoolId:r}=t,{oldPassword:i,newPassword:o}=e;$n(!!i,ht.EmptyUpdatePassword),$n(!!o,ht.EmptyUpdatePassword);const{tokens:s}=await ro({forceRefresh:!1});mi(s),await P6e({endpointResolver:gt({endpointOverride:n})})({region:mt(r),userAgentValue:_t(nt.UpdatePassword)},{AccessToken:s.accessToken.toString(),PreviousPassword:i,ProposedPassword:o})}async function R6e(){var a,l;const e=(a=bt.getConfig().Auth)==null?void 0:a.Cognito;ct(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await ro({forceRefresh:!1});mi(r);const i=((l=r.idToken)==null?void 0:l.payload["cognito:username"])??"",o=Gfe({endpointResolver:gt({endpointOverride:t})}),{SecretCode:s}=await o({region:mt(n),userAgentValue:_t(nt.SetUpTOTP)},{AccessToken:r.accessToken.toString()});if(!s)throw new ot({name:UUe,message:"Failed to set up TOTP."});return ohe(s,JSON.stringify(i))}const M6e=e=>fn(En,xn("UpdateUserAttributes"),Qn(),{...Sn,...e}),phe=async e=>{var u;const{userAttributes:t,options:n}=e,r=(u=bt.getConfig().Auth)==null?void 0:u.Cognito,i=n==null?void 0:n.clientMetadata;ct(r);const{userPoolEndpoint:o,userPoolId:s}=r,{tokens:a}=await ro({forceRefresh:!1});mi(a);const l=M6e({endpointResolver:gt({endpointOverride:o})}),{CodeDeliveryDetailsList:c}=await l({region:mt(s),userAgentValue:_t(nt.UpdateUserAttributes)},{AccessToken:a.accessToken.toString(),ClientMetadata:i,UserAttributes:LB(t)});return{...N6e(t),...D6e(c)}};function N6e(e){var n;const t={};return(n=Object.keys(e))==null||n.forEach(r=>{t[r]={isUpdated:!0,nextStep:{updateAttributeStep:"DONE"}}}),t}function D6e(e){const t={};return e==null||e.forEach(n=>{const{AttributeName:r,DeliveryMedium:i,Destination:o}=n;r&&(t[r]={isUpdated:!1,nextStep:{updateAttributeStep:"CONFIRM_ATTRIBUTE_WITH_CODE",codeDeliveryDetails:{attributeName:r,deliveryMedium:i,destination:o}}})}),t}const L6e=async e=>{const{userAttribute:{attributeKey:t,value:n},options:r}=e,i=await phe({userAttributes:{[t]:n},options:r});return Object.values(i)[0]},$6e=e=>fn(En,xn("VerifyUserAttribute"),Qn(),{...Sn,...e});async function F6e(e){var l;const t=(l=bt.getConfig().Auth)==null?void 0:l.Cognito;ct(t);const{userPoolEndpoint:n,userPoolId:r}=t,{confirmationCode:i,userAttributeKey:o}=e;$n(!!i,ht.EmptyConfirmUserAttributeCode);const{tokens:s}=await ro({forceRefresh:!1});mi(s),await $6e({endpointResolver:gt({endpointOverride:n})})({region:mt(r),userAgentValue:_t(nt.ConfirmUserAttribute)},{AccessToken:s.accessToken.toString(),AttributeName:o,Code:i})}new pi("AuthError");const B6e={oauthSignInError:{message:bi.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:bi.DEFAULT_MSG},missingAuthConfig:{message:bi.DEFAULT_MSG},emptyUsername:{message:bi.EMPTY_USERNAME},invalidUsername:{message:bi.INVALID_USERNAME},emptyPassword:{message:bi.EMPTY_PASSWORD},emptyCode:{message:bi.EMPTY_CODE},signUpError:{message:bi.SIGN_UP_ERROR},noMFA:{message:bi.NO_MFA},invalidMFA:{message:bi.INVALID_MFA},emptyChallengeResponse:{message:bi.EMPTY_CHALLENGE},noUserSession:{message:bi.NO_USER_SESSION},deviceConfig:{message:bi.DEVICE_CONFIG},networkError:{message:bi.NETWORK_ERROR},autoSignInError:{message:bi.AUTOSIGNIN_ERROR},default:{message:bi.DEFAULT_MSG}},fh=(e,t)=>new ot({message:e??"An error has occurred during the oauth process.",name:Gc.OAuthSignInError,recoverySuggestion:B6e.oauthSignInError.log});var WB;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyC
857hallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"})(WB||(WB={}));const j6e="`signInWithRedirect` has been canceled.",z6e="An error occurred while validating the state.",U6e="Try to initiate an OAuth flow from Amplify",mhe=async e=>{const t=await cs.loadOAuthState(),n=e===t?t:void 0;if(!n)throw new ot({name:WB.OAuthSignInError,message:e===null?j6e:z6e,recoverySuggestion:e===null?void 0:U6e});return n},ghe=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,responseType:i,domain:o,preferPrivateSession:s})=>{const a=new Xs(e),l=a.searchParams.get("error"),c=a.searchParams.get("error_description");if(l)throw fh(c??l);return i==="code"?V6e({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:o,preferPrivateSession:s}):W6e({currentUrl:e,redirectUri:r,preferPrivateSession:s})},V6e=async({currentUrl:e,userAgentValue:t,clientId:n,redirectUri:r,domain:i,preferPrivateSession:o})=>{const s=new Xs(e),a=s.searchParams.get("code"),l=s.searchParams.get("state");if(!a||!l)throw fh("User cancelled OAuth flow.");const c=await mhe(l),u="https://"+i+"/oauth2/token",d=await cs.loadPKCE(),f={grant_type:"authorization_code",code:a,client_id:n,redirect_uri:r,...d?{code_verifier:d}:{}},h=Object.entries(f).map(([S,_])=>`${encodeURIComponent(S)}=${encodeURIComponent(_)}`).join("&"),{access_token:p,refresh_token:m,id_token:g,error:v,error_message:b,token_type:w,expires_in:x}=await(await fetch(u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[Vde]:t},body:h})).json();if(v)throw fh(b??v);const E=(p&&qc(p).payload.username)??"username";return await Cd({username:E,AccessToken:p,IdToken:g,RefreshToken:m}),vhe({redirectUri:r,state:c,preferPrivateSession:o})},W6e=async({currentUrl:e,redirectUri:t,preferPrivateSession:n})=>{const r=new Xs(e),{id_token:i,access_token:o,state:s,token_type:a,expires_in:l,error_description:c,error:u}=(r.hash??"#").substring(1).split("&").map(h=>h.split("=")).reduce((h,[p,m])=>({...h,[p]:m}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(u)throw fh(c??u);if(!o)throw fh("No access token returned from OAuth flow.");const d=await mhe(s),f=(o&&qc(o).payload.username)??"username";return await Cd({username:f,AccessToken:o,IdToken:i}),vhe({redirectUri:t,state:d,preferPrivateSession:n})},vhe=async({redirectUri:e,state:t,preferPrivateSession:n})=>{await Br.setOAuthMetadata({oauthSignIn:!0}),await cs.clearOAuthData(),await cs.storeOAuthSignIn(!0,n),Xfe(),q6e(e),H6e(t)&&Ml.dispatch("auth",{event:"customOAuthState",data:IUe(K6e(t))},"Auth",Rl),Ml.dispatch("auth",{event:"signInWithRedirect"},"Auth",Rl),await $h()},H6e=e=>/-/.test(e),K6e=e=>e.split("-").splice(1).join("-"),q6e=e=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",e)};function cV(e,t){if(t){const n=e==null?void 0:e.find(r=>r===t);if(!n)throw YUe;return n}else{const n=(e==null?void 0:e.find(G6e))??(e==null?void 0:e.find(Y6e)),r=(e==null?void 0:e.find(Z6e))??(e==null?void 0:e.find(X6e));if(n)return n;throw r?ZUe:GUe}}const G6e=e=>e.startsWith(String(window.location.origin+(window.location.pathname||"/"))),Y6e=e=>e.includes(String(window.location.hostname)),X6e=e=>e.startsWith("http://"),Z6e=e=>e.startsWith("https://"),uV=async e=>{Xfe(),await cs.clearOAuthInflightData(),Ml.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",Rl)},Q6e=async e=>{try{ct(e),yR(e),cs.setAuthConfig(e)}catch{return}if(await cs.loadOAuthInFlight())try{const t=window.location.href,{loginWith:n,userPoolClientId:r}=e,{domain:i,redirectSignIn:o,responseType:s}=n.oauth,a=cV(o);await ghe({currentUrl:t,clientId:r,domain:i,redirectUri:a,responseType:s,userAgentValue:_t(nt.SignInWithRedirect)})}catch(t){await uV(t)}};ER()&&bt[qde](Q6e);const J6e={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},yhe=async e=>{window!=null&&window.location&&(window.location.href=e.replace("http://","https://"))},jG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",eWe=e=>{const t=new Uint8Array(e);L5().getRandomValues(t);let n="",r;for(const i of t)n+=jG.charAt(i%jG.length);
857return{value:n,method:"S256",toCodeChallenge(){return r||(r=tWe(n),r)}}};function tWe(e){const t=new jy;return t.update(e),nWe(Rm.convert(t.digestSync(),{urlSafe:!0}))}function nWe(e){return e.replace(/=/g,"")}const rWe=()=>AUe(32),iWe=e=>{async function t(n){if(n.persisted&&await e.loadOAuthInFlight()){const i=fh("User cancelled OAuth flow.");await uV(i)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function oWe(e){var i,o,s,a,l,c,u,d,f,h;const t=(i=bt.getConfig().Auth)==null?void 0:i.Cognito;ct(t),yR(t),cs.setAuthConfig(t),(o=e==null?void 0:e.options)!=null&&o.prompt||await ahe();let n="COGNITO",r;return typeof(e==null?void 0:e.provider)=="string"?n=J6e[e.provider]:(s=e==null?void 0:e.provider)!=null&&s.custom?n=e.provider.custom:(a=e==null?void 0:e.provider)!=null&&a.idpIdentifier&&({idpIdentifier:r}=e.provider),sWe({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:n,idpIdentifier:r,customState:e==null?void 0:e.customState,preferPrivateSession:(l=e==null?void 0:e.options)==null?void 0:l.preferPrivateSession,options:{loginHint:(c=e==null?void 0:e.options)==null?void 0:c.loginHint,lang:(u=e==null?void 0:e.options)==null?void 0:u.lang,nonce:(d=e==null?void 0:e.options)==null?void 0:d.nonce,prompt:(f=e==null?void 0:e.options)==null?void 0:f.prompt},authSessionOpener:(h=e==null?void 0:e.options)==null?void 0:h.authSessionOpener})}const sWe=async({oauthConfig:e,provider:t,idpIdentifier:n,clientId:r,customState:i,preferPrivateSession:o,options:s,authSessionOpener:a})=>{const{domain:l,redirectSignIn:c,responseType:u,scopes:d}=e,{loginHint:f,lang:h,nonce:p,prompt:m}=s??{},g=rWe(),v=a||yhe,b=i?`${g}-${RUe(i)}`:g,{value:w,method:x,toCodeChallenge:E}=eWe(128),S=cV(e.redirectSignIn);ER()&&cs.storeOAuthInFlight(!0),cs.storeOAuthState(b),cs.storePKCE(w);const _=new URLSearchParams;_.append("redirect_uri",S),_.append("response_type",u),_.append("client_id",r),n?_.append("idp_identifier",n):_.append("identity_provider",t),_.append("scope",d.join(" ")),f&&_.append("login_hint",f),h&&_.append("lang",h),p&&_.append("nonce",p),m&&_.append("prompt",m.toLowerCase()),_.append("state",b),u==="code"&&(_.append("code_challenge",E()),_.append("code_challenge_method",x));const k=`https://${l}/oauth2/authorize?${_.toString()}`;iWe(cs);const{type:C,error:T,url:A}=await v(k,c,o)??{};try{if(C==="error")throw fh(String(T));if(C==="canceled")throw fh(String(C));C==="success"&&A&&await ghe({currentUrl:A,clientId:r,domain:l,redirectUri:S,responseType:u,userAgentValue:_t(nt.SignInWithRedirect),preferPrivateSession:o})}catch(O){throw await uV(O),O}},aWe=async e=>{var a;const t=(a=e.getConfig().Auth)==null?void 0:a.Cognito;ct(t);const{userPoolEndpoint:n,userPoolId:r}=t,{tokens:i}=await yfe(e,{forceRefresh:!1});mi(i);const o=hhe({endpointResolver:gt({endpointOverride:n})}),{UserAttributes:s}=await o({region:mt(r),userAgentValue:_t(nt.FetchUserAttributes)},{AccessToken:i.accessToken.toString()});return zUe(s)},lWe=()=>aWe(bt),cWe=async e=>{await e.clearOAuthData(),Br.clearTokens(),await bfe(),Ml.dispatch("auth",{event:"signedOut"},"Auth",Rl)},uWe=async(e,t=!1,n)=>{yR(e);const{loginWith:r,userPoolClientId:i}=e,{domain:o,redirectSignOut:s}=r.oauth,a=cV(s,n),l=`https://${o}/logout?${Object.entries({client_id:i,logout_uri:encodeURIComponent(a)}).map(([c,u])=>`${c}=${u}`).join("&")}`;return yhe(l)},dWe=async(e,t,n,r)=>{const{isOAuthSignIn:i}=await t.loadOAuthSignIn(),o=await n.getOAuthMetadata();if(await cWe(t),i||o!=null&&o.oauthSignIn)return uWe(e,!1,r)},fWe=e=>fn(En,xn("RevokeToken"),Qn(),{...Sn,...e}),hWe=e=>fn(En,xn("GlobalSignOut"),Qn(),{...Sn,...e}),bhe=new pi("Auth");async function whe(e){var r,i;const t=(r=bt.getConfig().Auth)==null?void 0:r.Cognito;ct(t),e!=null&&e.global?await mWe(t):await pWe(t);let n;try{yR(t),n=!0}catch{n=!1}if(n){const o=new Yfe(lS);o.setAuthConfig(t);const{type:s}=await dWe(t,o,Br,(i=e==null?void 0:e.oauth)==null?void 0:i.redirectUrl)??{};if(s==="error")throw new ot({name:QUe,message:"An error occurred when attempting to log out from OAuth provider."})}else Br.clearTokens(),await bfe(),Ml.dispatch("auth",{event:"signedOut"},"Auth",Rl)}async function pWe(e){try{const{userPoolEndpoint:t,userPoolId:n,userPoolClientId:r}=e,i=await Br.getTokenStore().loadTokens();Wfe(i),gWe(i.accessToken)&&await fWe({endpointResolver:gt({endpointOverride:t})})({region:mt(n),userAgentValue:_t(nt.SignOut)},{ClientId:r,Token:i.refreshToken})}catch{bhe.debug("Client signOut error caught but will proceed with token removal")}}async function mWe(e){try{const{userPoolEndpoint:t,userPoolId:n}=e,r=await Br.getTokenStore().loadTokens();mi(r),await hWe({endpointResolver:gt({endpointOverride:t})})({region:mt(n),userAgentValue:_t(nt.SignOut)}
857,{AccessToken:r.accessToken.toString()})}catch{bhe.debug("Global signOut error caught but will proceed with token removal")}}const gWe=e=>{var t;return!!((t=e==null?void 0:e.payload)!=null&&t.origin_jti)},vWe=e=>fn(En,xn("GetUserAttributeVerificationCode"),Qn(),{...Sn,...e}),yWe=async e=>{var h;const{userAttributeKey:t,options:n}=e,r=(h=bt.getConfig().Auth)==null?void 0:h.Cognito,i=n==null?void 0:n.clientMetadata;ct(r);const{userPoolEndpoint:o,userPoolId:s}=r,{tokens:a}=await ro({forceRefresh:!1});mi(a);const l=vWe({endpointResolver:gt({endpointOverride:o})}),{CodeDeliveryDetails:c}=await l({region:mt(s),userAgentValue:_t(nt.SendUserAttributeVerificationCode)},{AccessToken:a.accessToken.toString(),ClientMetadata:i,AttributeName:t}),{DeliveryMedium:u,AttributeName:d,Destination:f}={...c};return{destination:f,deliveryMedium:u,attributeName:d}},bWe=e=>fn(En,xn("DeleteUserAttributes"),Qn(),{...Sn,...e});async function wWe(e){var a;const t=(a=bt.getConfig().Auth)==null?void 0:a.Cognito;ct(t);const{userAttributeKeys:n}=e,{userPoolEndpoint:r,userPoolId:i}=t,{tokens:o}=await ro({forceRefresh:!1});mi(o),await bWe({endpointResolver:gt({endpointOverride:r})})({region:mt(i),userAgentValue:_t(nt.DeleteUserAttributes)},{AccessToken:o.accessToken.toString(),UserAttributeNames:n})}const xhe=()=>async e=>{if(e.statusCode>=300){const t=await Lh(e);throw Zs(t),new ot({name:t.name,message:t.message})}else return},xWe=e=>fn(En,xn("DeleteUser"),xhe(),{...Sn,...e});async function EWe(){var o;const e=(o=bt.getConfig().Auth)==null?void 0:o.Cognito;ct(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await ro();mi(r),await xWe({endpointResolver:gt({endpointOverride:t})})({region:mt(n),userAgentValue:_t(nt.DeleteUser)},{AccessToken:r.accessToken.toString()}),await Br.clearDeviceMetadata(),await whe()}const SWe=e=>fn(En,xn("UpdateDeviceStatus"),Qn(),{...Sn,...e});async function _We(){var s;const e=(s=bt.getConfig().Auth)==null?void 0:s.Cognito;ct(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await ro();mi(r);const i=await(Br==null?void 0:Br.getDeviceMetadata());CR(i),await SWe({endpointResolver:gt({endpointOverride:t})})({region:mt(n),userAgentValue:_t(nt.RememberDevice)},{AccessToken:r.accessToken.toString(),DeviceKey:i.deviceKey,DeviceRememberedStatus:"remembered"})}const kWe=e=>fn(En,xn("ForgetDevice"),xhe(),{...Sn,...e});async function CWe(e){var c;const{device:{id:t}={id:void 0}}=e??{},n=(c=bt.getConfig().Auth)==null?void 0:c.Cognito;ct(n);const{userPoolEndpoint:r,userPoolId:i}=n,{tokens:o}=await ro();mi(o);const s=await Br.getDeviceMetadata(),a=s==null?void 0:s.deviceKey;t||CR(s),await kWe({endpointResolver:gt({endpointOverride:r})})({region:mt(i),userAgentValue:_t(nt.ForgetDevice)},{AccessToken:o.accessToken.toString(),DeviceKey:t??a}),(!t||t===a)&&await Br.clearDeviceMetadata()}const TWe=e=>fn(En,xn("ListDevices"),Qn(),{...Sn,...e}),AWe=60;async function OWe(){var s;const e=(s=bt.getConfig().Auth)==null?void 0:s.Cognito;ct(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await ro();mi(r);const o=await TWe({endpointResolver:gt({endpointOverride:t})})({region:mt(n),userAgentValue:_t(nt.FetchDevices)},{AccessToken:r.accessToken.toString(),Limit:AWe});return PWe(o.Devices??[])}const PWe=async e=>e.map(({DeviceKey:t="",DeviceAttributes:n=[],DeviceCreateDate:r,DeviceLastModifiedDate:i,DeviceLastAuthenticatedDate:o})=>{let s;const a=n.reduce((c,{Name:u,Value:d})=>(u&&d&&(u==="device_name"&&(s=d),c[u]=d),c),{});return{id:t,name:s,attributes:a,createDate:r?new Date(r*1e3):void 0,lastModifiedDate:i?new Date(i*1e3):void 0,lastAuthenticatedDate:o?new Date(o*1e3):void 0}}),IWe={identityId:"identityId"},RWe=new pi("DefaultIdentityIdStore");class Ehe{setAuthConfig(t){rT(t.Cognito),this.authConfig=t,this._authKeys=MWe("Cognito",t.Cognito.identityPoolId)}constructor(t){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=t}async loadIdentityId(){var t;rT((t=this.authConfig)==null?void 0:t.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const n=await this.keyValueStorage.getItem(this._authKeys.identityId);return n?(this._hasGuestIdentityId=!0,{id:n,type:"guest"}):null}}catch(n){return RWe.log("Error getting stored IdentityId.",n),null}}async storeIdentityId(t){var n;rT((n=this.authConfig)==null?void 0:n.Cognito),t.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,t.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=t.
857id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const MWe=(e,t)=>J5(IWe)(`com.amplify.${e}`,t),HB=({endpointOverride:e})=>t=>e?{url:new Xs(e)}:q4e(t);function She(e){const t=qc(e).payload.iss,n={};if(!t)throw new ot({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=t.replace(/(^\w+:|^)\/\//,"");return n[r]=e,n}async function NWe({tokens:e,authConfig:t,identityIdStore:n}){n.setAuthConfig({Cognito:t});const r=await n.loadIdentityId();if(r)return r.id;const i=e!=null&&e.idToken?She(e.idToken.toString()):{},o=await DWe(i,t);return n.storeIdentityId({id:o,type:e?"primary":"guest"}),o}async function DWe(e,t){const n=t==null?void 0:t.identityPoolId,r=DB(n),i=W4e({endpointResolver:HB({endpointOverride:t.identityPoolEndpoint})});let o;try{o=(await i({region:r},{IdentityPoolId:n,Logins:e})).IdentityId}catch(s){throw Zs(s),new ot(s)}if(!o)throw new ot({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return o}const fk=new pi("CognitoCredentialsProvider"),zG=50*60*1e3;class _he{constructor(t){this._nextCredentialsRefresh=0,this._identityIdStore=t}async clearCredentialsAndIdentityId(){fk.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){fk.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(t){const n=t.authenticated,{tokens:r}=t,{authConfig:i}=t;try{rT(i==null?void 0:i.Cognito)}catch{return}if(!n&&!i.Cognito.allowGuestAccess)return;const{forceRefresh:o}=t,s=this.hasTokenChanged(r),a=await NWe({tokens:r,authConfig:i.Cognito,identityIdStore:this._identityIdStore});return(o||s)&&this.clearCredentials(),n?(t5e(r),this.credsForOIDCTokens(i.Cognito,r,a)):this.getGuestCredentials(a,i.Cognito)}async getGuestCredentials(t,n){var s,a;if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return fk.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=DB(n.identityPoolId),i=iG({endpointResolver:HB({endpointOverride:n.identityPoolEndpoint})});let o;try{o=await i({region:r},{IdentityId:t})}catch(l){throw Zs(l),new ot(l)}if((s=o==null?void 0:o.Credentials)!=null&&s.AccessKeyId&&((a=o==null?void 0:o.Credentials)!=null&&a.SecretKey)){this._nextCredentialsRefresh=new Date().getTime()+zG;const l={credentials:{accessKeyId:o.Credentials.AccessKeyId,secretAccessKey:o.Credentials.SecretKey,sessionToken:o.Credentials.SessionToken,expiration:o.Credentials.Expiration},identityId:t};return o.IdentityId&&(l.identityId=o.IdentityId,this._identityIdStore.storeIdentityId({id:o.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...l,isAuthenticatedCreds:!1},l}else throw new ot({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(t,n,r){var l,c,u;if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return fk.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const i=n.idToken?She(n.idToken.toString()):{},o=DB(t.identityPoolId),s=iG({endpointResolver:HB({endpointOverride:t.identityPoolEndpoint})});let a;try{a=await s({region:o},{IdentityId:r,Logins:i})}catch(d){throw Zs(d),new ot(d)}if((l=a==null?void 0:a.Credentials)!=null&&l.AccessKeyId&&((c=a==null?void 0:a.Credentials)!=null&&c.SecretKey)){this._nextCredentialsRefresh=new Date().getTime()+zG;const d={credentials:{accessKeyId:a.Credentials.AccessKeyId,secretAccessKey:a.Credentials.SecretKey,sessionToken:a.Credentials.SessionToken,expiration:a.Credentials.Expiration},identityId:r};return a.IdentityId&&(d.identityId=a.IdentityId,this._identityIdStore.storeIdentityId({id:a.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...d,isAuthenticatedCreds:!0,associatedIdToken:(u=n.idToken)==null?void 0:u.toString()},d}else throw new ot({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(t){var n,r;return!!t&&!!((n=this._credentialsAndIdentityId)!=null&&n.associatedIdToken)&&((r=t.idToken)==null?void 0:r.toString())!==this._credentialsAndIdentityId.associatedIdToken}}const LWe=e=>{if(e instanceof Da)return e;if(e instanceof Error){if(e.name==="InvalidStateError"){const{message:t,recoverySuggestion:n}=Uy[bn.PasskeyAlreadyExists];return new Da({name:bn.PasskeyAlreadyExists,message:t,recoverySuggestion:n,underlyingError:e})}if(e.name==="NotAllowedError"){const{message:t,recoverySuggestion:n}=Uy[bn.PasskeyRegistrationCanceled];return new Da({name:bn.PasskeyRegistrationCanceled,message:t,recoverySuggestion:n,underlyingError:e})}}return Jfe(e)},$We=async e=>{try{const t=ehe();Wb(t,bn.PasskeyNotSupported);const n=M5e(e),r=await navigator.credentials.create({publicKey:n});return F5e(r),N5e(r)}catch(t){throw LWe(t)}},FWe=e=>fn(En,xn("StartWebAuthnRegistration"),Qn(),{...Sn,...e}),BWe=e=>fn(En,xn("CompleteWebAuthnRegistration"),Qn(),{...Sn,...e});async function jWe(){var l;const e=(l=bt.getConfig().Auth)==null?void 0:l.Cognito;ct(e);const{userPoolEndpoint:t,userPoolId:n}=e,{tokens:r}=await ro();mi(r);const i=FWe({endpointResolver:gt({endpointOverride:t})}),{CredentialCreationOptions:o}=await i({region:mt(n),userAgentValue:_t(nt.StartWebAuthnRegistration)},{AccessToken:r.accessToken.toString()});
857$5e(o);const s=await $We(o);await BWe({endpointResolver:gt({endpointOverride:t})})({region:mt(n),userAgentValue:_t(nt.CompleteWebAuthnRegistration)},{AccessToken:r.accessToken.toString(),Credential:s})}const zWe=e=>fn(En,xn("ListWebAuthnCredentials"),Qn(),{...Sn,...e});async function UWe(e,t){var u;const n=(u=e.getConfig().Auth)==null?void 0:u.Cognito;ct(n);const{userPoolEndpoint:r,userPoolId:i}=n,{tokens:o}=await e.Auth.fetchAuthSession();mi(o);const s=zWe({endpointResolver:gt({endpointOverride:r})}),{Credentials:a=[],NextToken:l}=await s({region:mt(i),userAgentValue:_t(nt.ListWebAuthnCredentials)},{AccessToken:o.accessToken.toString(),MaxResults:t==null?void 0:t.pageSize,NextToken:t==null?void 0:t.nextToken});return{credentials:a.map(d=>({credentialId:d.CredentialId,friendlyCredentialName:d.FriendlyCredentialName,relyingPartyId:d.RelyingPartyId,authenticatorAttachment:d.AuthenticatorAttachment,authenticatorTransports:d.AuthenticatorTransports,createdAt:d.CreatedAt?new Date(d.CreatedAt*1e3):void 0})),nextToken:l}}async function VWe(e){return UWe(bt,e)}const WWe=e=>fn(En,xn("DeleteWebAuthnCredential"),Qn(),{...Sn,...e});async function HWe(e,t){var a;const n=(a=e.getConfig().Auth)==null?void 0:a.Cognito;ct(n);const{userPoolEndpoint:r,userPoolId:i}=n,{tokens:o}=await e.Auth.fetchAuthSession();mi(o),await WWe({endpointResolver:gt({endpointOverride:r})})({region:mt(i),userAgentValue:_t(nt.DeleteWebAuthnCredential)},{AccessToken:o.accessToken.toString(),CredentialId:t.credentialId})}async function KWe(e){return HWe(bt,e)}const enn=Object.freeze(Object.defineProperty({__proto__:null,AuthError:ot,associateWebAuthnCredential:jWe,get autoSignIn(){return aV},confirmResetPassword:w6e,confirmSignIn:k6e,confirmSignUp:_6e,confirmUserAttribute:F6e,decodeJWT:qc,deleteUser:EWe,deleteUserAttributes:wWe,deleteWebAuthnCredential:KWe,fetchAuthSession:ro,fetchDevices:OWe,fetchMFAPreference:A6e,fetchUserAttributes:lWe,forgetDevice:CWe,getCurrentUser:Q5,listWebAuthnCredentials:VWe,rememberDevice:_We,resendSignUpCode:E6e,resetPassword:y6e,sendUserAttributeVerificationCode:yWe,setUpTOTP:R6e,signIn:lV,signInWithRedirect:oWe,signOut:whe,signUp:g6e,updateMFAPreference:T6e,updatePassword:I6e,updateUserAttribute:L6e,updateUserAttributes:phe,verifyTOTPSetup:O6e},Symbol.toStringTag,{value:"Module"}));var te=typeof window<"u"?window:void 0,hi=typeof globalThis<"u"?globalThis:te;typeof self>"u"&&(hi.self=hi),typeof File>"u"&&(hi.File=function(){});var No=hi==null?void 0:hi.navigator,Te=hi==null?void 0:hi.document,Dr=hi==null?void 0:hi.location,dV=hi==null?void 0:hi.fetch,KB=hi!=null&&hi.XMLHttpRequest&&"withCredentials"in new hi.XMLHttpRequest?hi.XMLHttpRequest:void 0,UG=hi==null?void 0:hi.AbortController,qWe=hi==null?void 0:hi.CompressionStream,rs=No==null?void 0:No.userAgent,et=te??{};function khe(){return!(!te||te.navigator.onLine===!1)}var VG="1.400.1",nr={DEBUG:!1,LIB_VERSION:VG,LIB_NAME:"web",JS_SDK_VERSION:VG};function WG(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,i)}function Or(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){WG(o,r,i,s,a,"next",l)}function a(l){WG(o,r,i,s,a,"throw",l)}s(void 0)})}}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}function Che(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var HG=e=>{if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}};function KG(e){return typeof e=="string"||e}function qG(e){return typeof e=="string"?e:void 0}var q0,Mu=function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.AiQueue="ai_queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e}({}),GG=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),GWe=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],YWe=["token"],The="NativeGzipValidationError",qB=e=>e.length>=2&&e[0]===31&&e[1]===139,YG=(e,t)=>e===GG.GZipJS||t===GG.GZipJS||t==="gzip",XG=e=>!(!e||typeof e!="object")&&("name"in e?String(e.name):"")==="NotReadableError",hk=e=>
857{var t=new Error("Native gzip produced invalid output: "+e);throw t.name=The,t},XWe=function(){var e=Or(function*(t,n){18>t.size&&hk("too-short");var r=new Uint8Array(yield t.slice(0,10).arrayBuffer());qB(r)&&r[2]===8||hk("invalid-header");var i=new DataView(yield t.slice(t.size-8).arrayBuffer());i.getUint32(0,!0)!==(s=>{for(var a=(()=>{if(q0)return q0;q0=[];for(var u=0;256>u;u++){for(var d=u,f=0;8>f;f++)d=1&d?3988292384^d>>>1:d>>>1;q0[u]=d>>>0}return q0})(),l=4294967295,c=0;s.length>c;c++)l=a[255&(l^s[c])]^l>>>8;return(4294967295^l)>>>0})(n)&&hk("invalid-crc");var o=n.length>>>0;i.getUint32(4,!0)!==o&&hk("invalid-size")});return function(t,n){return e.apply(this,arguments)}}();function GB(){return GB=Or(function*(e,t,n){t===void 0&&(t=!0);try{var r=new TextEncoder().encode(e),i=new CompressionStream("gzip"),o=i.writable.getWriter(),s=o.write(r).then(()=>o.close()).catch(function(){var c=Or(function*(u){try{yield o.abort(u)}catch{}throw u});return function(u){return c.apply(this,arguments)}}()),a=new Response(i.readable).blob(),l=(yield Promise.all([a,s]))[0];return yield XWe(l,r),l}catch(c){if(n!=null&&n.rethrow)throw c;return t&&console.error("Failed to gzip compress data",c),null}}),GB.apply(this,arguments)}var ZWe=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],ZG=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return ZWe.concat(t).some(r=>{var i=r.toLowerCase();return n.indexOf(i)!==-1})};function lt(e,t){return e.indexOf(t)!==-1}var AR=function(e){return e.trim()},YB=function(e){return e.replace(/^\$/,"")};function Ahe(e){var t,n=[];return(t=JSON.stringify(e,function(r,i){if(typeof i=="bigint")return i.toString();if(typeof i!="function"&&typeof i!="symbol"){if(i instanceof Error)return{name:i.name,message:i.message,stack:i.stack};if(i&&typeof i=="object"){for(;n.length>0&&n[n.length-1]!==this;)n.pop();if(n.includes(i))return"[Circular]";n.push(i)}return i}}))!==null&&t!==void 0?t:"null"}var Ohe=Object.prototype,Phe=Ohe.hasOwnProperty,OR=Ohe.toString,At=Array.isArray||function(e){return OR.call(e)==="[object Array]"},fl=e=>typeof e=="function",Wn=e=>e===Object(e)&&!At(e),Rf=e=>{if(Wn(e)){for(var t in e)if(Phe.call(e,t))return!1;return!0}return!1},_e=e=>e===void 0,wn=e=>OR.call(e)=="[object String]",XB=e=>wn(e)&&e.trim().length===0,Uo=e=>e===null,St=e=>_e(e)||Uo(e),eo=e=>OR.call(e)=="[object Number]"&&e==e,Eu=e=>eo(e)&&e>0,$c=e=>OR.call(e)==="[object Boolean]",QWe=e=>e instanceof FormData,JWe=e=>lt(GWe,e),eHe=e=>lt(YWe,e);function Ihe(e){return e===null||typeof e!="object"}function LA(e,t){return{}.toString.call(e)==="[object "+t+"]"}function fV(e){return typeof Event<"u"&&function(t,n){try{return t instanceof n}catch{return!1}}(e,Event)}var tHe=[!0,"true",1,"1","yes"],_2=e=>lt(tHe,e),nHe=[!1,"false",0,"0","no"];function Pc(e,t,n,r,i){return t>n&&(r.warn("min cannot be greater than max."),t=n),eo(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t>e?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),Pc(i||n,t,n,r))}class rHe{constructor(t){this.Pe={},this.Oe=t.Oe,this.Fe=Pc(t.bucketSize,0,100,t.Ae),this.$e=Pc(t.refillRate,0,this.Fe,t.Ae),this.Ne=Pc(t.refillInterval,0,864e5,t.Ae)}De(t,n){var r=Math.floor((n-t.lastAccess)/this.Ne);r>0&&(t.tokens=Math.min(t.tokens+r*this.$e,this.Fe),t.lastAccess=t.lastAccess+r*this.Ne)}consumeRateLimit(t){var n,r=Date.now(),i=String(t),o=this.Pe[i];return o?this.De(o,r):this.Pe[i]=o={tokens:this.Fe,lastAccess:r},o.tokens===0||(o.tokens--,o.tokens===0&&((n=this.Oe)==null||n.call(this,t)),o.tokens===0)}stop(){this.Pe={}}}var Us="Mobile",$A="iOS",Zu="Android",Wy="Tablet",Rhe=Zu+" "+Wy,Mhe="iPad",Nhe="Apple",Dhe=Nhe+" Watch",Px="Safari",Hy="BlackBerry",Lhe="Samsung",$he=Lhe+"Browser",Fhe=Lhe+" Internet",dm="Chrome",iHe=dm+" OS",Bhe=dm+" "+$A,hV="Internet Explorer",jhe=hV+" "+Us,pV="Opera",oHe=pV+" Mini",mV="Edge",zhe="Microsoft "+mV,ey="Firefox",Uhe=ey+" "+$A,DE="Nintendo",LE="PlayStation",ty="Xbox",Vhe=Zu+" "+Us,Whe=Us+" "+Px,Gw="Windows",ZB=Gw+" Phone",QG="Nokia",QB="Ouya",Hhe="Generic",sHe=Hhe+" "+Us.toLowerCase(),Khe=Hhe+" "+Wy.toLowerCase(),JB="Konqueror",qhe="Oculus Browser",FA="Vivaldi",Ghe="Yandex",BA="Whale",ej="DuckDuckGo",Yhe="Pale Moon",jA="Waterfox",Ix="Brave",Xhe="Google Search App",tr="(\\d+(\\.\\d+)?)",k2=new RegExp("Version/"+tr),aHe=new RegExp(ty,"i"),lHe=new RegExp(LE+" \\w+","i"),cHe=new RegExp(DE+" \\w+","i"),gV=new RegExp(Hy+"|PlayBook|BB10","i"),uHe={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Zhe=function(e,t,n,r){t=t||"";var i=function(o){return o!=null&&o.brave?Ix:null}(n);
857return i||(r!=null&&r.detectGoogleSearchApp&<(e,"GSA/")?Xhe:lt(e," OPR/")&<(e,"Mini")?oHe:lt(e," OPR/")?pV:gV.test(e)?Hy:lt(e,"IE"+Us)||lt(e,"WPDesktop")?jhe:lt(e,"OculusBrowser")?qhe:lt(e,$he)?Fhe:lt(e,mV)||lt(e,"Edg/")?zhe:lt(e,FA+"/")?FA:lt(e,"YaBrowser/")?Ghe:lt(e,BA+"/")?BA:lt(e,ej+"/")||lt(e,"Ddg/")?ej:lt(e,"FBIOS")?"Facebook "+Us:lt(e,"UCWEB")||lt(e,"UCBrowser")?"UC Browser":lt(e,"CriOS")?Bhe:lt(e,"CrMo")||lt(e,dm)?dm:lt(e,Zu)&<(e,Px)?Vhe:lt(e,"FxiOS")?Uhe:lt(e.toLowerCase(),JB.toLowerCase())?JB:lt(e,Ix+"/")?Ix:((o,s)=>s&<(s,Nhe)||function(a){return lt(a,Px)&&!lt(a,dm)&&!lt(a,Zu)}(o))(e,t)?lt(e,Us)?Whe:Px:lt(e,"PaleMoon/")?Yhe:lt(e,jA+"/")?jA:lt(e,ey)?ey:lt(e,"MSIE")||lt(e,"Trident/")?hV:lt(e,"Gecko")?ey:"")},dHe={[jhe]:[new RegExp("rv:"+tr)],[zhe]:[new RegExp(mV+"?\\/"+tr)],[dm]:[new RegExp("("+dm+"|CrMo)\\/"+tr)],[Bhe]:[new RegExp("CriOS\\/"+tr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+tr)],[Px]:[k2],[Whe]:[k2],[pV]:[new RegExp("(Opera|OPR)\\/"+tr)],[ey]:[new RegExp(ey+"\\/"+tr)],[Uhe]:[new RegExp("FxiOS\\/"+tr)],[JB]:[new RegExp("Konqueror[:/]?"+tr,"i")],[Hy]:[new RegExp(Hy+" "+tr),k2],[Vhe]:[new RegExp("android\\s"+tr,"i")],[Fhe]:[new RegExp($he+"\\/"+tr)],[qhe]:[new RegExp("OculusBrowser\\/"+tr)],[FA]:[new RegExp(FA+"\\/"+tr)],[Ghe]:[new RegExp("YaBrowser\\/"+tr)],[BA]:[new RegExp(BA+"\\/"+tr)],[Ix]:[new RegExp(Ix+"\\/"+tr)],[ej]:[new RegExp("(DuckDuckGo|Ddg)\\/"+tr)],[Yhe]:[new RegExp("PaleMoon\\/"+tr)],[jA]:[new RegExp(jA+"\\/"+tr)],[Xhe]:[new RegExp("GSA\\/"+tr)],[hV]:[new RegExp("(rv:|MSIE )"+tr)],Mozilla:[new RegExp("rv:"+tr)]},fHe=function(e,t,n,r){var i=Zhe(e,t,n,r),o=dHe[i];if(_e(o))return null;for(var s=0;o.length>s;s++){var a=e.match(o[s]);if(a)return parseFloat(a[a.length-2])}return null},JG=[[new RegExp(ty+"; "+ty+" (.*?)[);]","i"),e=>[ty,e&&e[1]||""]],[new RegExp(DE,"i"),[DE,""]],[new RegExp(LE,"i"),[LE,""]],[gV,[Hy,""]],[new RegExp(Gw,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[ZB,""];if(new RegExp(Us).test(t)&&!/IEMobile\b/.test(t))return[Gw+" "+Us,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=uHe[n[1]]||"";return/arm/i.test(t)&&(r="RT"),[Gw,r]}return[Gw,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[$A,[e[3],e[4],e[5]||"0"].join(".")]:[$A,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=_e(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Zu+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Zu+")","i"),e=>e&&e[2]?[Zu,[e[2],e[3],e[4]||"0"].join(".")]:[Zu,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[iHe,""]],[/Linux|debian/i,["Linux",""]]],eY=function(e){return cHe.test(e)?DE:lHe.test(e)?LE:aHe.test(e)?ty:new RegExp(QB,"i").test(e)?QB:new RegExp("("+ZB+"|WPDesktop)","i").test(e)?ZB:/iPad/.test(e)?Mhe:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?Dhe:gV.test(e)?Hy:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(QG,"i").test(e)?QG:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(Us).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Zu:Rhe:new RegExp("(pda|"+Us+")","i").test(e)?sHe:new RegExp(Wy,"i").test(e)&&!new RegExp(Wy+" pc","i").test(e)?Khe:""},hHe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tY(e,t){return typeof(n=e)=="string"&&hHe.test(n)?e:t();var n}function hh(e){return e&&e.split("#")[0]}function aT(e,t){var n=setTimeout(e,t);return n!=null&&n.unref&&(n==null||n.unref()),n}var pHe=e=>e instanceof Error,Qhe={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},mHe=Qhe.info;function Jhe(e){if($c(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(At(e))return{arrayValue:{values:e.map(t=>Jhe(t))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function zA(e){var t=[];for(var n in e){var r=e[n];Uo(r)||_e(r)||t.push({key:n,value:Jhe(r)})}return t}function gHe(e,t){var n=Qhe[e.level||"info"]||mHe,r=n.text,i=n.number,o=String(Date.now())+"000000",s={};t.distinctId&&(s.posthogDistinctId=t.distinctId),t.sessionId&&(s.sessionId=t.sessionId),t.windowId&&(s["window.id"]=t.windowId),St(t.sessionStartTimestamp)||(s.sessionStartTimestamp=String(t.sessionStartTimestamp)),St(t.lastActivityTimestamp)||(s.lastActivityTimestamp=String(t.lastActivityTimestamp)),t.currentUrl&&(s["url.full"]=t.currentUrl),t.screenName&&(s["screen.name"]=t.screenName),t.appState&&(s["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(s.feature_flags=t.activeFeatureFlags);var a=he({},s,e.attributes||{}),l={timeUnixNano:o,observedTimeUnixNano:o,severityNumber:i,severityText:r,body:{stringValue:e.body},attributes:zA(a)};return e.trace_id&&(l.traceId=e.trace_id),e.span_id&&(l.spanId=e.span_id),_e(e.trace_flags)||(l.flags=e.trace_flags),l}function epe(e,t,n){return he({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":n})}function tpe(e,t,n,r){return{resourceLogs:[{resource:{attributes:zA(t)},scopeLogs:[{scope:{name:n,version:r},logRecords:e}]}]}}let vHe=class{constructor(t,n,r,i,o,s,a){var l;s===void 0&&(s=()=>Promise.resolve()),this._instance=t,this.Se=n,this.Ae=r,this.qe=i,this.je=o,this.Be=s,this.He=a,this.Ue=null,this.ze=0,this.We=0,this.Ve=0,this.Ze=0,this.Ge=!1,this.Qe=n.maxBufferSize,this.Je=Math.max((l=n.maxQueueSize)!==null&&l!==void 0?l:n.maxBufferSize,n.maxBufferSize),this.Ke=n.flushIntervalMs,this.Ye=n.maxBatchRecordsPerPost,this.Xe=n.rateCapWindowMs,this.et=n.maxLogsPerInterval}reset(){this.tt(),this.Ue=null,this.Ve=0,this.Ze=0,this.Ge=!1,this.ze=0,this.We=0,this.Ye=this.Se.maxBatchRecordsPerPost}onReconnect(){this.We=0,this.rt()}captureLog(t){if(!this._instance.isDisabled&&!this._instance.optedOut&&t!=null&&t.body){var n=this.it(t);if(n!==null)if(n.body){if(this.nt()){var r={record:gHe(n,this.qe())};this.je(()=>this.st(r))}}else this.Ae.info("Log was rejected in beforeSend function")}}it(t){var n=this.Se.beforeSend;if(!n)return t;var r=At(n)?n:[n],i=t;for(var o of r)try{var s=o(i);if(!s)return this.Ae.info("Log was rejected in beforeSend function"),null;i=s}catch(a){return this.Ae.error("Error in beforeSend function for log:",a),null}return i}nt(){if(this.et===void 0)return!0;var t=Date.now(),n=t-this.Ve;return this.Xe>n&&n>=0||(this.Ve=t,this.Ze=0,this.Ge=!1),this.et>
857this.Ze?(this.Ze++,!0):(this.Ge||(this.Ae.warn("captureLog dropping logs: exceeded "+this.et+" logs per "+this.Xe+"ms"),this.Ge=!0),!1)}flush(){var t=this;return Or(function*(){if(!t._instance.isDisabled)return t.Ue||(t.Ue=t.ot().finally(()=>{t.Ue=null})),t.Ue})()}ot(){var t=this;return Or(function*(){var n;t.tt();var r=(n=t._instance.getPersistedProperty(Mu.LogsQueue))!==null&&n!==void 0?n:[];if(r.length!==0)for(var i=r.length,o=0;r.length>0&&i>o;){var s,a;t.ze=0;var l=Math.min(r.length,t.Ye),c=r.slice(0,l),u=tpe(c.map(f=>f.record),t.ut(),(s=t.He)!==null&&s!==void 0?s:t._instance.getLibraryId(),t._instance.getLibraryVersion()),d=yield t._instance.ht(u);if(d.kind==="too-large"&&c.length>1)t.Ye=Math.max(1,Math.floor(c.length/2)),t.Ae.warn("Received 413 when sending logs batch of size "+c.length+", reducing batch size to "+t.Ye);else if(d.kind==="retry-later"||(d.kind==="too-large"?t.Ae.warn("Dropping a single log record after 413 with batch size 1 â the record is larger than the server cap and cannot be split further."):d.kind==="ok"&&t.Se.maxBatchRecordsPerPost>t.Ye&&(t.Ye=Math.min(t.Se.maxBatchRecordsPerPost,t.Ye+1)),yield t.dt(c.length),r=(a=t._instance.getPersistedProperty(Mu.LogsQueue))!==null&&a!==void 0?a:[],o+=c.length,d.kind==="fatal"))throw d.error}})()}dt(t){var n=this;return Or(function*(){var r,i=Math.max(0,t-n.ze),o=(r=n._instance.getPersistedProperty(Mu.LogsQueue))!==null&&r!==void 0?r:[];n._instance.setPersistedProperty(Mu.LogsQueue,o.slice(i)),yield n.Be()})()}ut(){return epe(this.Se,this._instance.getLibraryId(),this._instance.getLibraryVersion())}st(t){var n;if(!this._instance.optedOut){var r=(n=this._instance.getPersistedProperty(Mu.LogsQueue))!==null&&n!==void 0?n:[];this.Je>r.length||(r.shift(),this.ze++,this.Ae.info("Logs queue is full, dropping oldest record.")),r.push(t),this._instance.setPersistedProperty(Mu.LogsQueue,r),this.Qe>r.length?this.ct():this.rt()}}ct(t){t===void 0&&(t=this.Ke),this.vt||(this.vt=aT(()=>{this.vt=void 0,this.rt()},t))}ft(){var t=Math.min(Math.max(0,this.We-1),6);return this.Ke*Math.pow(2,t)}yt(){var t=this._instance.getPersistedProperty(Mu.LogsQueue);return!!t&&t.length>0}shutdown(t){var n=this;return Or(function*(){n.tt();var r=n.flush().catch(()=>{});t!==void 0?yield Promise.race([r,new Promise(i=>aT(i,t))]):yield r})()}flushWithTimeout(t){var n=this;return Or(function*(){var r=!1,i=n.flush(),o=new Promise(s=>aT(()=>{r=!0,s()},t));try{yield Promise.race([i,o])}finally{r&&i.catch(()=>{})}})()}rt(){this.flush().then(()=>{this.We=0},t=>{this.We++,this.Ae.error("PostHog logs flush failed:",t)}).finally(()=>{!this._instance.isDisabled&&this.yt()&&this.ct(this.ft())})}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}};var C2=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function nY(e){return String(e)+"000000"}function rY(e,t,n,r){var i="";return r&&(i=Object.keys(r).sort().map(o=>JSON.stringify(o)+":"+JSON.stringify(r[o])).join(",")),e+"\0"+t+"\0"+(n??"")+"\0"+i}let yHe=class{constructor(t,n,r){this._instance=t,this.Se=n,this.Ae=r,this.bt=new Map,this.Ue=null,this._t=!1,this.wt=new Map,this.xt=new Set}count(t,n,r){n===void 0&&(n=1),this.kt({name:t,type:"count",value:n,unit:r==null?void 0:r.unit,attributes:r==null?void 0:r.attributes})}gauge(t,n,r){this.kt({name:t,type:"gauge",value:n,unit:r==null?void 0:r.unit,attributes:r==null?void 0:r.attributes})}histogram(t,n,r){this.kt({name:t,type:"histogram",value:n,unit:r==null?void 0:r.unit,attributes:r==null?void 0:r.attributes})}flush(){var t=this,n=this.Ue,r=function(){var o=Or(function*(){n&&(yield n.catch(()=>{})),yield t.St()});return function(){return o.apply(this,arguments)}}(),i=r().finally(()=>{this.Ue===i&&(this.Ue=null)});return this.Ue=i,i}drainWindow(){if(this.bt.size===0)return null;var t=this.bt;return this.bt=new Map,this._t=!1,this.wt=new Map,this.xt=new Set,this.Ct(t)}reset(){this.tt(),this.bt=new Map,this.Ue=null,this._t=!1,this.wt=new Map,this.xt=new Set}kt(t){if(!this._instance.isDisabled&&!this._instance.optedOut){var n=this.it(t);if(n!==null)if(n.name&&typeof n.name=="string")if(typeof n.value=="number"&&Number.isFinite(n.value))if(n.type==="count"&&0>
857n.value)this.Ae.warn("Dropping count '"+n.name+"': counters are monotonic, value must be >= 0");else{var r=this.wt.get(n.name);r===void 0?this.wt.set(n.name,n.type):r===n.type||this.xt.has(n.name)||(this.xt.add(n.name),this.Ae.warn("Metric name '"+n.name+"' is already used as a "+r+"; recording it as a "+n.type+" too will blend both series in charts. Use a distinct name."));var i=rY(n.type,n.name,n.unit,n.attributes),o=this.bt.get(i);if(!o){if(this.bt.size>=this.Se.maxSeriesPerFlush)return void(this._t||(this._t=!0,this.Ae.warn("Metric series cap reached ("+this.Se.maxSeriesPerFlush+" per flush window); dropping new series until the next flush. Reduce attribute cardinality.")));o={name:n.name,type:n.type,unit:n.unit,attributes:n.attributes?he({},n.attributes):void 0,windowStartMs:Date.now()},this.bt.set(i,o)}this.Tt(o,n.value),this.ct()}else this.Ae.warn("Dropping metric '"+n.name+"': value must be a finite number");else this.Ae.warn("Dropping metric with empty name")}}Tt(t,n){var r;switch(t.type){case"count":t.total=((r=t.total)!==null&&r!==void 0?r:0)+n;break;case"gauge":t.last=n;break;case"histogram":t.hist||(t.hist={count:0,sum:0,min:n,max:n,bucketCounts:new Array(C2.length+1).fill(0)});var i=t.hist;i.count+=1,i.sum+=n,i.min=Math.min(i.min,n),i.max=Math.max(i.max,n),i.bucketCounts[function(o,s){for(var a=0;s.length>a;a++)if(s[a]>=o)return a;return s.length}(n,C2)]+=1}}it(t){var n=this.Se.beforeSend;if(!n)return t;var r=At(n)?n:[n],i=t;for(var o of r)try{var s=o(i);if(!s)return this.Ae.info("Metric was rejected in beforeSend function"),null;i=s}catch(a){return this.Ae.error("Error in beforeSend function for metric:",a),null}return i}ct(){this.vt||(this.vt=aT(()=>{this.vt=void 0,this.flush().catch(()=>{})},this.Se.flushIntervalMs))}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}St(){var t=this;return Or(function*(){if(t.bt.size!==0){var n=t.bt;t.bt=new Map,t._t=!1,t.wt=new Map,t.xt=new Set;var r=yield t._instance.It(t.Ct(n));switch(r.kind){case"ok":return;case"retry-later":return t.Mt(n),void t.ct();case"too-large":return void t.Ae.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void t.Ae.error("Failed to send metrics batch:",r.error)}}})()}Ct(t){return function(o,s,a,l){return{resourceMetrics:[{resource:{attributes:zA(s)},scopeMetrics:[{scope:{name:a,version:l},metrics:o}]}]}}(this.Et(t),(n=this.Se,r=this._instance.getLibraryId(),i=this._instance.getLibraryVersion(),he({},n.resourceAttributes,{"service.name":n.serviceName||"unknown_service"},n.environment&&{"deployment.environment":n.environment},n.serviceVersion&&{"service.version":n.serviceVersion},{"telemetry.sdk.name":r,"telemetry.sdk.version":i})),this._instance.getLibraryId(),this._instance.getLibraryVersion());var n,r,i}Et(t){var n=nY(Date.now()),r=new Map;for(var i of t.values()){var o,s=rY(i.type,i.name,i.unit,void 0),a=r.get(s);a||(a=he({name:i.name},i.unit&&{unit:i.unit}),i.type==="count"?a.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:i.type==="gauge"?a.gauge={dataPoints:[]}:a.histogram={aggregationTemporality:1,dataPoints:[]},r.set(s,a));var l=zA((o=i.attributes)!==null&&o!==void 0?o:{}),c=nY(i.windowStartMs);if(i.type==="count"){var u,d={attributes:l,startTimeUnixNano:c,timeUnixNano:n,asDouble:(u=i.total)!==null&&u!==void 0?u:0};a.sum.dataPoints.push(d)}else if(i.type==="gauge"){var f,h={attributes:l,timeUnixNano:n,asDouble:(f=i.last)!==null&&f!==void 0?f:0};a.gauge.dataPoints.push(h)}else i.hist&&a.histogram.dataPoints.push({attributes:l,startTimeUnixNano:c,timeUnixNano:n,count:i.hist.count,sum:i.hist.sum,min:i.hist.min,max:i.hist.max,bucketCounts:i.hist.bucketCounts,explicitBounds:C2})}return Array.from(r.values())}Mt(t){var n,r;for(var i of t){var o=i[0],s=i[1],a=this.bt.get(o);if(a)switch(a.windowStartMs=Math.min(a.windowStartMs,s.windowStartMs),a.type){case"count":a.total=((n=a.total)!==null&&n!==void 0?n:0)+((r=s.total)!==null&&r!==void 0?r:0);break;case"gauge":break;case"histogram":if(s.hist)if(a.hist){a.hist.count+=s.hist.count,a.hist.sum+=s.hist.sum,a.hist.min=Math.min(a.hist.min,s.hist.min),a.hist.max=Math.max(a.hist.max,s.hist.max);for(var l=0;a.hist.bucketCounts.length>l;l++)a.hist.bucketCounts[l]+=s.hist.bucketCounts[l]}else a.hist=s.hist}else this.bt.set(o,s)}}};var pk,iY,T2;function bHe(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return T2&&n.length===iY||(iY=n.length,T2=n.reduce((r,i)=>{pk||(pk={});var o=pk[i];if(o)r[o[0]]=o[1];else for(var s=e(i),a=s.length-1;a>=0;a--){var l=s[a],c=l==null?void 0:l.filename,u=t[i];if(c&&u){r[c]=u,pk[i]=[c,u];break}}return r},{})),T2}}let wHe=class{constructor(t,n,r){r===void 0&&(r=[]),this.coercers=t,this.stackParser=n,this.modifiers=r}buildFromUnknown(t,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(r,n,0).apply(t),o=this.buildParsingContext(n),s=this.parseStacktrace(i,o);return{$exception_list:this.convertToExceptionList(s,r),$exception_level:"error"}}modifyFrames(t){var n=this;return Or(function*(){for(var r of t)r.stacktrace&&r.stacktrace.frames&&At(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return t})()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var r,i;return t.cause!=null&&(r=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(i=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?n.skipFirstLines:0),n.chunkIdMap)),he({},t,{cause:r,stack:i})}applyChunkIds(t,n){return t.map(r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r))}applyCoercers(t,n){for(var r of this.coercers)if(r.match(t))return r.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return Or(function*(){var r=t;for(var i of n.modifiers)r=yield i(r);return r})()}convertToExceptionList(t,n){var r,i,o,s={type:t.type,value:t.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(i=n.handled)===null||i===void 0||i,synthetic:(o=t.synthetic)!==null&&o!==void 0&&o}};t.stack&&(s.stacktrace={type:"raw",frames:t.stack});var a=[s];return t.cause!=null&&a.push(...this.convertToExceptionList(t.cause,he({},n,{handled:!0}))),a}buildParsingContext(t){var n;return{chunkIdMap:bHe(this.stackParser),skipFirstLines:(n=t.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(t,n,r){r===void 0&&(r=0);var i=(o,s)=>{if(4>=s){var a=this.buildCoercingContext(t,n,s);return this.applyCoercers(o,a)}};return he({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:t,apply:o=>i(o,r),next:o=>i(o,r+1)})}};var Ky="?";function tj(e,t,n,r,i){var o={platform:e,filename:t,function:n==="<anonymous>"?Ky:n,in_app:!0};return _e(r)||(o.lineno=r),_e(i)||(o.colno=i),o}var npe=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Ky,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},xHe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,EHe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,SHe=/\((\S*)(?::(\d+))(?::(\d+))\)/,_He=(e,t)=>{var n=xHe.exec(e);if(n)return tj(t,n[1],Ky,+n[2],+n[3]);var r=EHe.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){var i=SHe.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}var o=npe(r[1]||Ky,r[2]);return tj(t,o[1],o[0],r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},kHe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,CHe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,THe=(e,t)=>{var n=kHe.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=CHe.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||Ky,s=npe(o,i);return tj(t,i=s[1],o=s[0],n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},oY=/\(error: (.*)\)/;let AHe=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var r=wn(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:r?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return LA(t,"DOMException")}isDOMError(t){return LA(t,"DOMError")}},OHe=class{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var r=t.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(t){return t.stacktrace||t.stack||void 0}},PHe=class{constructor(){}match(t){return LA(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var r;return n.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}};var IHe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let RHe=class{match(t){return typeof t=="string"}coerce(t,n){var r,i=this.getInfos(t),o=i[0],s=i[1];return{type:o??"Error",value:s??t,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(t){var n="Error",r=t,i=t.match(IHe);return i&&(n=i[1],r=i[2]),[n,r]}};var MHe=["fatal","error","warning","log","info","debug"];function rpe(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");
857if(t>=i.length)return r===n.length?i:i.length>t?i.slice(0,t)+"...":i}return""}class NHe{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var r,i=this.getErrorPropertyFromObject(t);return i?n.apply(i):{type:this.getType(t),value:this.getValue(t),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return fV(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var r=this.getObjectClassName(t);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+rpe(t)}isSeverityLevel(t){return wn(t)&&!XB(t)&&MHe.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if({}.hasOwnProperty.call(t,n)){var r=t[n];if(pHe(r))return r}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class DHe{match(t){return fV(t)}coerce(t,n){var r,i=t.constructor.name;return{type:i,value:i+" captured as exception with keys: "+rpe(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class LHe{match(t){return Ihe(t)}coerce(t,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class $He{match(t){return LA(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!fV(t))return!1;try{var n=t.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(t,n){var r,i=this.getUnhandledRejectionReason(t);return Ihe(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(i)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var UA="$message",VA="$timestamp",FHe=new Set([UA,VA]),A2={enabled:!0,max_bytes:32768};function WA(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:A2.enabled,max_bytes:jHe(e.max_bytes,A2.max_bytes)}:he({},A2)}class BHe{constructor(t){this.Rt=[],this.Pt=0,this.Se=WA(t)}setConfig(t){this.Se=WA(t),this.Ot()}add(t){var n=function(i){var o;try{o=Ahe(i)}catch{return}try{var s=JSON.parse(o);if(!Wn(s))return;var a=s,l=a[UA],c=a[VA];return!wn(l)||l.trim().length===0||!wn(c)&&!eo(c)?void 0:{step:a,json:o}}catch{return}}(t);if(n){var r=function(i){if(typeof TextEncoder<"u")return new TextEncoder().encode(i).length;for(var o=encodeURIComponent(i),s=0,a=0;o.length>a;a++)o[a]==="%"?(s+=1,a+=2):s+=1;return s}(n.json);r>this.Se.max_bytes||(this.Rt.push({step:n.step,bytes:r}),this.Pt+=r,this.Ot())}}getAttachable(){return this.Rt.map(t=>t.step)}clear(){this.Rt=[],this.Pt=0}size(){return this.Rt.length}Ot(){for(;this.Pt>this.Se.max_bytes&&this.Rt.length>0;){var t=this.Rt.shift();t&&(this.Pt-=t.bytes)}}}function jHe(e,t){if(!eo(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var ipe=function(e,t){var n=(t===void 0?{}:t).debugEnabled,r={k(i){if(te&&(nr.DEBUG||et.POSTHOG_DEBUG||n)&&!_e(te.console)&&te.console){for(var o=("__rrweb_original__"in te.console[i])?te.console[i].__rrweb_original__:te.console[i],s=arguments.length,a=new Array(s>1?s-1:0),l=1;s>l;l++)a[l-1]=arguments[l];o(e,...a)}},debug(){for(var i=arguments.length,o=new Array(i),s=0;i>s;s++)o[s]=arguments[s];r.k("debug",...o)},info(){for(var i=arguments.length,o=new Array(i),s=0;i>s;s++)o[s]=arguments[s];r.k("log",...o)},warn(){for(var i=arguments.length,o=new Array(i),s=0;i>s;s++)o[s]=arguments[s];r.k("warn",...o)},error(){for(var i=arguments.length,o=new Array(i),s=0;i>s;s++)o[s]=arguments[s];r.k("error",...o)},critical(){for(var i=arguments.length,o=new Array(i),s=0;i>s;s++)o[s]=arguments[s];console.error(e,...o)},uninitializedWarning(i){r.error("You must initialize PostHog before calling "+i)},createLogger:(i,o)=>ipe(e+" "+i,o)};return r},xe=ipe("[PostHog.js]"),Xn=xe.createLogger,zHe=Xn("[ExternalScriptsLoader]"),O2=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return zHe.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=Te==null?void 0:Te.querySelectorAll("script");
857if(r){for(var i,o=function(){if(r[s].src===t){var l=r[s];return l.__posthog_loading_callback_fired?{v:n()}:(l.addEventListener("load",c=>{l.__posthog_loading_callback_fired=!0,n(void 0,c)}),l.onerror=c=>n(c),{v:void 0})}},s=0;r.length>s;s++)if(i=o())return i.v}var a=()=>{if(!Te)return n("document not found");var l=Te.createElement("script");if(l.type="text/javascript",l.crossOrigin="anonymous",l.src=t,l.onload=d=>{l.__posthog_loading_callback_fired=!0,n(void 0,d)},l.onerror=d=>n(d),e.config.prepare_external_dependency_script&&(l=e.config.prepare_external_dependency_script(l)),!l)return n("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Te.head.appendChild(l);else{var c,u=Te.querySelectorAll("body > script");u.length>0?(c=u[0].parentNode)==null||c.insertBefore(l,u[0]):Te.body.appendChild(l)}};Te!=null&&Te.body?a():Te==null||Te.addEventListener("DOMContentLoaded",a)};et.__PosthogExtensions__=et.__PosthogExtensions__||{},et.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!=="remote-config"){var r;if(e.config.strict_script_versioning)r=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var i="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var o=3e5;i=i+"&t="+Math.floor(Date.now()/o)*o}r=e.requestRouter.endpointFor("assets",i)}O2(e,r,n)}else{var s=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");O2(e,s,n)}},et.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);O2(e,r,n)};var ope="$people_distinct_id",HA="$device_id",P2="$device_model",Yw="__alias",Xw="__timers",nj="$autocapture_disabled_server_side",rj="$heatmaps_enabled_server_side",ij="$exception_capture_enabled_server_side",oj="$error_tracking_suppression_rules",sj="$error_tracking_capture_extension_exceptions",aj="$web_vitals_enabled_server_side",vV="$dead_clicks_enabled_server_side",yV="$product_tours_enabled_server_side",lj="$web_vitals_allowed_metrics",Bp="$session_recording_remote_config",spe="$replay_sample_rate",ape="$replay_override_sampling",lpe="$replay_override_linked_flag",cpe="$replay_override_url_trigger",upe="$replay_override_event_trigger",Nv="$sesid",bV="$session_is_sampled",Rp="$enabled_feature_flags",lT="$active_feature_flags",Zw="$early_access_features",cj="$feature_flag_details",cT="$feature_flag_payloads",uj="$feature_flag_request_id",Su="$override_feature_flags",cv="$override_feature_flag_payloads",Ep="$stored_person_properties",Sp="$stored_group_properties",dj="$surveys",KA="$surveys_loaded_at",fj="$surveys_activated",Qw="ph_product_tours",Rx="$flag_call_reported",hj="$flag_call_reported_session_id",pj="$feature_flag_errors",$E="$feature_flag_evaluated_at",tl="$user_state",mj="$client_session_props",gj="$capture_rate_limit",vj="$initial_campaign_params",yj="$initial_referrer_info",qA="$initial_person_info",GA="$epp",dpe="__POSTHOG_TOOLBAR__",mk="$posthog_cookieless",fpe="$sdk_debug_extensions_init_method",hpe="$sdk_debug_extensions_init_time_ms",ppe="$sdk_debug_recording_script_not_loaded",wV="PostHog loadExternalDependency extension not found.",_p="on_reject",Wu="always",Bg="anonymous",jg="identified",bj="identified_only",YA="visibilitychange",XA="beforeunload",uv="$pageview",I2="$pageleave",R2="$identify",sY="$groupidentify";function gk(e,t){At(e)&&e.forEach(t)}function Cn(e,t){if(!St(e))if(At(e))e.forEach(t);else if(QWe(e))e.forEach((r,i)=>t(r,i));else for(var n in e)Phe.call(e,n)&&t(e[n],n)}var Nn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var i of n)for(var o in i)i[o]!==void 0&&(e[o]=i[o]);return e};function uT(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var aY=function(e){try{return e()}catch{return}},UHe=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(i){xe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),xe.critical(i)}}},xV=function(e){var t={};return Cn(e,function(n,r){(wn(n)&&n.length>0||eo(n))&&(t[r]=n)}),t},VHe=["herokuapp.com","vercel.app","netlify.app"];function WHe(e){var t=e==null?void 0:e.hostname;if(!wn(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of VHe)if(n===r)return!1;return!0}function ir(e,t,n,r){var i=r??{},o=i.capture,s=i.passive;e==null||e.addEventListener(t,n,{capture:o!==void 0&&o,passive:s===void 0||s})}
857function mpe(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return eo(e)&&isFinite(e)&&Math.floor(e)===e});class ZA{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||0>t||0>n||0>r||0>i||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/Math.pow(2,40),o[1]=t/Math.pow(2,32),o[2]=t/Math.pow(2,24),o[3]=t/Math.pow(2,16),o[4]=t/Math.pow(2,8),o[5]=t,o[6]=112|n>>>8,o[7]=n,o[8]=128|r>>>24,o[9]=r>>>16,o[10]=r>>>8,o[11]=r,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new ZA(o)}toString(){for(var t="",n=0;this.bytes.length>n;n++)t=t+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new ZA(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;16>n;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class HHe{constructor(){this.S=0,this.C=0,this.I=new KHe}generate(){var t=this.generateOrAbort();if(_e(t)){this.S=0;var n=this.generateOrAbort();if(_e(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.S)this.S=t,this.M();else{if(this.S>=t+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.M())}return ZA.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}M(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var lY,gpe=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};te&&!_e(te.crypto)&&crypto.getRandomValues&&(gpe=e=>crypto.getRandomValues(e));class KHe{constructor(){this.R=new Uint32Array(8),this.O=1/0}nextUint32(){return this.R.length>this.O||(gpe(this.R),this.O=0),this.R[this.O++]}}var $u=()=>qHe().toString(),qHe=()=>(lY||(lY=new HHe)).generate(),G0="",GHe=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Tc={N:()=>!!Te,D(e){xe.error("cookieStore error: "+e)},A(e){if(Te){try{for(var t=e+"=",n=Te.cookie.split(";").filter(o=>o.length),r=0;n.length>r;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(Tc.A(e))||{}}catch{}return t},q(e,t,n,r,i){if(!Te)return!1;try{var o="",s="",a=function(u,d){if(d){var f=function(p,m){if(m===void 0&&(m=Te),G0)return G0;if(!m||["localhost","127.0.0.1"].includes(p))return"";for(var g=p.split("."),v=Math.min(g.length,8),b="dmn_chk_"+$u();!G0&&v--;){var w=g.slice(v).join("."),x=b+"=1;domain=."+w+";path=/";m.cookie=x+";max-age=3",m.cookie.includes(b)&&(m.cookie=x+";max-age=0",G0=w)}return G0}(u);if(!f){var h=(p=>{var m=p.match(GHe);return m?m[0]:""})(u);h!==f&&xe.info("Warning: cookie subdomain discovery mismatch",h,f),f=h}return f?"; domain=."+f:""}return""}(Te.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+864e5*n),o="; expires="+l.toUTCString()}i&&(s="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+a+s;return c.length>3686.4&&xe.warn("cookieStore warning: large cookie, len="+c.length),Te.cookie=c,!0}catch{return!1}},P(e,t){if(Te!=null&&Te.cookie)try{Tc.q(e,"",-1,t)}catch{return}}},M2=null,kn={N(){if(!Uo(M2))return M2;var e=!0;if(_e(te))e=!1;else try{var t="__mplssupport__";kn.q(t,"xyz"),kn.A(t)!=='"xyz"'&&(e=!1),kn.P(t)}catch{e=!1}return e||xe.error("localStorage unsupported; falling back to cookie store"),M2=e,e},D(e){xe.error("localStorage error: "+e)},A(e){try{return te==null?void 0:te.localStorage.getItem(e)}catch(t){kn.D(t)}return null},F(e){try{return JSON.parse(kn.A(e))||{}}catch{}return null},q(e,t){try{return te==null||te.localStorage.setItem(e,JSON.stringify(t)),!0}catch(n){kn.D(n)}return!1},P(e){try{te==null||te.localStorage.removeItem(e)}catch(t){kn.D(t)}}},YHe=[HA,"distinct_id",Nv,bV,GA,qA,tl],vk={},XHe={N:()=>!0,D(e){xe.error("memoryStorage error: "+e)},A:e=>vk[e]||null,F:e=>vk[e]||null,q:(e,t)=>
857(vk[e]=t,!0),P(e){delete vk[e]}},ap=null,Ki={N(){if(!Uo(ap))return ap;if(ap=!0,_e(te))ap=!1;else try{var e="__support__";Ki.q(e,"xyz"),Ki.A(e)!=='"xyz"'&&(ap=!1),Ki.P(e)}catch{ap=!1}return ap},D(e){xe.error("sessionStorage error: ",e)},A(e){try{return te==null?void 0:te.sessionStorage.getItem(e)}catch(t){Ki.D(t)}return null},F(e){try{return JSON.parse(Ki.A(e))||null}catch{}return null},q(e,t){try{return te==null||te.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(n){Ki.D(n)}return!1},P(e){try{te==null||te.sessionStorage.removeItem(e)}catch(t){Ki.D(t)}}};let ZHe=class{constructor(t){this._instance=t}get Se(){return this._instance.config}get consent(){return this.At()?0:this.$t}isOptedOut(){return this.Se.cookieless_mode===Wu||this.isRejected()||this.consent===-1&&this.Se.cookieless_mode===_p}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Se.opt_out_capturing_by_default}optInOut(t){this.Nt.q(this.Dt,t?1:0,this.Se.cookie_expiration,this.Se.cross_subdomain_cookie,this.Se.secure_cookie)}reset(){this.Nt.P(this.Dt,this.Se.cross_subdomain_cookie)}get Dt(){var t=this._instance.config,n=t.token,r=t.opt_out_capturing_cookie_prefix;return t.consent_persistence_name||(r?r+n:"__ph_opt_in_out_"+n)}get $t(){var t=this.Nt.A(this.Dt);return _2(t)?1:lt(nHe,t)?0:-1}get Nt(){var t=this.Se.opt_out_capturing_persistence_type,n=t==="localStorage"?kn:Tc;if(!this.qt||this.qt!==n){this.qt=n;var r=t==="localStorage"?Tc:kn;r.A(this.Dt)&&(this.qt.A(this.Dt)||this.optInOut(_2(r.A(this.Dt))),r.P(this.Dt,this.Se.cross_subdomain_cookie))}return this.qt}At(){return!!this.Se.respect_dnt&&[No==null?void 0:No.doNotTrack,No==null?void 0:No.msDoNotTrack,et.doNotTrack].some(t=>_2(t))}};function vpe(e,t){var n,r=e==null||(n=e.config)==null?void 0:n.get_current_url;if(!fl(r))return t;try{var i=r(t);return wn(i)&&i?i:t}catch(o){return xe.error("Error in get_current_url, falling back to window.location.href",o),t}}var QHe=1,JHe=3,e9e=11;function cY(e){return e instanceof Element&&(e.id===dpe||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function ph(e){return!!e&&e.nodeType===QHe}function $s(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ype(e){return!!e&&e.nodeType===JHe}function bpe(e){return!!e&&e.nodeType===e9e&&ph(e.host)}var wpe=1e3;function EV(e){return e?AR(e).split(/\s+/):[]}function uY(e,t){var n=function(r){var i,o=te==null||(i=te.location)==null?void 0:i.href;return _e(o)?void 0:vpe(r,o)}(t);return!!(n&&e&&e.some(r=>n.match(r)))}function QA(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return EV(t)}function xpe(e){return St(e)?null:AR(e).split(/(\s+)/).filter(t=>Mx(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function FE(e){var t="";return xj(e)&&!kpe(e)&&e.childNodes&&e.childNodes.length&&Cn(e.childNodes,function(n){var r;ype(n)&&n.textContent&&(t+=(r=xpe(n.textContent))!==null&&r!==void 0?r:"")}),AR(t)}function N2(e){return _e(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var SV=["a","button","form","input","select","textarea","label"];function wj(e,t){if(_e(t))return!0;var n,r=function(o){if(t.some(s=>function(a,l){var c=a.matches||a.matchesSelector||a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.oMatchesSelector;try{return!!c&&c.call(a,l)}catch{return!1}}(o,s)))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function Epe(e){var t=e.parentNode;return!(!t||!ph(t))&&t}var t9e=[".ph-no-autocapture","[data-ph-no-autocapture]"],Spe=["next","previous","prev",">","<"],n9e=[...Spe,"+","-","â","â"],dY=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,fY=[".ph-no-rageclick",".ph-no-capture"],r9e=["","text","search","email","password","url","tel","number"];function hY(e,t){if(!te||_V(e))return!1;var n,r,i,o,s;if($c(t)?(n=!!t&&fY,r=void 0,i=!1):(n=(o=t==null?void 0:t.css_selector_ignorelist)!==null&&o!==void 0?o:fY,r=t==null?void 0:t.content_ignorelist,i=(s=t==null?void 0:t.ignore_text_selection)!==null&&s!==void 0&&s),n===!1||i&&function(l){return!(!l||!ph(l))&&(!!$s(l,"textarea")||($s(l,"input")?lt(r9e,(l.getAttribute("type")||"").toLowerCase()):function(c){if(c.isContentEditable)return!0;var u=c.getAttribute==null?void 0:c.getAttribute("contenteditable");return u==="true"||u===""}(l)))}(e))return!1;var a=_pe(e,!1).targetElementList;
857return!function(l,c){if(l===!1||_e(l))return!1;var u;if(l===!0)u=Spe;else{if(!At(l))return!1;if(l.length>10)return xe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;u=l.map(d=>d.toLowerCase())}return c.some(d=>{var f=d.safeText,h=d.ariaLabel;return u.some(p=>dY(f,p)||dY(h,p))})}(r,a.map(l=>{var c;return{safeText:FE(l).toLowerCase(),ariaLabel:((c=l.getAttribute("aria-label"))==null?void 0:c.toLowerCase().trim())||""}}))&&!wj(a,n)}var _V=e=>!e||$s(e,"html")||!ph(e),_pe=(e,t)=>{if(!te||_V(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!$s(i,"body");)if(bpe(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var o=Epe(i);if(!o)break;if(t||SV.indexOf(o.tagName.toLowerCase())>-1)n=!0;else try{var s=te.getComputedStyle(o);s&&s.getPropertyValue("cursor")==="pointer"&&(n=!0)}catch{}r.push(o),i=o}return{parentIsUsefulElement:n,targetElementList:r}};function xj(e){for(var t=new Set,n=0,r=e;r.parentNode&&!$s(r,"body");r=r.parentNode){if(n++>=wpe||t.has(r))return!1;t.add(r);var i=QA(r);if(lt(i,"ph-sensitive")||lt(i,"ph-no-capture"))return!1}if(lt(QA(e),"ph-include"))return!0;var o=e.type||"";if(wn(o))switch(o.toLowerCase()){case"hidden":case"password":return!1}var s=e.name||e.id||"";return!wn(s)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,""))}function kpe(e){return!!($s(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||$s(e,"select")||$s(e,"textarea")||e.getAttribute("contenteditable")==="true")}var Cpe="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",i9e=new RegExp("^(?:"+Cpe+")$"),o9e=new RegExp(Cpe),Tpe="\\d{3}-?\\d{2}-?\\d{4}",s9e=new RegExp("^("+Tpe+")$"),a9e=new RegExp("("+Tpe+")");function Mx(e,t){return t===void 0&&(t=!0),!(St(e)||wn(e)&&(e=AR(e),(t?i9e:o9e).test((e||"").replace(/[- ]/g,""))||(t?s9e:a9e).test(e)))}function pY(e){var t=FE(e);return Mx(t=(t+" "+Ape(e)).trim())?t:""}function Ape(e){var t="";return e&&e.childNodes&&e.childNodes.length&&Cn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var i=FE(n);t=(t+" "+i).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+Ape(n)).trim())}catch(o){xe.error("[AutoCapture]",o)}}),t}function mY(e){return e.replace(/"|\\"/g,'\\"')}function l9e(e){var t=e.attr__class;return t?At(t)?t:EV(t):void 0}var yk=Xn("[Dead Clicks]"),c9e=()=>!0,u9e=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(vV)),r=e.instance.config.capture_dead_clicks;return $c(r)?r:!!Wn(r)||n};class gY{get lazyLoadedDeadClicksAutocapture(){return this.jt}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[vV]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.Bt(()=>{this.Ht()}):this.stop()}Bt(t){var n,r;(n=et.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture?t():(r=et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",i=>{i?yk.error("failed to load script",i):t()})}Ht(){var t;if(Te){if(!this.jt&&(t=et.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=Wn(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.jt=et.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.jt.start(Te),yk.info("starting...")}}else yk.error("`document` not found. Cannot start.")}stop(){this.jt&&(this.jt.stop(),this.jt=void 0,yk.info("stopping..."))}}var D2=Xn("[SegmentIntegration]"),Ope="posthog-js";function Ppe(e,t){var n=t===void 0?{}:t,r=n.organization,i=n.projectId,o=n.prefix,s=n.severityAllowList,a=s===void 0?["error"]:s,l=n.sendExceptionsToPostHog,c=l===void 0||l;return u=>{var d,f,h,p,m;if(a!=="*"&&!a.includes(u.level)||!e.__loaded)return u;u.tags||(u.tags={});var g=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/pers
857on/"+e.get_distinct_id());u.tags["PostHog Person URL"]=g,e.sessionRecordingStarted()&&(u.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var v,b=((d=u.exception)==null?void 0:d.values)||[],w=b.map(E=>he({},E,{stacktrace:E.stacktrace?he({},E.stacktrace,{type:"raw",frames:(E.stacktrace.frames||[]).map(S=>he({},S,{platform:"web:javascript"}))}):void 0})),x={$exception_message:((f=b[0])==null?void 0:f.value)||u.message,$exception_type:(h=b[0])==null?void 0:h.type,$exception_level:u.level,$exception_list:w,$sentry_event_id:u.event_id,$sentry_exception:u.exception,$sentry_exception_message:((p=b[0])==null?void 0:p.value)||u.message,$sentry_exception_type:(m=b[0])==null?void 0:m.type,$sentry_tags:u.tags};return r&&i&&(x.$sentry_url=(o||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+u.event_id),c&&((v=e.exceptions)==null||v.sendExceptionEvent(x)),u}}class d9e{constructor(t,n,r,i,o,s){this.name=Ope,this.setupOnce=function(a){a(Ppe(t,{organization:n,projectId:r,prefix:i,severityAllowList:o,sendExceptionsToPostHog:s==null||s}))}}}class vY{constructor(t){this.Ut=(n,r,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength||i.crossTabAdoption)&&(xe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:i}),this.zt=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.Wt()}Wt(){var t;this.Vt=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.Ut)}destroy(){var t;(t=this.Vt)==null||t.call(this),this.Vt=void 0}doPageView(t,n){var r,i=this.Zt(t,n);return this.zt={pathname:(r=te==null?void 0:te.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),i}doPageLeave(t){var n;return this.Zt(t,(n=this.zt)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.zt)==null?void 0:t.pageViewId}}Zt(t,n){var r=this.zt;if(!r)return{$pageview_id:n};var i={$pageview_id:n,$prev_pageview_id:r.pageViewId},o=this._instance.scrollManager.getContext();if(o&&!this._instance.config.disable_scroll_properties){var s=o.maxScrollHeight,a=o.lastScrollY,l=o.maxScrollY,c=o.maxContentHeight,u=o.lastContentY,d=o.maxContentY;if(!(_e(s)||_e(a)||_e(l)||_e(c)||_e(u)||_e(d))){s=Math.ceil(s),a=Math.ceil(a),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),d=Math.ceil(d);var f=s>1?Pc(a/s,0,1,xe):1,h=s>1?Pc(l/s,0,1,xe):1,p=c>1?Pc(u/c,0,1,xe):1,m=c>1?Pc(d/c,0,1,xe):1;i=Nn(i,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:d,$prev_pageview_max_content_percentage:m})}}return r.pathname&&(i.$prev_pageview_pathname=r.pathname),r.timestamp&&(i.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),i}}var bk=["flags","surveys"],f9e={[ope]:{exposure:"hidden"},[Yw]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Xw]:{exposure:"hidden"},[nj]:{exposure:"event"},[rj]:{exposure:"hidden"},[ij]:{exposure:"event"},[oj]:{exposure:"hidden"},[sj]:{exposure:"event"},[aj]:{exposure:"event"},[vV]:{exposure:"event"},[yV]:{exposure:"hidden"},[lj]:{exposure:"event"},[Bp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Nv]:{exposure:"hidden"},[bV]:{exposure:"event"},[spe]:{exposure:"event",shouldSkipFromEventProperties:e=>Uo(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[Rp]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Wn(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t["$feature/"+n[r]]=e[n[r]];return t}},[lT]:{exposure:"event",storageGroup:"flags"},[Zw]:{exposure:"hidden"},[cj]:{exposure:"hidden",storageGroup:"flags"},[cT]:{exposure:"event",storageGroup:"flags"}
857,[uj]:{exposure:"event",storageGroup:"flags",volatile:!0},[Su]:{exposure:"event"},[cv]:{exposure:"hidden"},[Ep]:{exposure:"hidden"},[Sp]:{exposure:"hidden"},[dj]:{exposure:"hidden",storageGroup:"surveys"},[KA]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[fj]:{exposure:"event"},[Qw]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Rx]:{exposure:"hidden"},[hj]:{exposure:"hidden"},[pj]:{exposure:"hidden"},[$E]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[tl]:{exposure:"hidden"},[mj]:{exposure:"hidden"},[gj]:{exposure:"hidden"},[vj]:{exposure:"hidden"},[yj]:{exposure:"hidden"},[qA]:{exposure:"hidden"},[GA]:{exposure:"hidden"},[ape]:{exposure:"event"},[lpe]:{exposure:"event"},[cpe]:{exposure:"event"},[upe]:{exposure:"event"},[fpe]:{exposure:"event"},[hpe]:{exposure:"event"},[ppe]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},h9e=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],lp=e=>{var t=f9e[e];if(t)return t;for(var n of h9e){var r=n[1];if(e.indexOf(n[0])===0)return r}},BE=e=>{var t=Te==null?void 0:Te.createElement("a");return _e(t)?null:(t.href=e,t)},qy=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;r.length>i;i++){var o=r[i].split("=");if(o[0]===t){n=o;break}}if(!At(n)||2>n.length)return"";var s=n[1];try{s=decodeURIComponent(s)}catch{xe.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},jE=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),i=r[1],o=(r[0]||"").split("?"),s=o[1],a=o[0],l=(s||"").split("&"),c=[],u=0;l.length>u;u++){var d=l[u].split("=");At(d)&&(t.includes(d[0])?c.push(d[0]+"="+n):c.push(l[u]))}var f=a;return s!=null&&(f+="?"+c.join("&")),i!=null&&(f+="#"+i),f},JA=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Ipe=(e,t)=>e>=t&&khe(),Rpe=(e,t,n,r)=>{if(e===0){if(khe()){var i=t+1;return i===n&&r(),i}return t}return 0},wk="https?://(.*)",Gy=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],p9e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Gy],zE="<masked>",m9e=["li_fat_id"];function Mpe(e,t,n){if(!Te)return{};var r,i=t?[...Gy,...n||[]]:[],o=Npe(jE(Te.URL,i,zE),e),s=(r={},Cn(m9e,function(a){var l=Tc.A(a);r[a]=l||null}),r);return Nn(s,o)}function Npe(e,t){var n=p9e.concat(t||[]),r={};return Cn(n,function(i){var o=qy(e,i);r[i]=o||null}),r}function Dpe(e){var t=function(o){return o?o.search(wk+"google.([^/?]*)")===0?"google":o.search(wk+"bing.com")===0?"bing":o.search(wk+"yahoo.com")===0?"yahoo":o.search(wk+"duckduckgo.com")===0?"duckduckgo":null:null}(e),n=t!="yahoo"?"q":"p",r={};if(!Uo(t)){r.$search_engine=t;var i=Te?qy(Te.referrer,n):"";i.length&&(r.ph_keyword=i)}return r}function yY(){return navigator.language||navigator.userLanguage}var eO="$direct";function Lpe(){return(Te==null?void 0:Te.referrer)||eO}function $pe(e,t,n){n===void 0&&(n=!1);var r=e?[...Gy,...t||[]]:[],i=n?hh(Dr==null?void 0:Dr.href):Dr==null?void 0:Dr.href,o=i==null?void 0:i.substring(0,1e3);return{r:Lpe().substring(0,1e3),u:o?jE(o,r,zE):void 0}}function Fpe(e,t){var n;t===void 0&&(t=!1);var r=e.r,i=e.u,o=t?hh(i):i,s={$referrer:r,$referring_domain:r==null?void 0:r==eO?eO:(n=BE(r))==null?void 0:n.host};
857if(o){s.$current_url=o;var a=BE(o);s.$host=a==null?void 0:a.host,s.$pathname=a==null?void 0:a.pathname;var l=Npe(o);Nn(s,l)}if(r){var c=Dpe(r);Nn(s,c)}return s}function Bpe(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function g9e(){try{return new Date().getTimezoneOffset()}catch{return}}var v9e={flags:$E,surveys:KA},y9e=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],zg="main";class L2{constructor(t,n,r){if(r===void 0&&(r=!0),this.Gt={},this.Qt=!1,this.Jt=!1,this.Se=t,this.Kt=r,this.props={},this.Yt=!1,this.Xt=(o=>{var s="";return o.token&&(s=o.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),o.persistence_name?"ph_"+o.persistence_name:"ph_"+s+"_posthog"})(t),this.Nt=this.er(t),this.Jt=this.tr(t),this.load(),t.debug&&xe.info("Persistence loaded",t.persistence,he({},this.props)),this.update_config(t,t,n),this.save(),te){var i=()=>this.flush();ir(te,"beforeunload",i,{capture:!1}),ir(te,"pagehide",i,{capture:!1})}}rr(){var t,n=(t=this.Se)==null?void 0:t.persistence_save_debounce_ms;return eo(n)&&n>0?n:0}isDisabled(){return!!this.ir}er(t){y9e.indexOf(t.persistence.toLowerCase())===-1&&(xe.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n,r=function(s,a){s===void 0&&(s=[]),a===void 0&&(a=!1);var l=[...YHe,...s];return he({},kn,{F(c){try{var u={};try{u=Tc.F(c)||{}}catch{}var d,f=JSON.parse(kn.A(c)||"{}");if(a){var h={};for(var p in u){var m=u[p];Uo(m)||m===""||(h[p]=m)}d=Nn(f,h)}else d=Nn(u,f);return kn.q(c,d),d}catch{}return null},q(c,u,d,f,h,p){var m=kn.q(c,u,void 0,void 0,p);try{var g={};l.forEach(v=>{u[v]&&(g[v]=u[v])}),Object.keys(g).length&&Tc.q(c,g,d,f,h,p)}catch(v){kn.D(v)}return m},P(c,u){try{te==null||te.localStorage.removeItem(c),Tc.P(c,u)}catch(d){kn.D(d)}}})}(t.cookie_persisted_properties||[],t.__preview_cookie_wins_on_conflict||!1),i=!1,o=t.persistence.toLowerCase();return o==="localstorage"&&kn.N()?(n=kn,i=!0):o==="localstorage+cookie"&&r.N()?(n=r,i=!0):o==="sessionstorage"&&Ki.N()?n=Ki:o==="memory"?n=XHe:o==="cookie"?n=Tc:r.N()?(n=r,i=!0):n=Tc,this.Qt=i,n}nr(t){return this.Xt+"__"+t}tr(t){return this.Qt&&!!t.split_storage}sr(t){var n=t??this.Se.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[$E];return!r||typeof r!="number"||Date.now()-r>n}properties(){var t={};return Cn(this.props,(n,r)=>{var i=lp(r);if((i==null?void 0:i.exposure)==="derived"){if(i.shouldSkipFromEventProperties!=null&&i.shouldSkipFromEventProperties(n,r===Rp?()=>this.sr():()=>!1))return;i.transformToEventProperties&&Nn(t,i.transformToEventProperties(n))}else if(!i||i.exposure==="event"){if(i!=null&&i.shouldSkipFromEventProperties!=null&&i.shouldSkipFromEventProperties(n,()=>!1))return;t[r]=n}}),t}load(){if(!this.ir){var t=this.Nt.F(this.Xt);t&&(this.props=Nn({},t)),this.Jt&&this.ar()}}ar(){for(var t of bk){var n=kn.F(this.nr(t));if(n&&!Rf(n)){var r=this.lr(t);r.persisted=!0,this.ur(t)||(r.fingerprint=this.hr(n,t)),this.dr(t,n)||Nn(this.props,n)}}}ur(t){return Object.keys(this.props).some(n=>{var r;return((r=lp(n))==null?void 0:r.storageGroup)===t})}dr(t,n){var r=v9e[t];if(!r)return!1;var i=n[r],o=this.props[r];return eo(i)&&eo(o)&&o>i}refreshKey(t){var n;if(!this.ir){var r=this.Jt?(n=lp(t))==null?void 0:n.storageGroup:void 0,i=r?kn.F(this.nr(r)):this.Nt.F(this.Xt);if(i&&t in i)this.cr(t,i[t]);else{if(r){var o=this.Nt.F(this.Xt);if(o&&t in o)return void this.cr(t,o[t])}this.vr(t)}}}save(){if(!this.ir){var t=this.rr();t>0?_e(this.pr)&&(this.pr=setTimeout(()=>{this.pr=void 0,this.gr()},t)):this.gr()}}flush(){_e(this.pr)||(clearTimeout(this.pr),this.pr=void 0,this.gr())}gr(){this.ir||(this.Jt?this.mr():this.yr(this.Nt,this.Xt,this.props,zg))}mr(){var t=this.br(),n=t.main,r=t.groups;for(var i of(this.yr(this.Nt,this.Xt,n,zg),bk)){var o,s=r[i];(!Rf(s)||(o=this.Gt[i])!=null&&o.persisted)&&this.yr(kn,this.nr(i),s,i)}}br(){var t={},n={};for(var r of bk)n[r]={};return Cn(this.props,(i,o)=>{var s,a=(s=lp(o))==null?void 0:s.storageGroup;a?n[a][o]=i:t[o]=i}),{main:t,groups:n}}hr(t,n){if(n===zg)return JSON.stringify(t)+"|"+this._r+"|"+this.wr+"|"+this.kr;var r={};return Cn(t,(i,o)=>{var s;r[o]=(s=lp(o))!=null&&s.volatile?"__volatile__":i}),JSON.stringify(r)}yr(t,n,r,i){var o=this.lr(i);if(i===zg||o.dirty||_e(o.fingerprint)){var s;try{if((s=this.hr(r,i))===o.fingerprint)return void(o.dirty=!1)}catch{s=void 0}t.q(n,r,this._r,this.wr,this.kr,this.Se.debug)?(o.dirty=!1,i!==zg&&(o.persisted=!0),_e(s)||(o.fingerprint=s)):this.Se.debug&&xe.w
857arn('failed to persist storage entry "'+n+'"; will retry on next save')}}remove(t){var n=(t===void 0?{}:t).keepGroupEntries,r=n!==void 0&&n;if(_e(this.pr)||(clearTimeout(this.pr),this.pr=void 0),this.Nt.P(this.Xt,!1),this.Nt.P(this.Xt,!0),!r&&this.Kt)for(var i of bk)kn.P(this.nr(i));r?delete this.Gt[zg]:this.Gt={}}clear(){this.remove(),this.props={}}register_once(t,n,r){if(Wn(t)){_e(n)&&(n="None"),this._r=_e(r)?this.Sr:r;var i=!1;if(Cn(t,(o,s)=>{this.props.hasOwnProperty(s)&&this.props[s]!==n||(this.cr(s,o),i=!0)}),i)return this.save(),!0}return!1}register(t,n){if(Wn(t)){this._r=_e(n)?this.Sr:n;var r=!1;if(Cn(t,(i,o)=>{t.hasOwnProperty(o)&&this.props[o]!==i&&(this.cr(o,i),r=!0)}),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.vr(t),this.save())}update_campaign_params(){if(!this.Yt){var t=Mpe(this.Se.custom_campaign_params,this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties);Rf(xV(t))||this.register(t),this.Yt=!0}}update_search_keyword(){var t;this.register((t=Te==null?void 0:Te.referrer)?Dpe(t):{})}update_referrer_info(){var t;this.register_once({$referrer:Lpe(),$referring_domain:Te!=null&&Te.referrer&&((t=BE(Te.referrer))==null?void 0:t.host)||eO},void 0)}set_initial_person_info(){this.props[vj]||this.props[yj]||this.register_once({[qA]:$pe(this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties,this.Se.disable_capture_url_hashes)},void 0)}get_initial_props(){var t={};Cn([yj,vj],i=>{var o=this.props[i];o&&Cn(o,function(s,a){t["$initial_"+YB(a)]=s})});var n=this.props[qA];if(n){var r=function(i,o){o===void 0&&(o=!1);var s=Fpe(i,o),a={};return Cn(s,function(l,c){a["$initial_"+YB(c)]=l}),a}(n,this.Se.disable_capture_url_hashes);Nn(t,r)}return t}safe_merge(t){return Cn(this.props,function(n,r){r in t||(t[r]=n)}),t}update_config(t,n,r){this.Sr=this._r=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!r),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie);var i=t.persistence!==n.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var u=[...l].sort(),d=[...c].sort();return u.every((f,h)=>f===d[h])})(t.cookie_persisted_properties||[],n.cookie_persisted_properties||[]),o=i?this.er(t):this.Nt,s=this.tr(t);if(i||s!==this.Jt){var a=this.props;this.clear(),this.Nt=o,this.Jt=s,this.props=a,this.save()}}set_disabled(t){this.ir=t,this.ir?this.remove():this.save()}set_cross_subdomain(t){t!==this.wr&&(this.wr=t,this.remove({keepGroupEntries:!0}),this.save())}set_secure(t){t!==this.kr&&(this.kr=t,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(t,n){var r=this.props[Xw]||{};r[t]=n,this.cr(Xw,r),this.save()}remove_event_timer(t){var n=this.props[Xw]||{},r=n[t];return _e(r)||(delete n[t],this.cr(Xw,n),this.save()),r}get_property(t){return this.props[t]}set_property(t,n){this.cr(t,n),this.save()}cr(t,n){var r;this.props[t]=n,(r=lp(t))!=null&&r.volatile||this.Cr(t)}vr(t){delete this.props[t],this.Cr(t)}Cr(t){var n,r=(n=lp(t))==null?void 0:n.storageGroup;r&&(this.lr(r).dirty=!0)}lr(t){return this.Gt[t]||(this.Gt[t]={})}}var Y0={Activation:"events",Cancellation:"cancelEvents"},$2={Popover:"popover",API:"api",Widget:"widget"},Hu={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},F2={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Ej={Popover:"popover",Inline:"inline"},b9e={SHOWN:"product tour shown"},bY={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},wY=Xn("[RateLimiter]");class w9e{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach(i=>{wY.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4})}catch(i){return void wY.warn('could not rate limit - continuing. Error: "'+(i==null?void 0:i.message)+'"',{text:r})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var n,r,i;t===void 0&&(t=!1);var o=this.captureEventsBurstLimit,s=this.captureEventsPerSecond,a=new Date().getTime(),l=(n=(r=this.instance.persistence)==null?void 0:r.get_property(gj))!==null&&n!==void 0?n:{tokens:o,last:a};l.tokens+=(a-l.last)/1e3*s,l.last=a,l.tokens>o&&(l.tokens=o);var c=1>l.tokens;return c||t||(l.tokens=Math.max(0,l.tokens-1)),!c||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+s+" events per second and "+o+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=c,(i=this.instance.persistence)==null||i.set_property(gj,l),{isRateLimited:c,remainingTokens:l.tokens}
vendor: 9,600 bytes, line 857
857}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var X0=Xn("[RemoteConfig]");class jpe{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=et._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Tr(t){var n,r;(n=et.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",()=>t(this.remoteConfig)):t()}Ir(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){t(n.json)}})}load(){try{if(this.remoteConfig)return X0.info("Using preloaded remote config",this.remoteConfig),this.Mr(this.remoteConfig),void this.Er();if(this._instance.Rr())return void X0.warn("Remote config is disabled. Falling back to local config.");this.Tr(t=>{if(!t)return X0.info("No config found after loading remote JS config. Falling back to JSON."),void this.Ir(n=>{this.Mr(n),this.Er()});this.Mr(t),this.Er()})}catch(t){X0.error("Error loading remote config",t)}}stop(){this.Pr&&(clearInterval(this.Pr),this.Pr=void 0)}refresh(){!this._instance.Rr()&&Te&&Te.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Er(){var t;if(!this.Pr){var n=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;n!==0&&(this.Pr=setInterval(()=>{this.refresh()},n))}}Mr(t){var n;t||X0.error("Failed to fetch remote config from PostHog."),this._instance.Mr(t??{}),(t==null?void 0:t.hasFeatureFlags)!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var Ro={GZipJS:"gzip-js",Base64:"base64"},La=Uint8Array,us=Uint16Array,Yy=Uint32Array,kV=new La([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),CV=new La([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),xY=new La([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zpe=function(e,t){for(var n=new us(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var i=new Yy(n[30]);for(r=1;30>r;++r)for(var o=n[r];n[r+1]>o;++o)i[o]=o-n[r]<<5|r;return[n,i]},Upe=zpe(kV,2),Sj=Upe[1];Upe[0][28]=258,Sj[258]=28;for(var EY=zpe(CV,0)[1],Vpe=new us(32768),qn=0;32768>qn;++qn){var Ug=(43690&qn)>>>1|(21845&qn)<<1;Vpe[qn]=((65280&(Ug=(61680&(Ug=(52428&Ug)>>>2|(13107&Ug)<<2))>>>4|(3855&Ug)<<4))>>>8|(255&Ug)<<8)>>>1}var Nx=function(e,t,n){for(var r=e.length,i=0,o=new us(t);r>i;++i)++o[e[i]-1];var s,a=new us(t);for(i=0;t>i;++i)a[i]=a[i-1]+o[i-1]<<1;for(s=new us(r),i=0;r>i;++i)s[i]=Vpe[a[e[i]-1]++]>>>15-e[i];return s},Mm=new La(288);for(qn=0;144>qn;++qn)Mm[qn]=8;for(qn=144;256>qn;++qn)Mm[qn]=9;for(qn=256;280>qn;++qn)Mm[qn]=7;for(qn=280;288>qn;++qn)Mm[qn]=8;var tO=new La(32);for(qn=0;32>qn;++qn)tO[qn]=5;var x9e=Nx(Mm,9),E9e=Nx(tO,5),Wpe=function(e){return(e/8>>0)+(7&e&&1)},Hpe=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof us?us:e instanceof Yy?Yy:La)(n-t);return r.set(e.subarray(t,n)),r},gu=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},Z0=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},B2=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new La(0),0];if(i==1){var s=new La(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(E,S){return E.f-S.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=i-1;)a=n[n[d].f>n[c].f?c++:d++],l=n[c!=u&&n[d].f>n[c].f?c++:d++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var f=o[0].s;for(r=1;i>r;++r)o[r].s>f&&(f=o[r].s);var h=new us(f+1),p=_j(n[u-1],h,0);if(p>t){r=0;var m=0,g=p-t,v=1<<g;for(o.sort(function(E,S){return h[S.s]-h[E.s]||E.f-S.f});i>r;++r){var b=o[r].s;if(t>=h[b])break;m+=v-(1<<p-h[b]),h[b]=t}for(m>>>=g;m>0;){var w=o[r].s;t>h[w]?m-=1<<t-h[w]++-1:++r}for(;r>=0&&m;--r){var x=o[r].s;h[x]==t&&(--h[x],++m)}p=t}return[new La(h),p]},_j=function(e,t,n){return e.s==-1?Math.max(_j(e.l,t,n+1),_j(e.r,t,n+1)):t[e.s]=n},SY=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new us(++t),r=0,i=e[0],o=1,s=function(l){n[r++]=l},a=1;t>=a;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},Q0=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},kj=function(e,t,n){var r=n.length,i=Wpe(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;r>o;++o)e[i+o+4]=n[o];return 8*(i+4+r)},_Y=function(e,t,n,r,i,o,s,a,l,c,u){gu(t,u++,n),++i[256];for(var d=B2(i,15),f=d[0],h=d[1],p=B2(o,15),m=p[0],g=p[1],v=SY(f),b=v[0],w=v[1],x=SY(m),E=x[0],S=x[1],_=new us(19),k=0;b.length>k;++k)_[31&b[k]]++;for(k=0;E.length>k;++k)_[31&E[k]]++;for(var C=B2(_,7),T=C[0],A=C[1],O=19;O>4&&!T[xY[O-1]];--O);var R,I,F,N,B=c+5<<3,M=Q0(i,Mm)+Q0(o,tO)+s,L=Q0(i,f)+Q0(o,m)+s+14+3*O+Q0(_,T)+(2*_[16]+3*_[17]+7*_[18]);if(M>=B&&L>=B)return kj(t,u,e.subarray(l,l+c));if(gu(t,u,1+(M>L)),u+=2,M>L){R=Nx(f,h),I=f,F=Nx(m,g),N=m;var P=Nx(T,A);for(gu(t,u,w-257),gu(t,u+5,S-1),gu(t,u+10,O-4),u+=14,k=0;O>k;++k)gu(t,u+3*k,T[xY[k]]);u+=3*O;for(var G=[b,E],Z=0;2>Z;++Z){var z=G[Z];for(k=0;z.length>k;++k)gu(t,u,P[oe=31&z[k]]),u+=T[oe],oe>15&&(gu(t,u,z[k]>>>5&127),u+=z[k]>>>12)}}else R=x9e,I=Mm,F=E9e,N=tO;for(k=0;a>k;++k)if(r[k]>255){var oe;Z0(t,u,R[257+(oe=r[k]>>>18&31)]),u+=I[oe+257],oe>7&&(gu(t,u,r[k]>>>23&31),u+=kV[oe]);var le=31&r[k];Z0(t,u,F[le]),u+=N[le],le>3&&(Z0(t,u,r[k]>>>5&8191),u+=CV[le])}else Z0(t,u,R[r[k]]),u+=I[r[k]];return Z0(t,u,R[256]),u+I[256]},S9e=new Yy([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_9e=function(){for(var e=new Yy(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),j2=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function k9e(e,t){t===void 0&&(t={});var n=function(){var d=4294967295;return{p(f){for(var h=d,p=0;f.length>p;++p)h=_9e[255&h^f[p]]^h>>>8;d=h},d(){return 4294967295^d}}}(),r=e.length;n.p(e);var i,o,s,a,l,c=(a=10+((i=t).filename&&i.filename.length+1||0),l=8,function(d,f,h,p,m,g){var v=d.length,b=new La(p+v+5*(1+Math.floor(v/7e3))+m),w=b.subarray(p,b.length-m),x=0;if(!f||8>v)for(var E=0;v>=E;E+=65535){var S=E+65535;v>S?x=kj(w,x,d.subarray(E,S)):(w[E]=!0,x=kj(w,x,d.subarray(E,v)))}else{for(var _=S9e[f-1],k=_>>>13,C=8191&_,T=(1<<h)-1,A=new us(32768),O=new us(T+1),R=Math.ceil(h/3),I=2*R,F=function(Pn){return(d[Pn]^d[Pn+1]<<R^d[Pn+2]<<I)&T},N=new Yy(25e3),B=new us(288),M=new us(32),L=0,P=0,G=(E=0,0),Z=0,z=0;v>E;++E){var oe=F(E),le=32767&E,se=O[oe];if(A[le]=se,O[oe]=le,E>=Z){var ue=v-E;if((L>7e3||G>24576)&&ue>423){x=_Y(d,w,0,N,B,M,P,G,z,E-z,x),G=L=P=0,z=E;for(var ce=0;286>ce;++ce)B[ce]=0;for(ce=0;30>ce;++ce)M[ce]=0}var Q=2,K=0,pe=C,X=le-se&32767;if(ue>2&&oe==F(E-X))for(var Ze=Math.min(k,ue)-1,Me=Math.min(32767,E),tt=Math.min(258,ue);Me>=X&&--pe&&le!=se;){if(d[E+Q]==d[E+Q-X]){for(var Oe=0;tt>Oe&&d[E+Oe]==d[E+Oe-X];++Oe);if(Oe>Q){if(Q=Oe,K=X,Oe>Ze)break;var Pt=Math.min(X,Oe-2),Le=0;for(ce=0;Pt>ce;++ce){var hn=E-X+ce+32768&32767,vt=hn-A[hn]+32768&32767;vt>Le&&(Le=vt,se=hn)}}}X+=(le=se)-(se=A[le])+32768&32767}if(K){N[G++]=268435456|Sj[Q]<<18|EY[K];var at=31&Sj[Q],Jn=31&EY[K];P+=kV[at]+CV[Jn],++B[257+at],++M[Jn],Z=E+Q,++L}else N[G++]=d[E],++B[d[E]]}}x=_Y(d,w,!0,N,B,M,P,G,z,E-z,x)}return Hpe(b,0,p+Wpe(x)+m)}(o=e,(s=t).level==null?6:s.level,s.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(o.length)))):12+s.mem,a,l)),u=c.length;return function(d,f){var h=f.filename;if(d[0]=31,d[1]=139,d[2]=8,d[8]=2>f.level?4:f.level==9?2:0,d[9]=3,f.mtime!=0&&j2(d,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),h){d[3]=8;for(var p=0;h.length>=p;++p)d[p+10]=h.charCodeAt(p)}}(c,t),j2(c,u-8,n.d()),j2(c,u-4,r),c}var C9e=!!KB||!!dV,Kpe="text/plain",dT=!1,Cj=(e,t)=>{var n=e.split("#"),r=n[1],i=n[0].split("?"),o=i[0],s=i[1];if(!s)return e;var a=s.split("&").filter(l=>l.split("=")[0]!==t).join("&");return o+(a?"?"+a:"")+(r?"#"+r:"")},TV=function(e,t,n){var r;n===void 0&&(n=!0);var i=e.split("?"),o=i[0],s=i[1],a=he({},t),l=(r=s==null?void 0:s.split("&").map(u=>{var d,f=u.split("="),h=f[0],p=n&&(d=a[h])!==null&&d!==void 0?d:f[1];return delete a[h],h+"="+p}))!==null&&r!==void 0?r:[],c=function(u,d){var f,h;d===void 0&&(d="&");var p=[];return Cn(u,function(m,g){_e(m)||_e(g)||g==="undefined"||(f=encodeURIComponent((v=>v instanceof File)(m)?m.name:m.toString()),h=encodeURIComponent(g),p[p.length]=h+"="+f)}),p.join(d)}(a);return c&&l.push(c),o+"?"+l.join("&")},Dv=(e,t)=>{try{return JSON.stringify(e,(n,r)=>typeof r=="bigint"?r.toString():r,t)}catch{return Ahe(e)}},z2=e=>{if(e.Lt)return e.Lt;var t=e.data,n=e.compression;if(t){if(n===Ro.GZipJS){var r=k9e(function(a,l){var c=a.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(a);for(var u=new La(a.length+(a.length>>>1)),d=0,f=function(g){u[d++]=g},h=0;c>h;++h){if(d+5>u.length){var p=new La(d+8+(c-h<<1));p.set(u),u=p}var m=a.charCodeAt(h);128>m?f(m):2048>m?(f(192|m>>>6),f(128|63&m)):m>55295&&57344>m?(f(240|(m=65536+(1047552&m)|1023&a.charCodeAt(++h))>>>18),f(128|m>>>12&63),f(128|m>>>6&63),f(128|63&m)):(f(224|m>>>12),f(128|m>>>6&63),f(128|63&m))}return Hpe(u,0,d)}(Dv(t)),{mtime:0});return{contentType:Kpe,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===Ro.Base64){var i=function(a){return a&&btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,(l,c)=>String.fromCharCode(parseInt(c,16))))}(Dv(t)),o=(a=>
857"data="+encodeURIComponent(typeof a=="string"?a:Dv(a)))(i);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var s=Dv(t);return{contentType:"application/json",body:s,estimatedSize:new Blob([s]).size}}},qpe=e=>{var t,n,r=()=>e.transport==="sendBeacon"?{url:TV(e.url,{compression:Ro.Base64}),encodedBody:z2(he({},e,{compression:Ro.Base64,Lt:void 0}))}:{url:Cj(e.url,"compression"),encodedBody:z2(he({},e,{compression:void 0,Lt:void 0}))};try{t=z2(e)}catch(i){if(YG(e.compression,qy(e.url,"compression")))return xe.error("Failed to gzip request body, sending uncompressed payload",i),r();throw i}return t&&YG(e.compression,qy(e.url,"compression"))&&!((n=t.body)instanceof ArrayBuffer?qB(new Uint8Array(n)):ArrayBuffer.isView(n)&&qB(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)))?(dT=!0,r()):{url:e.url,encodedBody:t}},Gpe=e=>{try{return qpe(e)}catch(t){return xe.error(t),void(e.callback==null||e.callback({statusCode:0,error:t}))}},T9e=function(){var e=Or(function*(t){var n=Dv(t.data),r=yield function(o,s,a){return GB.apply(this,arguments)}(n,nr.DEBUG,{rethrow:!0});if(!r)return t;var i=yield r.arrayBuffer();return he({},t,{Lt:{contentType:Kpe,body:i,estimatedSize:i.byteLength}})});return function(t){return e.apply(this,arguments)}}(),A9e=/Failed to fetch|NetworkError|Load failed/i,Ype=e=>{var t,n=Gpe(e);if(n){var r=n.url,i=n.encodedBody,o=i??{},s=o.contentType,a=o.body,l=o.estimatedSize,c=new Headers;Cn(e.headers,function(h,p){c.append(p,h)}),s&&c.append("Content-Type",s);var u=null,d=!1;if(UG){var f=new UG;u={signal:f.signal,timeout:setTimeout(()=>{var h,p;d=!0,f.abort((h=e.timeout,(p=new Error("PostHog request timed out"+(h?" after "+h+"ms":""))).name="AbortError",p))},e.timeout)}}dV(r,he({method:(e==null?void 0:e.method)||"GET",headers:c,keepalive:e.method==="POST"&&!e.Ft&&52428.8>(l||0),body:a,signal:(t=u)==null?void 0:t.signal},e.fetchOptions)).then(h=>h.text().then(p=>{var m={statusCode:h.status,text:p};if(h.status===200)try{m.json=JSON.parse(p)}catch(g){xe.error(g)}e.callback==null||e.callback(m)})).catch(h=>{d&&(h==null?void 0:h.name)==="AbortError"||(p=>(p==null?void 0:p.name)==="TypeError"&&A9e.test((p==null?void 0:p.message)||""))(h)?xe.warn(h):xe.error(h),e.callback==null||e.callback({statusCode:0,error:h})}).finally(()=>u?clearTimeout(u.timeout):null)}},Tj=e=>{try{var t=qpe(e),n=t.url,r=t.encodedBody,i=r??{},o=i.body,s=i.estimatedSize;if(!o)return;var a=o instanceof Blob?o:new Blob([o],{type:i.contentType});if(No.sendBeacon(n,a))return;if(At(e.data)&&e.data.length>1&&(s??0)>16384){var l=Math.ceil(e.data.length/2);return Tj(he({},e,{data:e.data.slice(0,l)})),void Tj(he({},e,{data:e.data.slice(l)}))}xe.warn("Beacon of ~"+(s??0)+" bytes was rejected by the browser, falling back to fetch"),Ype(he({},e,{Ft:!0}))}catch(c){xe.warn("Beacon send failed",c)}},O9e=["/e/","/s/"],kY=(e,t)=>{var n=(i=>{var o=(s=>{var a=BE(s),l=(a==null?void 0:a.pathname)||s.split(/[?#]/)[0];return l?l[0]==="/"?l:"/"+l:"/"})(i);return O9e.some(s=>((a,l)=>a.slice(a.length-l.length)===l)(o,s))})(e),r=n?Cj(e,"ver"):e;return TV(t===Ro.GZipJS?Cj(r,"compression"):r,he({_:new Date().getTime().toString()},n?{}:{ver:nr.JS_SDK_VERSION},t===Ro.GZipJS?{}:{compression:t}))},fT=[];dV&&fT.push({transport:"fetch",method:Ype}),KB&&fT.push({transport:"XHR",method(e){var t=Gpe(e);if(t){var n=new KB,r=t.encodedBody;n.open(e.method||"GET",t.url,!0);var i=r??{},o=i.contentType,s=i.body;Cn(e.headers,function(a,l){n.setRequestHeader(l,a)}),o&&n.setRequestHeader("Content-Type",o),e.timeout&&(n.timeout=e.timeout),n.onreadystatechange=()=>{if(n.readyState===4){var a={statusCode:n.status,text:n.responseText};if(n.status===200)try{a.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(a)}},n.send(s)}}}),No!=null&&No.sendBeacon&&fT.push({transport:"sendBeacon",method:Tj});var Aj=3e3;class P9e{constructor(t,n){this.Or=!0,this.Lr=[],this.Fr=Pc((n==null?void 0:n.flush_interval_ms)||Aj,250,5e3,xe.createLogger("flush interval"),Aj),this.Ar=t}enqueue(t){this.Lr.push(t),this.$r||this.Nr()}unload(){this.Dr();var t=this.Lr.length>0?this.qr():{},n=Object.values(t);[...n.filter(r=>r.url.indexOf("/e")===0),...n.filter(r=>r.url.indexOf("/e")!==0)].map(r=>{this.jr(he({},r,{transport:"sendBeacon"}))})}enable(){this.Or=!1,this.Nr()}Nr(){var t=this;this.Or||(this.$r=setTimeout(()=>{if(this.Dr(),this.Lr.length>0){var n=this.qr(),r=function(){var o=n[i],s=new Date().getTime();o.data&&At(o.data)&&Cn(o.data,a=>{a.offset=Math.abs(a.timestamp-s),delete a.timestamp}),t.jr(o)};for(var i in n)r()}},this.Fr))}jr(t){try{this.Ar(t)}catch(n){xe.error(n)}}Dr(){clearTimeout(this.$r),this.$r=void 0}qr(){var t={};return Cn(this.Lr,n=>{var r,i=n,o=(i?i.batchKey:null)||i.url;_e(t[o])&&(t[o]=he({},i,{data:[]})),(r=t[o].data)==null||r.push(i.data)}),this.Lr=[],t}}var I9e=["retriesPerformedSoFar"];class R9e{constructor(t){this.Br=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.Ur=!0,!_e(te)&&"onLine"in te.navigator&&(this.Ur=te.navigator.onLine,this.zr=()=>{this.Ur=!0,this.Wr()},this.Vr=()=>{this.Ur=!1},ir(te,"online",this.zr),ir(te,"offline",this.Vr))}get length(){return this.Lr.length}retriableRequest(t){var n=t.retriesPerformedSoFar,r=Che(t,I9e);Eu(n)&&(r.url=TV(r.url,{retry_count:n})),this._instance._send_request(he({},r,{callback:i=>{if(i.statusCode!==200&&(400>
857i.statusCode||i.statusCode>=500)){if((i.statusCode===0?3:10)>(n??0))return void this.st(he({retriesPerformedSoFar:n},r));i.statusCode===0&&xe.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(n??0)+" retries.")}r.callback==null||r.callback(i)}}))}st(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=function(s){var a=3e3*Math.pow(2,s),l=a/2,c=Math.min(18e5,a),u=Math.random()-.5;return Math.ceil(c+u*(c-l))}(n),i=Date.now()+r;this.Lr.push({retryAt:i,requestOptions:t});var o="Enqueued failed request for retry in "+r;navigator.onLine||(o+=" (Browser is offline)"),xe.warn(o),this.Br||(this.Br=!0,this.Zr())}Zr(){if(this.Gr&&clearTimeout(this.Gr),this.Lr.length===0)return this.Br=!1,void(this.Gr=void 0);this.Gr=setTimeout(()=>{this.Ur&&this.Lr.length>0&&this.Wr(),this.Zr()},this.Hr)}Wr(){var t=Date.now(),n=[],r=this.Lr.filter(o=>t>o.retryAt||(n.push(o),!1));if(this.Lr=n,r.length>0)for(var i of r)this.retriableRequest(i.requestOptions)}unload(){for(var t of(this.Gr&&(clearTimeout(this.Gr),this.Gr=void 0),this.Br=!1,_e(te)||(this.zr&&(te.removeEventListener("online",this.zr),this.zr=void 0),this.Vr&&(te.removeEventListener("offline",this.Vr),this.Vr=void 0)),this.Lr)){var n=t.requestOptions;try{this._instance._send_request(he({},n,{transport:"sendBeacon"}))}catch(r){xe.error(r)}}this.Lr=[]}}class M9e{constructor(t){this.Qr=()=>{var n,r,i,o;this.Jr||(this.Jr={});var s=this.scrollElement(),a=this.scrollY(),l=s?Math.max(0,s.scrollHeight-s.clientHeight):0,c=a+((s==null?void 0:s.clientHeight)||0),u=(s==null?void 0:s.scrollHeight)||0;this.Jr.lastScrollY=Math.ceil(a),this.Jr.maxScrollY=Math.max(a,(n=this.Jr.maxScrollY)!==null&&n!==void 0?n:0),this.Jr.maxScrollHeight=Math.max(l,(r=this.Jr.maxScrollHeight)!==null&&r!==void 0?r:0),this.Jr.lastContentY=c,this.Jr.maxContentY=Math.max(c,(i=this.Jr.maxContentY)!==null&&i!==void 0?i:0),this.Jr.maxContentHeight=Math.max(u,(o=this.Jr.maxContentHeight)!==null&&o!==void 0?o:0)},this._instance=t}get Kr(){return this._instance.config.scroll_root_selector}getContext(){return this.Jr}resetContext(){var t=this.Jr;return setTimeout(this.Qr,0),t}startMeasuringScrollPosition(){ir(te,"scroll",this.Qr,{capture:!0}),ir(te,"scrollend",this.Qr,{capture:!0}),ir(te,"resize",this.Qr)}scrollElement(){if(!this.Kr)return te==null?void 0:te.document.documentElement;var t=At(this.Kr)?this.Kr:[this.Kr];for(var n of t){var r=te==null?void 0:te.document.querySelector(n);if(r)return r}}Yr(t){var n=t==="y"?"scrollTop":"scrollLeft";if(this.Kr){var r=this.scrollElement();return r&&r[n]||0}return te?t==="y"?te.scrollY||te.pageYOffset||te.document.documentElement.scrollTop||0:te.scrollX||te.pageXOffset||te.document.documentElement.scrollLeft||0:0}scrollY(){return this.Yr("y")}scrollX(){return this.Yr("x")}}var N9e=e=>$pe(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties,e==null?void 0:e.config.disable_capture_url_hashes);class CY{constructor(t,n,r,i){this.Xr=o=>{var s=this.ei();if(!s||s.sessionId!==o){var a={sessionId:o,props:this.ti(this._instance)};this.ri.register({[mj]:a})}},this._instance=t,this.ii=n,this.ri=r,this.ti=i||N9e,this.ii.onSessionId(this.Xr)}ei(){return this.ri.props[mj]}getSetOnceProps(){var t,n=(t=this.ei())==null?void 0:t.props;return n?"r"in n?Fpe(n,this._instance.config.disable_capture_url_hashes):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return Cn(xV(this.getSetOnceProps()),(n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+YB(r)]=n}),t}}
857class AV{constructor(){this.ni={}}on(t,n){return this.ni[t]||(this.ni[t]=[]),this.ni[t].push(n),()=>{this.ni[t]=this.ni[t].filter(r=>r!==n)}}emit(t,n){for(var r of this.ni[t]||[])r(n);for(var i of this.ni["*"]||[])i(t,n)}}var J0=Xn("[SessionId]");class TY{on(t,n){return this.si.on(t,n)}constructor(t,n,r){var i;if(this.oi=null,this.ai=[],this.li=void 0,this.ui=!1,this.si=new AV,this.hi=(c,u)=>!(!Eu(c)||!Eu(u))&&Math.abs(c-u)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===Wu)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Se=t.config,this.ri=t.persistence,this.di=void 0,this.ci=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=n||$u,this.fi=r||$u;var o=this.Se.persistence_name||this.Se.token;if(this._sessionTimeoutMs=1e3*Pc(this.Se.session_idle_timeout_seconds||1800,60,36e3,J0.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+o+"_window_id",this.mi="ph_"+o+"_primary_window_exists",this.yi()){var s=Ki.F(this.gi),a=Ki.F(this.mi);s&&!a?this.di=s:Ki.P(this.gi),Ki.q(this.mi,!0)}if((i=this.Se.bootstrap)!=null&&i.sessionID)try{var l=(c=>{var u=this.Se.bootstrap.sessionID.replace(/-/g,"");if(u.length!==32)throw new Error("Not a valid UUID");if(u[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(u.substring(0,12),16)})();this.bi(this.Se.bootstrap.sessionID,new Date().getTime(),l)}catch(c){J0.error("Invalid sessionID in bootstrap",c)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return _e(this.ai)&&(this.ai=[]),this.ai.push(t),this.ci&&t(this.ci,this.di),()=>{this.ai=this.ai.filter(n=>n!==t)}}yi(){return this.Se.persistence!=="memory"&&!this.ri.ir&&Ki.N()}xi(t){t!==this.di&&(this.di=t,this.yi()&&Ki.q(this.gi,t))}ki(){return this.di?this.di:this.yi()?Ki.F(this.gi):null}Si(t){var n=this.oi;return!Uo(n)&&!Uo(t)&&5e3>Math.abs(t-n)}bi(t,n,r){var i=n!==this._sessionActivityTimestamp,o=!(t!==this.ci||r!==this._sessionStartTimestamp);this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.ci=t,o&&!i||o&&this.Si(n)||(this.oi=n,this.ri.register({[Nv]:[n,t,r]}))}Ci(){var t,n=(t=this.Se)==null?void 0:t.persistence_save_debounce_ms;return Eu(n)&&n>0}Ti(){this.Ci()?this.ri.refreshKey(Nv):(this.ri.flush(),this.ri.load())}Ii(){var t;if(!Uo(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.oi){this.Ti();var n=this.Mi();n[1]===this.ci&&n[2]===this._sessionStartTimestamp&&(this.oi=this._sessionActivityTimestamp,this.ri.register({[Nv]:[this._sessionActivityTimestamp,(t=this.ci)!==null&&t!==void 0?t:null,this._sessionStartTimestamp]}),this.ri.flush())}}Ei(){var t=this.Mi()[0],n=Eu(t)?t:0,r=Eu(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(n,r)}Ri(t){return this.Ti(),this.hi(t,this.Ei())}Mi(){var t=this.ri.props[Nv];return At(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.oi=null,clearTimeout(this.Pi),this.Pi=void 0,this.bi(null,null,null)}destroy(){this.ui=!0,this.Ii(),clearTimeout(this.Pi),this.Pi=void 0,this.li&&te&&(te.removeEventListener(XA,this.li,{capture:!1}),this.li=void 0),this.ai=[]}wi(){this.li=()=>{this.Ii(),this.yi()&&Ki.P(this.mi)},ir(te,XA,this.li,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.Se.cookieless_mode===Wu)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),i=this.Mi(),o=i[1],s=i[2],a=this.Ei(),l=this.ki(),c=Eu(s)&&Math.abs(r-s)>864e5,u=!1,d=!1,f=!o,h=o,p=!f&&!t&&this.hi(r,a);if(p){(p=this.Ri(r))||J0.info("cross-tab refresh kept the session alive",{sessionId:o});var m=this.Mi();o=m[1],s=m[2]}f||p||c?(o=this.vi(),l=this.fi(),J0.info("new session ID generated",{sessionId:o,windowId:l,changeReason:{noSessionId:f,activityTimeout:p,sessionPastMaximumLength:c}}),s=r,u=!0):(l||(l=this.fi(),u=!0),(d=o!==h)&&(J0.info("adopted cross-tab session id",{sessionId:o,windowId:l}),u=!0));var g=Eu(a)&&t&&!c?a:r,v=Eu(s)?s:new Date().getTime();this.xi(l),this.bi(o,g,v),t||this.pi();var b={noSessionId:f,activityTimeout:p,sessionPastMaximumLength:c,crossTabAdoption:d};return u&&this.ai.forEach(w=>w(o,l,b)),{sessionId:o,windowId:l,sessionStartTimestamp:v,changeReason:u?b:void 0,lastActivityTimestamp:a}}pi(){this.ui||(clearTimeout(this.Pi),this.Pi=setTimeout(()=>{if(!this.ui)if(this.Ri(new Date().getTime())){var t=this.ci;this.resetSessionId(),this.si.emit("forcedIdleReset",{idleSessionId:t})}else this.pi()},1.1*this.sessionTimeoutMs))}}var Xpe=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&ZG(n,t))return!0;try{var r=e==null?void 0:e.userAgentData;if(r!=null&&r.brands&&r.brands.some(i=>ZG(i==null?void 0:i.brand,t)))return!0}catch{}return!!e.webdriver};function Zpe(){return(Zpe=Or(function*(){var e=No==null?void 0:No.userAgentData;if(e!=null&&e.getHighEntropyValues)try{var t=yield e.getHighEntropyValues(["model"]),n=t==null?void 0:t.model;return wn(n)&&n.length>0?n:void 0}catch(r){return void xe.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",r)}})).apply(this,arguments)}var nO=function(e,t){if(!function(n){try{new RegExp(n)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function AY(e,t,n){return Dv({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var Qpe={exact:(e,t)=>
857t.some(n=>e.some(r=>n===r)),is_not:(e,t)=>t.every(n=>e.every(r=>n!==r)),regex:(e,t)=>t.some(n=>e.some(r=>nO(n,r))),not_regex:(e,t)=>t.every(n=>e.every(r=>!nO(n,r))),icontains:(e,t)=>t.map(xk).some(n=>e.map(xk).some(r=>n.includes(r))),not_icontains:(e,t)=>t.map(xk).every(n=>e.map(xk).every(r=>!n.includes(r))),gt:(e,t)=>t.some(n=>{var r=parseFloat(n);return!isNaN(r)&&e.some(i=>r>parseFloat(i))}),lt:(e,t)=>t.some(n=>{var r=parseFloat(n);return!isNaN(r)&&e.some(i=>r<parseFloat(i))})},xk=e=>e.toLowerCase();function Jpe(e,t){return!e||Object.entries(e).every(n=>{var r=n[1],i=t==null?void 0:t[n[0]];if(_e(i)||Uo(i))return!1;var o=[String(i)],s=Qpe[r.operator];return!!s&&s(r.values,o)})}var Oj="custom",OY="i.posthog.com",D9e=/^\/static\//;class L9e{constructor(t){this.Oi={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+OY,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Oi[this.apiHost]||(this.Oi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":Oj),this.Oi[this.apiHost]}Li(t){if(D9e.test(t)){var n=this.instance.config.asset_host;if(typeof n=="string")return n.trim().replace(/\/$/,"")||void 0}}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(t==="assets"){var r=this.Li(n);if(r)return""+r+n}if(this.region===Oj)return this.apiHost+n;var i=OY+n;switch(t){case"assets":return"https://"+this.region+"-assets."+i;case"api":return"https://"+this.region+"."+i}}}function eme(e){var t;return!((t=e.conditions)==null||(t=t.events)==null||(t=t.values)==null||!t.length)}var vn=Xn("[Surveys]"),tme="seenSurvey_",nme=e=>{try{var t=(n=>((r,i)=>""+tme+function(o){return o.current_iteration&&o.current_iteration>0?o.id+"_"+o.current_iteration:o.id}(i))(0,n))(e);if(localStorage.getItem(t))return;localStorage.setItem(t,"true")}catch(n){vn.error("Failed to persist survey seen state",n)}},$9e=[$2.Popover,$2.Widget,$2.API],F9e={ignoreConditions:!1,ignoreDelay:!1,displayType:Ej.Popover},B9e=Xn("[PostHog ExternalIntegrations]"),j9e={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class z9e{constructor(t){this._instance=t}Bt(t,n){var r;(r=et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,t,i=>{if(i)return B9e.error("failed to load script",i);n()})}startIfEnabledOrStop(){var t=this,n=function(){var o,s,a,l=r[0],c=r[1];!c||(o=et.__PosthogExtensions__)!=null&&(o=o.integrations)!=null&&o[l]||t.Bt(j9e[l],()=>{var u;(u=et.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[l])==null||u.start(t._instance)}),!c&&(s=et.__PosthogExtensions__)!=null&&(s=s.integrations)!=null&&s[l]&&((a=et.__PosthogExtensions__)==null||(a=a.integrations)==null||(a=a[l])==null||a.stop())};for(var r of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;n()}}}var Dx={},U2=0,rO=()=>{},PY='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',ew="Surveys module not available",IY="sanitize_properties is deprecated. Use before_send instead",rme="Invalid value for property_denylist config: ",dv="posthog",ime=!C9e&&(rs==null?void 0:rs.indexOf("MSIE"))===-1&&(rs==null?void 0:rs.indexOf("Mozilla"))===-1,RY=e=>{var t;return he({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:WHe(Te==null?void 0:Te.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:rO,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:Dr&&wn(Dr==null?void 0:Dr.search)&&Dr.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:(te==null||(t=te.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){xe.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:bj,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:Aj},error_tracking:{},_onCapture:rO},(n=>({rageclick:n&&n>="2026-05-30"?{content_ignorelist:n9e,ignore_text_selection:!0}
857:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:n&&n>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:n&&n>="2026-05-30"?250:0,split_storage:!(!n||"2026-05-30">n),detect_google_search_app:!(!n||"2026-05-30">n),disable_capture_url_hashes:!(!n||"2026-06-25">n)}))(e))},U9e=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],MY=e=>{var t={};for(var n of U9e){var r=n[0],i=n[1];_e(e[r])||(t[i]=e[r])}var o=Nn({},t,e),s=e.__preview_external_dependency_versioned_paths;return _e(s)||(_e(e.strict_script_versioning)&&(o.strict_script_versioning=!!s),wn(s)&&_e(e.asset_host)&&(o.asset_host=s)),At(e.property_blacklist)&&(_e(e.property_denylist)?o.property_denylist=e.property_blacklist:At(e.property_denylist)?o.property_denylist=[...e.property_blacklist,...e.property_denylist]:xe.error(rme+e.property_denylist)),o};class V9e{constructor(){this.__forceAllowLocalhost=!1}get Fi(){return this.__forceAllowLocalhost}set Fi(t){xe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class ka{Ai(t,n){if(t){var r=this.$i.indexOf(t);r!==-1&&this.$i.splice(r,1)}return this.$i.push(n),n.initialize==null||n.initialize(),n}Ni(){return this.config.cookieless_mode===Wu||this.config.cookieless_mode===_p&&this.consent.isRejected()}get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new V9e,this.Di=!1,this.version=nr.LIB_VERSION,this.qi=new AV,this.$i=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=RY(),this.SentryIntegration=d9e,this.sentryIntegration=r=>function(i,o){var s=Ppe(i,o);return{name:Ope,processEvent:a=>s(a)}}(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.ji=!1,this.Bi=null,this.Hi=null,this.Ui=null,this.scrollManager=new M9e(this),this.pageViewManager=new vY(this),this.rateLimiter=new w9e(this),this.requestRouter=new L9e(this),this.consent=new ZHe(this),this.externalIntegrations=new z9e(this);var n=(t=ka.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.metrics=n.metrics&&new n.metrics(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,i,o)=>{var s=wn(r)?{[r]:i}:r;this.setPersonProperties(s),o==null||o({})},set_once:(r,i,o)=>{var s=wn(r)?{[r]:i}:r;this.setPersonProperties(void 0,s),o==null||o({})}},this.on("eventCaptured",r=>xe.info('send "'+(r==null?void 0:r.event)+'"',r))}init(t,n,r){if(r&&r!==dv){var i,o=(i=Dx[r])!==null&&i!==void 0?i:new ka;return o._init(t,n,r),Dx[r]=o,Dx[dv][r]=o,o}return this._init(t,n,r)}_init(t,n,r){var i,o;n===void 0&&(n={});var s=wn(t)?t.trim():"";if(!s)return xe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.zi(n.debug),this.Wi=n,this.Vi=[],n.person_profiles?this.Hi=n.person_profiles:n.process_person&&(this.Hi=n.process_person);var a=RY(n.defaults),l=MY(n),c=Nn({},a,l,{name:r,token:s});Wn(a.rageclick)&&Wn(l.rageclick)&&(c.rageclick=Nn({},a.rageclick,l.rageclick)),Wn(a.session_recording)&&Wn(l.session_recording)&&(c.session_recording=Nn({},a.session_recording,l.session_recording)),this.set_config(c),this.config.on_xhr_error&&xe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Ro.GZipJS;var u=this.Zi();this.persistence=new L2(this.config,u),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new L2(he({},this.config,{persistence:"sessionStorage"}),u,!1);var d=he({},this.persistence.props),f=he({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Gi=new P9e(x=>this.Qi(x),this.config.request_queue_config),this.Ji=new R9e(this),this.__request_queue=[];var h=this.Ni();if(h||(this.sessionManager=new TY(this),this.sessionPropsManager=new CY(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(xe.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>
857{this.Ki(h)},0)):(xe.info("Initializing extensions synchronously"),this.Ki(h)),nr.DEBUG=nr.DEBUG||this.config.debug,nr.DEBUG&&xe.info("Starting in debug mode",{this:this,config:n,thisC:he({},this.config),p:d,s:f}),!this.config.identity_distinct_id||(i=n.bootstrap)!=null&&i.distinctID||(n.bootstrap=he({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((o=n.bootstrap)==null?void 0:o.distinctID)!==void 0){var p=n.bootstrap.distinctID,m=this.get_distinct_id(),g=this.persistence.get_property(tl);if(n.bootstrap.isIdentifiedID&&m!=null&&m!==p&&g===Bg)this.identify(p);else if(n.bootstrap.isIdentifiedID&&m!=null&&m!==p&&g===jg)xe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id($u()),b=n.bootstrap.isIdentifiedID?v:p;this.persistence.set_property(tl,n.bootstrap.isIdentifiedID?jg:Bg),this.register({distinct_id:p,$device_id:b})}}if(h)this.register_once({distinct_id:mk,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id($u());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(tl,Bg)}return ir(te,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?function(x,E){var S=x.config.segment;if(!S)return E();(function(_,k){var C=_.config.segment;if(!C)return k();var T=O=>{var R=()=>O.anonymousId()||$u();_.config.get_device_id=R,O.id()&&(_.register({distinct_id:O.id(),$device_id:R()}),_.persistence.set_property(tl,jg)),k()},A=C.user();"then"in A&&fl(A.then)?A.then(T):T(A)})(x,()=>{S.register((_=>{typeof Promise<"u"&&Promise.resolve||D2.warn("This browser does not have Promise support, and can not use the segment integration");var k=(C,T)=>{if(!T)return C;C.event.userId||C.event.anonymousId===_.get_distinct_id()||(D2.info("No userId set, resetting PostHog"),_.reset()),C.event.userId&&C.event.userId!==_.get_distinct_id()&&(D2.info("UserId set, identifying with PostHog"),_.identify(C.event.userId));var A=_.calculateEventProperties(T,C.event.properties);return C.event.properties=Object.assign({},A,C.event.properties),C};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:C=>k(C,C.event.event),page:C=>k(C,uv),identify:C=>k(C,R2),screen:C=>k(C,"$screen")}})(x)).then(()=>{E()})})}(this,()=>this.Yi()):this.Yi(),fl(this.config._onCapture)&&this.config._onCapture!==rO&&(xe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",x=>this.config._onCapture(x.event,x))),this.config.ip&&xe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||function(){return Zpe.apply(this,arguments)}().then(x=>{x&&this.register({[P2]:x})}).catch(rO),this}Ki(t){var n,r,i,o,s,a,l,c,u=performance.now(),d=he({},ka.__defaultExtensionClasses,this.config.__extensionClasses),f=[];d.featureFlags&&this.$i.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new d.featureFlags(this)),d.exceptions&&this.$i.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new d.exceptions(this)),d.historyAutocapture&&this.$i.push(this.historyAutocapture=new d.historyAutocapture(this)),d.tracingHeaders&&this.$i.push(this.tracingHeaders=new d.tracingHeaders(this)),d.siteApps&&this.$i.push(this.siteApps=new d.siteApps(this)),d.sessionRecording&&!t&&this.$i.push(this.sessionRecording=new d.sessionRecording(this)),this.config.disable_scroll_properties||f.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),d.autocapture&&this.$i.push(this.autocapture=new d.autocapture(this)),d.surveys&&this.$i.push(this.surveys=(i=this.surveys)!==null&&i!==void 0?i:new d.surveys(this)),d.logs&&this.$i.push(this.logs=(o=this.logs)!==null&&o!==void 0?o:new d.logs(this)),d.metrics&&this.$i.push(this.metrics=(s=this.metrics)!==null&&s!==void 0?s:new d.metrics(this)),d.conversations&&this.$i.push(this.conversations=(a=this.conversations)!==null&&a!==void 0?a:new d.conversations(this)),d.productTours&&this.$i.push(this.productTours=new d.productTours(this)),d.heatmaps&&this.$i.push(this.heatmaps=new d.heatmaps(this)),d.webVitalsAutocapture&&this.$i.push(this.webVitalsAutocapture=new d.webVitalsAutocapture(this)),d.exceptionObserver&&this.$i.push(this.exceptionObserver=new d.exceptionObserver(this)),d.deadClicksAutocapture&&this.$i.push(this.deadClicksAutocapture=new d.deadClicksAutocapture(this,u9e)),d.toolbar&&this.$i.push(this.toolbar=(l=this.toolbar)!==null&&l!==void 0?l:new d.toolbar(this)),d.experiments&&this.$i.push(this.experiments=(c=this.experiments)!==null&&c!==void 0?c:new d.experiments(this)),this.$i.forEac
857h(h=>{h.initialize&&f.push(()=>{h.initialize==null||h.initialize()})}),f.push(()=>{if(this.Xi){var h=this.Xi;this.Xi=void 0,this.Mr(h)}}),this.en(f,u)}en(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout(()=>{this.en(t,n)},0);var r=t.shift();if(r)try{r()}catch(o){xe.error("Error initializing extension:",o)}}var i=Math.round(performance.now()-n);this.register_for_session({[fpe]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[hpe]:i}),this.config.__preview_deferred_init_extensions&&xe.info("PostHog extensions initialized ("+i+"ms)")}Mr(t){var n;if(!Te||!Te.body)return xe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.Mr(t)},500);this.config.__preview_deferred_init_extensions&&(this.Xi=t),this.tn=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=lt(t.supportedCompression,Ro.GZipJS)?Ro.GZipJS:lt(t.supportedCompression,Ro.Base64)?Ro.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Hi?this.Hi:bj}),this.$i.forEach(r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(t))}Yi(){try{this.config.loaded(this)}catch(r){xe.critical("`loaded` function failed",r)}if(this.rn(),this.config.internal_or_test_user_hostname&&Dr!=null&&Dr.hostname){var t=Dr.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?t===n:n.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.Ni())&&this.nn()},1),this.sn=new jpe(this),this.sn.load()}rn(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Gi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&gk(this.__request_queue,t=>this.Qi(t)),this.__request_queue=[],this.rn()}_handle_unload(){var t,n,r,i,o;(t=this.surveys)==null||t.handlePageUnload==null||t.handlePageUnload(),(n=this.metrics)==null||n.flush("sendBeacon"),this.config.request_batching?(this.an()&&this.capture(I2),(r=this.logs)==null||r.flushLogs("sendBeacon"),(i=this.Gi)==null||i.unload(),(o=this.Ji)==null||o.unload()):this.an()&&this.capture(I2,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded?ime?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)?t.fireCallbackOnDrop&&(t.callback==null||t.callback({statusCode:429})):(t.transport=t.transport||this.config.api_transport,t.headers=he({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,(_e(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,i,o,s=he({},n);s.timeout=s.timeout||6e4;var a=(r=s.transport)!==null&&r!==void 0?r:"fetch";a==="sendBeacon"&&_e(s.compression)&&s.data&&(s.compression=Ro.Base64),s.url=kY(s.url,s.compression);var l=fT.filter(u=>!s.disableTransport||!u.transport||!s.disableTransport.includes(u.transport)),c=(i=(o=function(u,d){for(var f=0;u.length>f;f++)if(u[f].transport===a)return u[f]}(l))==null?void 0:o.method)!==null&&i!==void 0?i:l[0].method;if(!c)throw new Error("No available transport method");a!=="sendBeacon"&&s.data&&s.compression===Ro.GZipJS&&qWe&&typeof Promise<"u"&&!dT?T9e(s).then(u=>{c(u)}).catch(u=>{if(XG(u))return dT=!0,void c(he({},s,{compression:void 0,url:kY(n.url,void 0)}));(d=>{if(!d||typeof d!="object")return!1;var f="name"in d?String(d.name):"";return XG(d)||f===The})(u)&&(dT=!0),c(s)}):c(s)})(he({},t,{callback:n=>{var r,i;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(i=this.config).on_request_error)==null||r.call(i,n),t.callback==null||t.callback(n)}}))):t.fireCallbackOnDrop&&(t.callback==null||t.callback({statusCode:0}))}Qi(t){this.Ji?this.Ji.retriableRequest(t):this._send_request(t)}_execute_array(t){U2++;try{var n,r=[],i=[],o=[];gk(t,a=>{if(a)if(At(n=a[0]))o.push(a);else if(fl(a))try{a.call(this)}catch(l){xe.error("Error executing queued PostHog call",a,l)}else At(a)&&n==="alias"?r.push(a):At(a)&&n.indexOf("capture")!==-1&&fl(this[n])?o.push(a):i.push(a)});var s=function(a,l){gk(a,function(c){try{if(At(c[0])){var u=l;Cn(c,function(d){u=u[d[0]].apply(u,d.slice(1))})}else l[c[0]].apply(l,c.slice(1))}catch(d){xe.error("Error executing queued PostHog call",c,d)}})};s(r,this),s(i,this),s(o,this)}finally{U2--}}push(t){if(U2>0&&At(t)&&wn(t[0])){var n=ka.prototype[t[0]];fl(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,n,r){var i,o,s,a,l;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Gi){if(this.is_capturing())if(!_e
857(t)&&wn(t)){var c=!this.config.opt_out_useragent_filter&&this._is_bot();if(!c||this.config.__preview_capture_bot_pageviews){var u=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(u==null||!u.isRateLimited){n!=null&&n.$current_url&&!wn(n==null?void 0:n.$current_url)&&(xe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),t!=="$exception"||r!=null&&r.ln||xe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var d=new Date,f=(r==null?void 0:r.timestamp)||d,h=tY(r==null?void 0:r.uuid,$u),p={uuid:h,event:t,properties:this.calculateEventProperties(t,n||{},f,h)};t===uv&&this.config.__preview_capture_bot_pageviews&&c&&(p.event="$bot_pageview",p.properties.$browser_type="bot"),u&&(p.properties.$lib_rate_limit_remaining_tokens=u.remainingTokens),r!=null&&r.$set&&(p.$set=r==null?void 0:r.$set);var m=r==null?void 0:r.$unset;m&&(p.$unset=m);var g,v,b,w=this.un(r==null?void 0:r.$set_once,t!==sY,t===R2);if(w&&(p.$set_once=w),r!=null&&r._noTruncate||(o=this.config.properties_string_max_length,s=p,a=T=>wn(T)?T.slice(0,o):T,l=new Set,p=function T(A,O){return A!==Object(A)?a?a(A):A:l.has(A)?void 0:(l.add(A),At(A)?(R=[],gk(A,I=>{R.push(T(I))})):(R={},Cn(A,(I,F)=>{l.has(I)||(R[F]=T(I))})),R);var R}(s)),p.timestamp=f,_e(r==null?void 0:r.timestamp)||(p.properties.$event_time_override_provided=!0,p.properties.$event_time_override_system_time=d),t===Hu.DISMISSED||t===Hu.SENT){var x=n==null?void 0:n[F2.SURVEY_ID],E=n==null?void 0:n[F2.SURVEY_ITERATION];nme({id:x,current_iteration:E}),p.$set=he({},p.$set,{[(g={id:x,current_iteration:E},v=t===Hu.SENT?"responded":"dismissed",b="$survey_"+v+"/"+g.id,g.current_iteration&&g.current_iteration>0&&(b="$survey_"+v+"/"+g.id+"/"+g.current_iteration),b)]:!0})}else t===Hu.SHOWN&&(p.$set=he({},p.$set,{[F2.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===b9e.SHOWN){var S=n==null?void 0:n[bY.TOUR_TYPE];S&&(p.$set=he({},p.$set,{[bY.TOUR_LAST_SEEN_DATE+"/"+S]:new Date().toISOString()}))}var _=he({},p.properties.$set,p.$set);if(Rf(_)||this.setPersonPropertiesForFlags(_),!St(this.config.before_send)){var k=this.it(p);if(!k)return;(p=k).uuid=tY(p.uuid,$u)}this.qi.emit("eventCaptured",p);var C={method:"POST",url:(i=r==null?void 0:r._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:p,compression:"best-available",batchKey:r==null?void 0:r._batchKey,transport:r==null?void 0:r.transport};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Qi(C):this.Gi.enqueue(C),p}xe.critical("This capture call is ignored due to client rate limiting.")}}else xe.error("No event name provided to posthog.capture")}else xe.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",n=>t(n.event,n))}calculateEventProperties(t,n,r,i,o){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var s=o?void 0:this.persistence.remove_event_timer(t),a=he({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,this.Ni()&&(a.$cookieless_mode=!0),t==="$snapshot"){var l=he({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!wn(a.distinct_id)&&!eo(a.distinct_id)||XB(a.distinct_id))&&xe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var c,u=function(v,b,w,x){var E,S,_,k;if(x===void 0&&(x=!1),!rs)return{};var C,T,A,O,R,I,F,N,B,M=v?[...Gy,...b||[]]:[],L=function(z){for(var oe=0;JG.length>oe;oe++){var le=JG[oe],se=le[1],ue=le[0].exec(z),ce=ue&&(fl(se)?se(ue,z):se);if(ce)return ce}return["",""]}(rs),P=(C=typeof navigator<"u"?navigator:void 0)!=null&&C.brave?{brave:!0}:{},G={detectGoogleSearchApp:w},Z=Nn(xV({$os:L[0],$os_version:L[1],$browser:Zhe(rs,navigator.vendor,P,G),$device:eY(rs),$device_type:(A=rs,O={userAgentDataPlatform:(E=navigator)==null||(E=E.userAgentData)==null?void 0:E.platform,maxTouchPoints:(S=navigator)==null?void 0:S.maxTouchPoints,screenWidth:te==null||(_=te.screen)==null?void 0:_.width,screenHeight:te==null||(k=te.screen)==null?void 0:k.height,devicePixelRatio:te==null?void 0:te.devicePixelRatio},B=eY(A),B===Mhe||B===Rhe||B==="Kobo"||B==="Kindle Fire"||B===Khe?Wy:B===DE||B===ty||B===LE||B===QB?"Console":B===Dhe?"Wearable":B?Us:(O==null?void 0:O.userAgentDataPlatform)==="Android"&&((R=O==null?void 0:O.maxTouchPoints)!==null&&R!==void 0?R:0)>0?600>Math.min((I=O==null?void 0:O.screenWidth)!==null&&I!==void 0?I:0,(F=O==null?void 0:O.screenHeight)!==null&&F!==void 0?F:0)/((N=O==null?void 0:O.devicePixelRatio)!==null&&N!==void 0?N:1)?Us:Wy:"Desktop"),$timezone:Bpe(),$timezone_offset:g9e()}),{$current_url:jE(x?hh(Dr==null?void 0:Dr.href):Dr==null?void 0:Dr.href,M,zE),$host:Dr==null?void 0:Dr.host,$pathname:Dr==null?void 0:Dr.pathname,$raw_user_agent:rs.length>1e3?rs.substring(0,997)+"...":rs,$browser_version:fHe(rs,navigator.vendor,P,G),$browser_language:yY(),$browser_language_prefix:(T=yY(),typeof T=="string"?T.split("-")[0]:void 0),$screen_height:te==null?void 0:te.screen.height,$screen_width:te==null?void 0:te.screen.width,$viewport_height:te==null?void 0:te.innerHe
857ight,$viewport_width:te==null?void 0:te.innerWidth,$lib:nr.LIB_NAME,$lib_version:nr.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return nr.SDK_DIST_CHANNEL&&(Z.$sdk_dist_channel=nr.SDK_DIST_CHANNEL),Z}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var d=this.sessionManager.checkAndGetSessionAndWindowId(o,r.getTime()),f=d.windowId;a.$session_id=d.sessionId,a.$window_id=f}this.sessionPropsManager&&Nn(a,this.sessionPropsManager.getSessionProps());try{var h;this.sessionRecording&&Nn(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(h=this.Ji)==null?void 0:h.length}catch(v){a.$sdk_debug_error_capturing_properties=String(v)}if(this.requestRouter.region===Oj&&(a.$lib_custom_api_host=this.config.api_host),c=t!==uv||o?t!==I2||o?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),a=Nn(a,c),t===uv&&Te&&(a.title=Te.title),!_e(s)){var p=r.getTime()-s;a.$duration=parseFloat((p/1e3).toFixed(3))}rs&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=Nn({},u,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),At(this.config.property_denylist)?Cn(this.config.property_denylist,function(v){delete a[v]}):xe.error(rme+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var m=this.config.sanitize_properties;m&&(xe.error(IY),a=m(a,t));var g=this.hn();return a.$process_person_profile=g,g&&!o&&this.dn("_calculate_event_properties"),a}un(t,n,r){var i;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.hn()||this.Di&&!r)return t;var o=this.persistence.get_initial_props(),s=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),a=Nn({},o,s||{},t||{}),l=this.config.sanitize_properties;return l&&(xe.error(IY),a=l(a,"$set_once")),n&&(this.Di=!0),Rf(a)?void 0:a}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var i;(i=this.persistence)==null||i.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}cn(t,n){this.register({[t]:n})}getFeatureFlag(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(t)}getFeatureFlagResult(t,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(t,n)}getAllFeatureFlags(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.getAllFeatureFlags())!==null&&t!==void 0?t:[]}isFeatureEnabled(t,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(t,n)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,n,r){var i;(i=this.featureFlags)==null||i.updateFlags(t,n,r)}updateEarlyAccessFeatureEnrollment(t,n,r){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(t,n,r)}getEarlyAccessFeatures(t,n,r){var i;return n===void 0&&(n=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.qi.on(t,n)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:ew}),()=>{})}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(t,n):t([],{isLoaded:!1,error:ew})}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,n):t([],{isLoaded:!1,error:ew})}renderSurvey(t,n){var r;(r=this.surveys)==null||r.renderSurvey(t,n)}displaySurvey(t,n){var r;n===void 0&&(n=F9e),(r=this.surveys)==null||r.displaySurvey(t,n)}cancelPendingSurvey(t){var n;(n=this.surveys)==null||n.cancelPendingSurvey(t)}canRenderSurvey(t){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(t))!==null&&n!==void 0?n:{visible:!1,disabledReason:ew}}canRenderSurveyAsync(t,n){var r,i;return n===void 0&&(n=!1),(r=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(t,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:ew})}vn(t){return!t||XB(t)?(xe.critical("Unique user id has not been set in posthog.identify"),!1):t===mk?(xe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(xe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
857ot a hardcoded string.'),!1)}identify(t,n,r){if(!this.__loaded||!this.persistence)return xe.uninitializedWarning("posthog.identify");if(eo(t)&&(t=t.toString(),xe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.vn(t)&&this.dn("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:t}),this.get_property(HA)||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),t!==i&&t!==this.get_property(Yw)&&(this.unregister(Yw),this.register({distinct_id:t}));var o,s=(this.persistence.get_property(tl)||Bg)===Bg;t!==i&&s?(this.persistence.set_property(tl,jg),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture(R2,{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.Ui=AY(t,n,r),(o=this.featureFlags)==null||o.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Rx))}}setPersonProperties(t,n){if((t||n)&&this.dn("posthog.setPersonProperties")){var r=AY(this.get_distinct_id(),t,n);this.Ui!==r?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!0),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.Ui=r):xe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(t){var n,r=(At(t)?t:[t]).filter(i=>wn(i)&&i.length>0);r.length!==0&&this.dn("posthog.unsetPersonProperties")&&((n=this.featureFlags)==null||n.unsetPersonPropertiesForFlags(r,!0),this.capture("$set",{$unset:r}),this.Ui=null)}group(t,n,r){if(t&&n){var i=this.getGroups(),o=i[t]!==n;if(o&&this.resetGroupPropertiesForFlags(t),this.register({$groups:he({},i,{[t]:n})}),o||r){var s={$group_type:t,$group_key:n};r&&(s.$group_set=r),this.capture(sY,s)}r&&this.setGroupPropertiesForFlags({[t]:r}),o&&!r&&this.reloadFeatureFlags()}else xe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(t){var n;t===void 0&&(t=!0),(n=this.featureFlags)==null||n.resetPersonPropertiesForFlags(t)}setGroupPropertiesForFlags(t,n){var r;n===void 0&&(n=!0),this.dn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(t,n))}resetGroupPropertiesForFlags(t){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(t)}reset(t){var n,r,i,o,s,a,l,c,u,d;if(xe.info("reset"),!this.__loaded)return xe.uninitializedWarning("posthog.reset");var f,h=this.get_property(HA),p=this.get_property(P2),m=this.get_property(Bp);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),_e(m)||(f=this.persistence)==null||f.register({[Bp]:m}),(i=this.surveys)==null||i.reset(),(o=this.sn)==null||o.stop(),(s=this.featureFlags)==null||s.reset(),(a=this.conversations)==null||a.reset(),(l=this.logs)==null||l.reset(),(c=this.metrics)==null||c.reset(),(u=this.persistence)==null||u.set_property(tl,Bg),(d=this.sessionManager)==null||d.resetSessionId(),this.Ui=null,this.config.cookieless_mode===Wu)this.register_once({distinct_id:mk,$device_id:null},"");else{var g=this.config.get_device_id($u());this.register_once({distinct_id:g,$device_id:t?g:h},""),t||_e(p)||this.register({[P2]:p})}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}shutdown(t){var n=this;return Or(function*(){var r,i,o,s,a;n.__loaded?((r=n.logs)==null||r.flushLogs("sendBeacon"),(i=n.metrics)==null||i.flush("sendBeacon"),(o=n.Gi)==null||o.unload(),(s=n.Ji)==null||s.unload(),(a=n.featureFlags)==null||a.destroy()):xe.uninitializedWarning("posthog.shutdown")})()}setIdentity(t,n){var r;this.config.identity_distinct_id=t,this.config.identity_hash=n,this.alias(t),(r=this.conversations)==null||r.fn()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.pn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var n=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=n.sessionStartTimestamp,i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n.sessionId);if(t!=null&&t.withTimestamp&&r){var o,s=(o=t.timestampLookBack)!==null&&o!==void 0?o:10;if(!r)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-s,0)}return i}alias(t,n){return t===this.get_property(ope)?(xe.critical("Attempting to create alias for existing People user - aborting."),-2):this.dn("posthog.alias")?(_e(n)&&(n=this.get_distinct_id()),t!==n?(this.cn(Yw,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(xe.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=he({},this.config);if(Wn(t)){var r,i,o,s,a,l,c,u,d,f,h;Nn(this.config,MY(t));var p=this.Zi();(r=this.persistence)==null||r.update_config(this.config,n,p),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new L2(he({},this.config,{persistence:"sessionStorage"}),p,!1);var m=this.zi(this.config.debug);$c(m)&&(this.config.debug=m),$c(this.config.debug)&&(this.config.debug?(nr.DEBUG=!0,kn.N()&&kn.q("ph_debug",!0),xe.info("set_config",{config:t,oldConfig:n,newConfig:he({},this.config)})):(nr.DEBUG=!1,kn.N()&&kn.P("ph_debug"))),(i=this.exceptionObserver)==null||i.onConfigChange(),(o=this.exceptions)==null||o.onConfigChange(),(s=this.sessionRecording)==null||s.startIfEnabledOrStop(),(a=this.tracingHeaders)==null||a.startIfEnabledOrStop(),(l=this.autocapture)==null||l.startIfEnabled(),(c=this.heatmaps)==null||c.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(d=this.deadClicksAutocapture)==null||d.startIfEnabledOrStop(),(f=this.surveys)==null||f.loadIfEnabled(),this.gn(),(h=this.externalIntegrations)==null||h.startIfEnabledOrStop()}}_overrideSDKInfo(t,n){nr.LIB_NAME=t,nr.LIB_VERSION=n}startSessionRecording(t){var n,r,i,o,s,a=t===!0,l={sampling:a||!(t==null||!t.sampling),linked_flag:a||!(t==null||!t.linked_flag),url_trigger:a||!(t==null||!t.url_trigger),event_trigger:a||!(t==null||!t.event_trigger)};Object.values(l).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),l.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),l.linked_flag&&((i=this.sessionRecording)==null||i.overrideLinkedFlag()),l.url_trigger&&((o=this.sessionRecording)==null||o.overrideTrigger("url")),l.event_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(t,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(he({},i,n))}}addExceptionStep(t,n){var r;(r=this.exceptions)==null||r.addExceptionStep(t,n)}captureLog(t){var n;(n=this.logs)==null||n.captureLog(t)}get logger(){var t,n;return(t=(n=this.logs)==null?void 0:n.logger)!==null&&t!==void 0?t:ka.mn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(t))!==null&&n!==void 0&&n}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:dv;return n!==dv&&(n=dv+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(tl))===jg||((n=this.sessionPersistence)==null?void 0:n.get_property(tl))===jg}hn(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===bj&&!this._isIdentified()&&Rf(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Yw])&&((n=this.persistence)==null||(n=n.props)==null||!n[GA]))}an(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.hn()||this.dn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.dn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}dn(t){return this.config.person_profiles==="never"?(xe.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.cn(GA,!0),!0)}Zi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==_p)}gn(){var t,n,r,i,o=this.Zi();return((t=this.persistence)==null?void 0:t.ir)!==o&&((r=this.persistence)==null||r.set_disabled(o)),((n=this.sessionPersistence)==null?void 0:n.ir)!==o&&((i=this.sessionPersistence)==null||i.set_disabled(o)),o}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==Wu){if(this.Ni()){var r,i,o,s,a;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewM
857anager)==null||i.destroy(),this.sessionManager=new TY(this),this.pageViewManager=new vY(this),this.persistence&&(this.sessionPropsManager=new CY(this,this.sessionManager,this.persistence));var l,c=(o=(s=this.config.__extensionClasses)==null?void 0:s.sessionRecording)!==null&&o!==void 0?o:(a=ka.__defaultExtensionClasses)==null?void 0:a.sessionRecording;c&&(this.sessionRecording=this.Ai(this.sessionRecording,new c(this)),this.tn&&((l=this.sessionRecording)==null||l.onRemoteConfig==null||l.onRemoteConfig(this.tn)))}var u,d;this.consent.optInOut(!0),this.gn(),this.rn(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==_p&&((u=this.surveys)==null||u.loadIfEnabled()),(_e(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((d=t==null?void 0:t.captureEventName)!==null&&d!==void 0?d:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.nn()}else xe.warn(PY)}opt_out_capturing(){var t,n,r;this.config.cookieless_mode!==Wu?(this.config.cookieless_mode===_p&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.gn(),this.config.cookieless_mode===_p&&(this.register({distinct_id:mk,$device_id:null}),(t=this.sessionRecording)==null||t.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.nn(),this.rn())):xe.warn(PY)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Wu||(this.config.cookieless_mode===_p?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.gn()}_is_bot(){return No?Xpe(No,this.config.custom_blocked_useragents):void 0}nn(){Te&&(Te.visibilityState==="visible"?this.ji||(this.ji=!0,this.capture(uv,{title:Te.title},{send_instantly:!0}),this.Bi&&(Te.removeEventListener(YA,this.Bi),this.Bi=null)):this.Bi||(this.Bi=this.nn.bind(this),ir(Te,YA,this.Bi)))}debug(t){t===!1?(te==null||te.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(te==null||te.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Rr(){var t,n,r,i,o,s,a=this.Wi||{};return"advanced_disable_flags"in a?!!a.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(xe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",i=xe,o=(n="advanced_disable_flags")in(t=a)&&!St(t[n]),s=r in t&&!St(t[r]),o?t[n]:!!s&&(i&&i.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[r]))}it(t){var n;if(St(this.config.before_send))return t;var r=Object.keys((n=t.properties)!==null&&n!==void 0?n:{}).filter(eHe),i=At(this.config.before_send)?this.config.before_send:[this.config.before_send],o=t;for(var s of i){if(o=s(o),St(o)){var a="Event '"+t.event+"' was rejected in beforeSend function";return JWe(t.event)?xe.warn(a+". This can cause unexpected behavior."):xe.info(a),null}o.properties&&!Rf(o.properties)||xe.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}for(var l of r)if(o.properties&&St(o.properties[l]))return xe.warn("Event '"+t.event+"' had its '"+l+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return o}getPageViewId(){var t;return(t=this.pageViewManager.zt)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}zi(t){var n=$c(t)&&!t,r=kn.N()&&kn.A("ph_debug")==="true";return!n&&(!!r||t)}}ka.__defaultExtensionClasses={},ka.mn=(()=>{var e=()=>{};return{trace:e,debug:e,info:e,warn:e,error:e,fatal:e}})(),function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=UHe(e.prototype[t[n]])}(ka,["identify"]);class NY{constructor(t){this.disabled=t===!1;var n=Wn(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,r){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<this.thresholdPx&&this.timeoutMs>r-i.timestamp){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var V2="$copy_autocapture",W2=Xn("[AutoCapture]");function H2(e,t){return t.length>e?t.slice(0,e)+"...":t}function W9e(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!ph(t));return t}function H9e(e,t){var n,r,i=t.e,o=t.maskAllElementAttributes,s=t.maskAllText,a=t.elementAttributeIgnoreList,l=t.elementsC
857hainAsString,c=t.disableCaptureUrlHashes;if(!ph(e))return{props:{}};for(var u=[e],d=new Set([e]),f=e;f.parentNode&&!$s(f,"body")&&wpe>u.length;)if(bpe(f.parentNode)){var h=f.parentNode.host;if(d.has(h))break;d.add(h),u.push(h),f=h}else{if(!ph(f.parentNode)||d.has(f.parentNode))break;d.add(f.parentNode),u.push(f.parentNode),f=f.parentNode}var p,m,g=[],v={},b=!1,w=!1;if(Cn(u,k=>{var C=xj(k);if($s(k,"a")){var T=k.getAttribute("href");b=!!(C&&T&&Mx(T))&&(c?hh(T):T)}lt(QA(k),"ph-no-capture")&&(w=!0),g.push(function(O,R,I,F,N){N===void 0&&(N=!1);var B=O.tagName.toLowerCase(),M={tag_name:B};SV.indexOf(B)>-1&&!I&&(M.$el_text=B.toLowerCase()==="a"||B.toLowerCase()==="button"?H2(1024,pY(O)):H2(1024,FE(O)));var L=QA(O);L.length>0&&(M.classes=L.filter(function(z){return z!==""})),Cn(O.attributes,function(z){var oe;if((!kpe(O)||["name","id","class","aria-label"].indexOf(z.name)!==-1)&&(F==null||!F.includes(z.name))&&!R&&Mx(z.value)&&(!wn(oe=z.name)||oe.substring(0,10)!=="_ngcontent"&&oe.substring(0,7)!=="_nghost")){var le=z.value;z.name==="class"&&(le=EV(le).join(" ")),M["attr__"+z.name]=H2(1024,z.name==="href"&&N?hh(le):le)}});for(var P=1,G=1,Z=O;Z=W9e(Z);)P++,Z.tagName===O.tagName&&G++;return M.nth_child=P,M.nth_of_type=G,M}(k,o,s,a,c));var A=function(O){if(!xj(O))return{};var R={};return Cn(O.attributes,function(I){if(I.name&&I.name.indexOf("data-ph-capture-attribute")===0){var F=I.name.replace("data-ph-capture-attribute-",""),N=I.value;F&&N&&Mx(N)&&(R[F]=N)}}),R}(k);Nn(v,A)}),w)return{props:{},explicitNoCapture:w};if(s||(g[0].$el_text=$s(e,"a")||$s(e,"button")?pY(e):FE(e)),b){var x,E;g[0].attr__href=b;var S=(x=BE(b))==null?void 0:x.host,_=te==null||(E=te.location)==null?void 0:E.host;S&&_&&S!==_&&(p=b)}return{props:Nn({$event_type:i.type,$ce_version:1},l?{}:{$elements:g},{$elements_chain:(m=g,function(k){return k.map(C=>{var T,A,O="";if(C.tag_name&&(O+=C.tag_name),C.attr_class)for(var R of(C.attr_class.sort(),C.attr_class))O+="."+R.replace(/"/g,"");var I=he({},C.text?{text:C.text}:{},{"nth-child":(T=C.nth_child)!==null&&T!==void 0?T:0,"nth-of-type":(A=C.nth_of_type)!==null&&A!==void 0?A:0},C.href?{href:C.href}:{},C.attr_id?{attr_id:C.attr_id}:{},C.attributes),F={};return uT(I).sort((N,B)=>N[0].localeCompare(B[0])).forEach(N=>{var B=N[1];return F[mY(N[0].toString())]=mY(B.toString())}),(O+=":")+uT(F).map(N=>N[0]+'="'+N[1]+'"').join("")}).join(";")}(function(k){return k.map(C=>{var T,A,O={text:(T=C.$el_text)==null?void 0:T.slice(0,400),tag_name:C.tag_name,href:(A=C.attr__href)==null?void 0:A.slice(0,2048),attr_class:l9e(C),attr_id:C.attr__id,nth_child:C.nth_child,nth_of_type:C.nth_of_type,attributes:{}};return uT(C).filter(R=>R[0].indexOf("attr__")===0).forEach(R=>O.attributes[R[0]]=R[1]),O})}(m)))},(n=g[0])!=null&&n.$el_text?{$el_text:(r=g[0])==null?void 0:r.$el_text}:{},p&&i.type==="click"?{$external_click_url:p}:{},v)}}var tw=Xn("[ExceptionAutocapture]"),DY=()=>{},K9e=Xn("[TracingHeaders]"),cp=Xn("[Web Vitals]"),LY=9e5,$Y="disabled",FY="lazy_loading",nw="awaiting_config",Ek="missing_config";Xn("[SessionRecording]"),Xn("[SessionRecording]");var Pj="[SessionRecording]",vu=Xn(Pj),q9e=Xn("[Heatmaps]");function BY(e){return Wn(e)&&"clientX"in e&&"clientY"in e&&eo(e.clientX)&&eo(e.clientY)}var K2=Xn("[Product Tours]"),q2=e=>{var t;return!e.config.disable_product_tours&&!((t=e.persistence)==null||!t.get_property(yV))},G9e=["$set_once","$set"],tc=Xn("[SiteApps]"),jY="Error while initializing PostHog app with config id ";function Vg(e,t,n){if(St(e))return!1;switch(n){case"exact":return e===t;case"contains":var r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class Y9e{constructor(t){this.yn=new AV,this.bn=(n,r)=>this._n(n,r)&&this.wn(n,r)&&this.xn(n,r)&&this.kn(n,r),this._n=(n,r)=>r==null||!r.event||(n==null?void 0:n.event)===(r==null?void 0:r.event),this._instance=t,this.Sn=new Set,this.Cn=new Set}init(){var t,n;_e((t=this._instance)==null?void 0:t._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook((r,i)=>{this.on(r,i)})}register(t){var n,r;if(!_e((n=this._instance)==null?void 0:n._addCaptureHook)&&(t.forEach(s=>{var a,l;(a=this.Cn)==null||a.add(s),(l=s.steps)==null||l.forEach(c=>{var u;(u=this.Sn)==null||u.add((c==null?void 0:c.event)||"")})}),(r=this._instance)!=null&&r.autocapture)){var i,o=new Set;t.forEach(s=>{var a;(a=s.steps)==null||a.forEach(l=>{l!=null&&l.selector&&o.add(l==null?void 0:l.selector)})}),(i=this._instance)==null||i.autocapture.setElementSelectors(o)}}on(t,n){var r;n!=null&&t.length!=0&&(this.Sn.has(t)||this.Sn.has(n==null?void 0:n.event))&&this.Cn&&((r=this.Cn)==null?void 0:r.size)>0&&this.Cn.forEach(i=>
857{this.Tn(n,i)&&this.yn.emit("actionCaptured",i.name)})}In(t){this.onAction("actionCaptured",n=>t(n))}Tn(t,n){if((n==null?void 0:n.steps)==null)return!1;for(var r of n.steps)if(this.bn(t,r))return!0;return!1}onAction(t,n){return this.yn.on(t,n)}wn(t,n){if(n!=null&&n.url){var r,i=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!i||typeof i!="string"||!Vg(i,n.url,n.url_matching||"contains"))return!1}return!0}xn(t,n){return!!this.Mn(t,n)&&!!this.En(t,n)&&!!this.Rn(t,n)}Mn(t,n){var r;if(n==null||!n.href)return!0;var i=this.Pn(t);if(i.length>0)return i.some(a=>Vg(a.href,n.href,n.href_matching||"exact"));var o,s=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";return!!s&&Vg((o=s.match(/(?::|")href="(.*?)"/))?o[1]:"",n.href,n.href_matching||"exact")}En(t,n){var r;if(n==null||!n.text)return!0;var i=this.Pn(t);if(i.length>0)return i.some(c=>Vg(c.text,n.text,n.text_matching||"exact")||Vg(c.$el_text,n.text,n.text_matching||"exact"));var o,s,a,l=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";
857return!!l&&(o=function(c){for(var u,d=[],f=/(?::|")text="(.*?)"/g;!St(u=f.exec(c));)d.includes(u[1])||d.push(u[1]);return d}(l),s=n.text,a=n.text_matching||"exact",o.some(c=>Vg(c,s,a)))}Rn(t,n){var r,i;if(n==null||!n.selector)return!0;var o=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(o!=null&&o.includes(n.selector))return!0;var s=(t==null||(i=t.properties)==null?void 0:i.$elements_chain)||"";if(n.selector_regex&&s)try{return new RegExp(n.selector_regex).test(s)}catch{return!1}return!1}Pn(t){var n;return(t==null||(n=t.properties)==null?void 0:n.$elements)==null?[]:t==null?void 0:t.properties.$elements}kn(t,n){return n==null||!n.properties||n.properties.length===0||Jpe(n.properties.reduce((r,i)=>{var o=At(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return r[i.key]={values:o,operator:i.operator||"exact"},r},{}),t==null?void 0:t.properties)}}class X9e{constructor(t){this.On=[],this._instance=t,this.Ln=new Map,this.Fn=new Map,this.An=new Map}$n(t,n){return!!t&&Jpe(t.propertyFilters,n==null?void 0:n.properties)}Nn(t,n){var r=new Map;return t.forEach(i=>{var o;(o=i.conditions)==null||(o=o[n])==null||(o=o.values)==null||o.forEach(s=>{if(s!=null&&s.name){var a=r.get(s.name)||[];a.push(i.id),r.set(s.name,a)}})}),r}Dn(t,n,r){var i=(r===Y0.Activation?this.Ln:this.Fn).get(t),o=[];return this.qn(s=>{o=s.filter(a=>i==null?void 0:i.includes(a.id))}),o.filter(s=>{var a,l=(a=s.conditions)==null||(a=a[r])==null||(a=a.values)==null?void 0:a.find(c=>c.name===t);return this.$n(l,n)})}register(t){var n;_e((n=this._instance)==null?void 0:n._addCaptureHook)||(this.jn(t),this.Bn(t))}Bn(t){var n=t.filter(r=>{var i,o;return((i=r.conditions)==null?void 0:i.actions)&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0});n.length!==0&&(this.Hn==null&&(this.Hn=new Y9e(this._instance),this.Hn.init(),this.Hn.In(r=>{this.onAction(r)})),n.forEach(r=>{var i,o,s,a,l;r.conditions&&(i=r.conditions)!=null&&i.actions&&(o=r.conditions)!=null&&(o=o.actions)!=null&&o.values&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0&&((a=this.Hn)==null||a.register(r.conditions.actions.values),(l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach(c=>{if(c&&c.name){var u=this.An.get(c.name);u&&u.push(r.id),this.An.set(c.name,u||[r.id])}}))}))}jn(t){var n,r=t.filter(o=>{var s,a;return((s=o.conditions)==null?void 0:s.events)&&((a=o.conditions)==null||(a=a.events)==null||(a=a.values)==null?void 0:a.length)>0}),i=t.filter(o=>{var s,a;return((s=o.conditions)==null?void 0:s.cancelEvents)&&((a=o.conditions)==null||(a=a.cancelEvents)==null||(a=a.values)==null?void 0:a.length)>0});r.length===0&&i.length===0||((n=this._instance)==null||n._addCaptureHook((o,s)=>{this.onEvent(o,s)}),this.Ln=this.Nn(t,Y0.Activation),this.Fn=this.Nn(t,Y0.Cancellation))}onEvent(t,n){var r,i,o=this.Un(),s=(n==null||(r=n.properties)==null?void 0:r.$survey_id)||(n==null||(i=n.properties)==null?void 0:i.$product_tour_id);if(s&&this.getActivatedIds().includes(s)){var a=this.zn(t,s);if(a==="consume")return o.info("event consumed activated item, removing it",{event:t,itemId:s}),void this.Wn([s]);if(a==="persist")return o.info("shown item promoted to persisted activation",{event:t,itemId:s}),void this.Vn(s)}if(this.Fn.has(t)){var l=this.Dn(t,n,Y0.Cancellation);l.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:l.map(u=>u.id)}),this.Wn(l.map(u=>u.id)),l.forEach(u=>this.Zn(u.id)))}if(this.Ln.has(t)){o.info("event name matched",{event:t,eventPayload:n,items:this.Ln.get(t)});var c=this.Dn(t,n,Y0.Activation);this.Gn(c.map(u=>u.id))}}onAction(t){this.An.has(t)&&this.Gn(this.An.get(t)||[])}Gn(t){t.length!==0&&(this.On=[...new Set([...this.On,...t])],this.Un().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Vn(t){this.On=this.On.filter(r=>r!==t);var n=this.Qn();n.includes(t)||this.Jn([...n,t])}Wn(t){var n=new Set(t);this.On=this.On.filter(o=>!n.has(o));var r=this.Qn(),i=r.filter(o=>!n.has(o));i.length!==r.length&&this.Jn(i)}Qn(){var t,n=this.Kn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[]}getActivatedIds(){return[...new Set([...this.Qn(),...this.On])].filter(t=>!this.Yn(t))}reset(){this.On=[],this.Qn().length>0&&this.Jn([])}
857getEventToItemsMap(){return this.Ln}Xn(){return this.Hn}}class Z9e extends X9e{constructor(t){super(t)}Kn(){return fj}es(){return Hu.SHOWN}qn(t){var n;(n=this._instance)==null||n.getSurveys(t)}Zn(t){var n;(n=this._instance)==null||n.cancelPendingSurvey(t)}Un(){return vn}Jn(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[fj]:t})}Yn(){return!1}zn(t,n){var r;this.qn(o=>{r=o.find(s=>s.id===n)});var i=!r||function(o){var s;return eme(o)&&!((s=o.conditions)==null||(s=s.events)==null||!s.repeatedActivation)||o.schedule==="always"}(r);return i?t===Hu.SHOWN?"consume":"ignore":t===Hu.SHOWN?"persist":t===Hu.DISMISSED||t===Hu.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var G2="SDK is not enabled or survey functionality is not yet loaded",zY="Disabled. Not loading surveys.",Q9e=te!=null&&te.location?JA(te.location.hash,"__posthog")||JA(location.hash,"state"):null,UY="_postHogToolbarParams",VY=Xn("[Toolbar]"),Kr=Xn("[FeatureFlags]"),up=Xn("[FeatureFlags]",{debugEnabled:!0}),Y2=`" failed. Feature flags didn't load in time.`,WY=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},HY=e=>{var t={};for(var n of uT(e||{})){var r=n[1];r&&(t[n[0]]=r)}return t},yu=Xn("[Error tracking]"),KY="Refusing to render web experiment since the viewer is a likely bot",J9e={icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>nO(t,e),not_regex:(e,t)=>!nO(t,e),exact:(e,t)=>t===e,is_not:(e,t)=>t!==e};class ao{get Se(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments(i=>{ao.ts("retrieved web experiments from the server"),n.rs=new Map,i.forEach(o=>{if(o.feature_flag_key){var s;n.rs&&(ao.ts("setting flag key ",o.feature_flag_key," to web experiment ",o),(s=n.rs)==null||s.set(o.feature_flag_key,o));var a=n._instance.getFeatureFlag(o.feature_flag_key);wn(a)&&o.variants[a]&&n.ns(o.name,a,o.variants[a].transforms)}else if(o.variants)for(var l in o.variants){var c=o.variants[l];ao.ss(c,n._instance)&&n.ns(o.name,l,c.transforms)}})},r)},this._instance=t,this._instance.onFeatureFlags(r=>{this.onFeatureFlags(r)})}initialize(){}onFeatureFlags(t){if(this._is_bot())ao.ts(KY);else if(!this.Se.disable_web_experiments){if(St(this.rs))return this.rs=new Map,this.loadIfEnabled(),void this.previewWebExperiment();ao.ts("applying feature flags",t),t.forEach(n=>{var r;if(this.rs&&(r=this.rs)!=null&&r.has(n)){var i,o=this._instance.getFeatureFlag(n),s=(i=this.rs)==null?void 0:i.get(n);o&&s!=null&&s.variants[o]&&this.ns(s.name,o,s.variants[o].transforms)}})}}previewWebExperiment(){var t=ao.getWindowLocation();if(t!=null&&t.search){var n=qy(t==null?void 0:t.search,"__experiment_id"),r=qy(t==null?void 0:t.search,"__experiment_variant");n&&r&&(ao.ts("previewing web experiments "+n+" && "+r),this.getWebExperiments(i=>{this.os(parseInt(n),r,i)},!1,!0))}}loadIfEnabled(){this.Se.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this.Se.disable_web_experiments&&!r)return t([]);var i=this._instance.get_property("$web_experiments");if(i&&!n)return t(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Se.token),method:"GET",callback:o=>t(o.statusCode===200&&o.json&&o.json.experiments||[])})}os(t,n,r){var i=r.filter(o=>o.id===t);i&&i.length>0&&(ao.ts("Previewing web experiment ["+i[0].name+"] with variant ["+n+"]"),this.ns(i[0].name,n,i[0].variants[n].transforms))}static ss(t,n){return!St(t.conditions)&&ao.ls(t,n)&&ao.us(t)}static ls(t,n){var r;if(St(t.conditions)||St((r=t.conditions)==null?void 0:r.url))return!0;var i=ao.getWindowLocation();if(i){var o,s,a,l=vpe(n,i.href);return(o=t.conditions)==null||!o.url||J9e[(s=(a=t.conditions)==null?void 0:a.urlMatchType)!==null&&s!==void 0?s:"icontains"](t.conditions.url,l)}return!1}
857static getWindowLocation(){return te==null?void 0:te.location}static us(t){var n;if(St(t.conditions)||St((n=t.conditions)==null?void 0:n.utm))return!0;var r=Mpe();if(r.utm_source){var i,o,s,a,l,c,u,d,f=(i=t.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((o=t.conditions)==null||(o=o.utm)==null?void 0:o.utm_campaign)==r.utm_campaign,h=(s=t.conditions)==null||(s=s.utm)==null||!s.utm_source||((a=t.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==r.utm_source,p=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_medium||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_medium)==r.utm_medium,m=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_term||((d=t.conditions)==null||(d=d.utm)==null?void 0:d.utm_term)==r.utm_term;return f&&p&&m&&h}return!1}static ts(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];xe.info("[WebExperiments] "+t,r)}ns(t,n,r){this._is_bot()?ao.ts(KY):n!=="control"?r.forEach(i=>{if(i.selector){var o;ao.ts("applying transform of variant "+n+" for experiment "+t+" ",i);var s=(o=document)==null?void 0:o.querySelectorAll(i.selector);s==null||s.forEach(a=>{var l=a;i.html&&(l.innerHTML=i.html),i.css&&l.setAttribute("style",i.css)})}}):ao.ts("Control variants leave the page unmodified.")}_is_bot(){return No&&this._instance?Xpe(No,this.Se.custom_blocked_useragents):void 0}}var la=Xn("[Conversations]"),dp="Conversations not available yet.",qY="console",PR={featureFlags:class{constructor(e){this.hs=!1,this.ds=!1,this.cs=!1,this.vs=!1,this.fs=!1,this.ps=!1,this.gs=!1,this.ys=!1,this.bs=0,this._s=()=>{var t=this.ws();this.bs=0,t&&this.reloadFeatureFlags()},this._instance=e,this.featureFlagEventHandlers=[],te&&ir(te,"online",this._s)}destroy(){te==null||te.removeEventListener("online",this._s)}get Se(){return this._instance.config}get ri(){return this._instance.persistence}xs(e){return this._instance.get_property(e)}ks(){var e,t;return(e=(t=this.ri)==null?void 0:t.sr(this.Se.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}Ss(){return!!this.ks()&&(this.ys||this.cs||(this.ys=!0,Kr.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Cs(){var e,t=(e=this.Se.evaluation_contexts)!==null&&e!==void 0?e:this.Se.evaluation_environments;return!this.Se.evaluation_environments||this.Se.evaluation_contexts||this.gs||(Kr.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.gs=!0),t!=null&&t.length?t.filter(n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||Kr.error("Invalid evaluation context found:",n,"Expected non-empty string"),r}):[]}Ts(){return this.Cs().length>0}Is(){var e=this.Se.flag_keys;if(!_e(e)){if(At(e))return e.filter(t=>{var n=t&&typeof t=="string"&&t.trim().length>0;return n||Kr.error("Invalid flag key found:",t,"Expected non-empty string"),n});Kr.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,n=this._instance.config,r=(e=(t=n.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(r).length){var i,o,s=(i=(o=n.bootstrap)==null?void 0:o.featureFlagPayloads)!==null&&i!==void 0?i:{},a=Object.keys(r).filter(c=>!!r[c]).reduce((c,u)=>(c[u]=r[u]||!1,c),{}),l=Object.keys(s).filter(c=>a[c]).reduce((c,u)=>(s[u]&&(c[u]=s[u]),c),{});this.receivedFeatureFlags({featureFlags:a,featureFlagPayloads:l})}}updateFlags(e,t,n){var r,i,o=n!=null&&n.merge&&(r=this.xs(Rp))!==null&&r!==void 0?r:{},s=n!=null&&n.merge&&(i=this.xs(cT))!==null&&i!==void 0?i:{},a=he({},o,e),l=he({},s,t),c={};for(var u of Object.entries(a)){var d=u[0],f=u[1];c[d]={key:d,enabled:KG(f),variant:qG(f),reason:void 0,metadata:_e(l==null?void 0:l[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.ds}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.xs(cj),t=this.xs(Su),n=this.xs(cv);if(!n&&!t)return e||{};var r=Nn({},e||{}),i=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var o of i){var s,a,l=r[o],c=t==null?void 0:t[o],u=_e(c)?(s=l==null?void 0:l.enabled)!==null&&s!==void 0&&s:!!c,d=_e(c)?l.variant:typeof c=="string"?c:void 0,f=n==null?void 0:n[o],h=he({},l,{enabled:u,variant:u?d??(l==null?void 0:l.variant):void 0});u!==(l==null?void 0:l.enabled)&&(h.original_enabled=l==null?void 0:l.enabled),d!==(l==null?void 0:l.variant)&&(h.original_variant=l==null?void 0:l.variant),f&&(h.metadata=he({},l==null?void 0:l.metadata,{payload:f,original_payload:l==null||(a=l.metadata)==null?void 0:a.payload})),r[o]=h}return this.hs||(Kr.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.hs=!0),r}getAllFeatureFlags(){var e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(n=>{var r=e[n];return{key:n,enabled:KG(r),variant:qG(r),payload:HG(t[n])}})}getFlagVariants(){var e=this.xs(Rp),t=this.xs(Su);if(!t)return e||{};for(var n=Nn({},e),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.hs||(Kr.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.hs=!0),n}getFlagPayloads(){var e=this.xs(cT),t=this.xs(cv);if(!t)return e||{};for(var n=Nn({},e||{}),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.hs||(Kr.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.hs=!0),n}reloadFeatureFlags(){this.vs||this.Se.advanced_disable_feature_flags||this.ws()||this.Ms||(this._instance.qi.emit("featureFlagsReloading",!0),this.Ms=setTimeout(()=>{this.Es()},5))}Rs(){clearTimeout(this.Ms),this.Ms=void 0}ensureFlagsLoaded(){this.ds||this.cs||this.Ms||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.vs=e}Es(e){var t;if(this.Rs(),!this._instance.Rr()&&!this.ws())if(this.cs)this.fs=!0;else{var n=this.Se.token,r=this.xs(HA),i={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:he({},((t=this.ri)==null?void 0:t.get_initial_props())||{},this.xs(Ep)||{}),group_properties:this.xs(Sp),timezone:Bpe()};Uo(r)||_e(r)||(i.$device_id=r),(e!=null&&e.disableFlags||this.Se.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.Ts()&&(i.evaluation_contexts=this.Cs());var o=this.Is();_e(o)||(i.flag_keys=o);var s=!!this.Se.advanced_only_evaluate_survey_feature_flags,a=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Se.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.cs=!0,this._instance._send_request({method:"POST",url:a,data:i,compression:this.Se.disable_compression?void 0:Ro.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback:l=>{var c,u,d,f=!0;if(this.Ps(l.statusCode),l.statusCode===200&&(this.fs||(this.$anon_distinct_id=void 0),f=!1),this.cs=!1,!i.disable_flags||this.fs){this.ps=!f;var h=[];l.error?l.error instanceof Error?h.push(l.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):l.statusCode!==200&&h.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var p,m=!((u=l.json)==null||(u=u.quotaLimited)==null||!u.includes("feature_flags"));m&&h.push("quota_limited"),(d=this.ri)==null||d.register({[pj]:h}),m?Kr.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags((p=l.json)!==null&&p!==void 0?p:{},f,{partialResponse:s}),this.fs&&(this.fs=!1,this.Es()))}}})}}ws(){return Ipe(this.bs,3)}Ps(e){this.bs=Rpe(e,this.bs,3,()=>Kr.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes."))}getFeatureFlag(e,t){var n;if(t===void 0&&(t={}),!t.fresh||this.ps)if(this.ds||this.getFlags()&&this.getFlags().length>0){if(!this.Ss()){var r=this.getFeatureFlagResult(e,t);return(n=r==null?void 0:r.variant)!==null&&n!==void 0?n:r==null?void 0:r.enabled}}else Kr.warn('getFeatureFlag for key "'+e+Y2)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t==null?void 0:t.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.ps)if(this.ds||this.getFlags()&&this.getFlags().length>0){if(!this.Ss()){var n=this.getFlagVariants(),r=e in n,i=n[e],o=this.getFlagPayloads()[e],s=String(i),a=this.xs(uj)||void 0,l=this.xs($E)||void 0,c=this.xs(Rx)||{};if(this.Se.advanced_feature_flags_dedup_per_session){var u,d=this._instance.get_session_id(),f=this.xs(hj);d&&d!==f&&(c={},(u=this.ri)==null||u.register({[Rx]:c,[hj]:d}))}if((t.send_event||!("send_event"in t))&&(!(e in c)||!c[e].includes(s))){var h,p,m,g,v,b,w,x,E,S;At(c[e])?c[e].push(s):c[e]=[s],(h=this.ri)==null||h.register({[Rx]:c});var _=this.getFeatureFlagDetails(e),k=[...(p=this.xs(pj))!==null&&p!==void 0?p:[]];_e(i)&&k.push("flag_missing");var C={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:o||null,$feature_flag_request_id:a,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:((m=this.Se.bootstrap)==null||(m=m.featureFlags)==null?void 0:m[e])||null,$feature_flag_bootstrapped_payload:((g=this.Se.bootstrap)==null||(g=g.featureFlagPayloads)==null?void 0:g[e])||null,$used_bootstrap_value:!this.ps};_e(_==null||(v=_.metadata)==null?void 0:v.version)||(C.$feature_flag_version=_.metadata.version);var T,A=(b=_==null||(w=_.reason)==null?void 0:w.description)!==null&&b!==void 0?b:_==null||(x=_.reason)==null?void 0:x.code;A&&(C.$feature_flag_reason=A),_!=null&&(E=_.metadata)!=null&&E.id&&(C.$feature_flag_id=_.metadata.id),_e(_==null?void 0:_.original_variant)&&_e(_==null?void 0:_.original_enabled)||(C.$feature_flag_original_response=_e(_.original_variant)?_.original_enabled:_.original_variant),_!=null&&(S=_.metadata)!=null&&S.original_payload&&(C.$feature_flag_original_payload=_==null||(T=_.metadata)==null?void 0:T.original_payload),k.length&&(C.$feature_flag_error=k.join(",")),this._instance.capture("$feature_flag_called",C)}if(r)return{key:e,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:HG(o)}}}else Kr.warn('getFeatureFlagResult for key "'+e+Y2)}getRemoteConfigPayload(e,t){var n=this.Se.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.Ts()&&(r.evaluation_contexts=this.Cs());var i=this.Is();_e(i)||(r.flag_keys=i),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.Se.disable_compression?void 0:Ro.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback(o){var s,a=(s=o.json)==null?void 0:s.featureFlagPayloads;t((a==null?void 0:a[e])||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.ps){if(this.ds||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return _e(n)?void 0:!!n}Kr.warn('isFeatureEnabled for key "'+e+Y2)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}
857receivedFeatureFlags(e,t,n){if(this.ri){this.ds=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads(),o=this.getFlagsWithDetails();(function(s,a,l,c,u,d){l===void 0&&(l={}),c===void 0&&(c={}),u===void 0&&(u={});var f=(k=>{var C=k.flags;return C?(k.featureFlags=Object.fromEntries(Object.keys(C).map(T=>{var A;return[T,(A=C[T].variant)!==null&&A!==void 0?A:C[T].enabled]})),k.featureFlagPayloads=Object.fromEntries(Object.keys(C).filter(T=>C[T].enabled).filter(T=>{var A;return(A=C[T].metadata)==null?void 0:A.payload}).map(T=>{var A;return[T,(A=C[T].metadata)==null?void 0:A.payload]}))):k.featureFlags&&Kr.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),k})(s),h=f.flags,p=f.featureFlags,m=f.featureFlagPayloads;if(p){var g=s.requestId,v=s.evaluatedAt;if(At(p)){Kr.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var b={};if(p)for(var w=0;p.length>w;w++)b[p[w]]=!0;a&&a.register({[lT]:p,[Rp]:b})}else{var x=p,E=m,S=h;if(d!=null&&d.partialResponse)x=he({},l,x),E=he({},c,E),S=he({},u,S);else if(s.errorsWhileComputingFlags)if(h){var _=new Set(Object.keys(h).filter(k=>{var C;return!((C=h[k])!=null&&C.failed)}));x=he({},l,Object.fromEntries(Object.entries(x).filter(k=>_.has(k[0])))),E=he({},c,Object.fromEntries(Object.entries(E||{}).filter(k=>_.has(k[0])))),S=he({},u,Object.fromEntries(Object.entries(S||{}).filter(k=>_.has(k[0]))))}else x=he({},l,x),E=he({},c,E),S=he({},u,S);a&&a.register(he({[lT]:Object.keys(HY(x)),[Rp]:x||{},[cT]:E||{},[cj]:S||{}},g?{[uj]:g}:{},v?{[$E]:v}:{}))}}})(e,this.ri,r,i,o,n),t||(this.ys=!1),this.Os(t)}}override(e,t){t===void 0&&(t=!1),Kr.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ri)return Kr.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ri.unregister(Su),this.ri.unregister(cv),this.Os(),up.info("All overrides cleared");if(At(e)){var t=WY(e);return this.ri.register({[Su]:t}),this.Os(),up.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var n,r=e;if(this.hs=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ri.unregister(Su),up.info("Flag overrides cleared");else if(r.flags){if(At(r.flags)){var i=WY(r.flags);this.ri.register({[Su]:i})}else this.ri.register({[Su]:r.flags});up.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ri.unregister(cv),up.info("Payload overrides cleared")):r.payloads&&(this.ri.register({[cv]:r.payloads}),up.info("Payload overrides set",{payloads:r.payloads}))),void this.Os()}if(e&&typeof e=="object")return this.ri.register({[Su]:e}),this.Os(),up.info("Flag overrides set",{flags:e});Kr.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ds){var t=this.Ls(),n=t.flags,r=t.flagVariants;try{e(n,r)}catch(i){Kr.error("Error while running feature flags callback",i)}}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this.xs(Zw)||[]).find(l=>l.flagKey===e),o={["$feature_enrollment/"+e]:t},s={$feature_flag:e,$feature_enrollment:t,$set:o};i&&(s.$early_access_feature_name=i.name),n&&(s.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",s),this.setPersonPropertiesForFlags(o,!1);var a=he({},this.getFlagVariants(),{[e]:t});(r=this.ri)==null||r.register({[lT]:Object.keys(HY(a)),[Rp]:a}),this.Os()}getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this.xs(Zw),i=n?"&"+n.map(o=>"stage="+o).join("&"):"";if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Se.token+i),method:"GET",callback:o=>{var s,a;if(o.json){var l=o.json.earlyAccessFeatures;return(s=this.ri)==null||s.unregister(Zw),(a=this.ri)==null||a.register({[Zw]:l}),e(l)}}})}Ls(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(n=>t[n]),flagVariants:Object.keys(t).filter(n=>t[n]).reduce((n,r)=>(n[r]=t[r],n),{})}}Os(e){var t=this.Ls(),n=t.flags,r=t.flagVariants;
857this.featureFlagEventHandlers.forEach(i=>{try{i(n,r,{errorsLoading:e})}catch(o){Kr.error("Error while running feature flags callback",o)}})}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.xs(Ep)||{},r=(e==null?void 0:e.$set)||(e!=null&&e.$set_once?{}:e),i=e==null?void 0:e.$set_once,o={};if(i)for(var s in i)({}).hasOwnProperty.call(i,s)&&(s in n||(o[s]=i[s]));this._instance.register({[Ep]:he({},n,o,r)}),t&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=he({},this.xs(Ep)||{});e.forEach(r=>{delete n[r]}),this._instance.register({[Ep]:n}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){e===void 0&&(e=!0),this._instance.unregister(Ep),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.xs(Sp)||{};Object.keys(n).length!==0&&Object.keys(n).forEach(r=>{n[r]=he({},n[r],e[r]),delete e[r]}),this._instance.register({[Sp]:he({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.xs(Sp)||{};this._instance.register({[Sp]:he({},t,{[e]:{}})})}else this._instance.unregister(Sp)}reset(){this.ds=!1,this.cs=!1,this.vs=!1,this.fs=!1,this.ps=!1,this.$anon_distinct_id=void 0,this.Rs(),this.hs=!1,this.bs=0}}},e8e={sessionRecording:class{get Se(){return this._instance.config}get ri(){return this._instance.persistence}get started(){var e;return!((e=this.Fs)==null||!e.isStarted)}get status(){var e,t;return this.As===nw||this.As===Ek?this.As:(e=(t=this.Fs)==null?void 0:t.status)!==null&&e!==void 0?e:this.As}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.As=$Y,this.$s=void 0,this._instance=e,!this._instance.sessionManager)throw vu.error("started without valid sessionManager"),new Error(Pj+" started without valid sessionManager. This is a bug.");if(this.Se.cookieless_mode===Wu)throw new Error(Pj+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Ns(){var e,t=!((e=this._instance.get_property(Bp))==null||!e.enabled),n=!this.Se.disable_session_recording,r=this.Se.disable_session_recording||this._instance.consent.isOptedOut();return te&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.Ns||(t=this.Fs)==null||!t.isStarted){var n=!_e(Object.assign)&&!_e(Array.from);this.Ns&&n?(this.Ds(e),vu.info("starting")):(this.As=$Y,this.stopRecording())}}Ds(e){var t,n,r;this.Ns&&(this.As!==nw&&this.As!==Ek&&(this.As=FY),et!=null&&(t=et.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=et.__PosthogExtensions__)!=null&&n.initSessionRecording?this.qs(e):(r=et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.js,i=>{if(i)return vu.error("could not load recorder",i);this.qs(e)}))}stopRecording(){var e,t;(e=this.$s)==null||e.call(this),this.$s=void 0,(t=this.Fs)==null||t.stop()}Bs(){var e,t;(e=this.$s)==null||e.call(this),this.$s=void 0,(t=this.Fs)==null||t.discard()}Hs(){var e,t;(e=this.ri)==null||e.unregister(bV),(t=this.ri)==null||t.unregister(spe)}Us(e,t){if(St(e))return null;var n,r=eo(e)?e:parseFloat(e);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(vu.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):r}zs(e){if(this.ri){var t,n,r=this.ri,i=()=>{var o,s=e.sessionRecording===!1?void 0:e.sessionRecording,a=this.Us((o=this.Se.session_recording)==null?void 0:o.sampleRate,"session_recording.sampleRate"),l=this.Us(s==null?void 0:s.sampleRate,"remote config sampleRate"),c=a??l;St(c)&&this.Hs();var u=s==null?void 0:s.minimumDurationMilliseconds;r.register({[Bp]:he({cache_timestamp:Date.now(),enabled:!!s},s,{networkPayloadCapture:he({capturePerformance:e.capturePerformance},s==null?void 0:s.networkPayloadCapture),canvasRecording:{enabled:s==null?void 0:s.recordCanvas,fps:s==null?void 0:s.canvasFps,quality:s==null?void 0:s.canvasQuality},sampleRate:c,minimumDurationMilliseconds:_e(u)?null:u,endpoint:s==null?void 0:s.endpoint,triggerMatchType:s==null?void 0:s.triggerMatchType,masking:s==null?void 0:s.masking,urlTriggers:s==null?void 0:s.urlTriggers,version:s==null?void 0:s.version,triggerGroups:s==null?void 0:s.triggerGroups})})};i(),(t=this.$s)==null||t.call(this),this.$s=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(i)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.zs(e),void this.Bs()):(this.zs(e),void this.startIfEnabledOrStop()):(this.As===nw&&(this.As=Ek,vu.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t="log"),(n=this.Fs)!=null&&n.log?this.Fs.log(e,t):vu.warn("log called before recorder was ready")}get js(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Bp);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Ws(){var e,t,n=this._instance.get_property(Bp);if(!n)return!1;try{t=typeof n=="object"?n:JSON.parse(n)}catch(i){return vu.warn("persisted remote config for session recording is invali
857d and will be ignored",i),!1}var r=(e=t.cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-r}qs(e){var t,n;if((t=et.__PosthogExtensions__)==null||!t.initSessionRecording)return vu.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[ppe]:!0});if(this.Fs||(this.Fs=(n=et.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.Fs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ws())return this.As===Ek||this.As===nw?void 0:(this.As=nw,vu.info("persisted remote config is stale, requesting fresh config before starting"),void new jpe(this._instance).load());this.As=FY,this.Fs.start(e)}onRRwebEmit(e){var t;(t=this.Fs)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Fs||(t=this.ri)==null||t.register({[lpe]:!0}),(e=this.Fs)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Fs||(t=this.ri)==null||t.register({[ape]:!0}),(e=this.Fs)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.Fs||(n=this.ri)==null||n.register({[e==="url"?cpe:upe]:!0}),(t=this.Fs)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.Fs)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.Fs)==null||!n.tryAddCustomEvent(e,t))}}},t8e={autocapture:class{constructor(e){this.Vs=!1,this.Zs=null,this.Gs=!1,this.instance=e,this.rageclicks=new NY(e.config.rageclick),this.Qs=null}initialize(){this.startIfEnabled()}get Se(){var e,t,n=Wn(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(e=n.url_allowlist)==null?void 0:e.map(r=>new RegExp(r)),n.url_ignorelist=(t=n.url_ignorelist)==null?void 0:t.map(r=>new RegExp(r)),n}Js(){if(this.isBrowserSupported()){if(te&&Te){var e=n=>{n=n||(te==null?void 0:te.event);try{this.Ks(n)}catch(r){W2.error("Failed to capture event",r)}};if(ir(Te,"submit",e,{capture:!0}),ir(Te,"change",e,{capture:!0}),ir(Te,"click",e,{capture:!0}),this.Se.capture_copied_text){var t=n=>{n=n||(te==null?void 0:te.event);try{this.Ks(n,V2)}catch(r){W2.error("Failed to capture copy/cut event",r)}};ir(Te,"copy",t,{capture:!0}),ir(Te,"cut",t,{capture:!0})}}}else W2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Vs&&(this.Js(),this.Vs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Gs=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[nj]:!!e.autocapture_opt_out}),this.Zs=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Qs=e}getElementSelectors(e){var t,n=[];return(t=this.Qs)==null||t.forEach(r=>{var i=Te==null?void 0:Te.querySelectorAll(r);i==null||i.forEach(o=>{e===o&&n.push(r)})}),n}get isEnabled(){var e,t,n=(e=this.instance.persistence)==null?void 0:e.props[nj];if(Uo(this.Zs)&&!$c(n)&&!this.instance.Rr())return!1;var r=(t=this.Zs)!==null&&t!==void 0?t:!!n;return!!this.instance.config.autocapture&&!r}Ks(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var n,r=N2(e);ype(r)&&(r=r.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&hY(r,this.instance.config.rageclick)&&this.Ks(e,"$rageclick");var i=t===V2;if(r&&function(d,f,h,p,m,g){var v,b,w,x,E,S;if(h===void 0&&(h=void 0),!te||_V(d)||(v=h)!=null&&v.url_allowlist&&!uY(h.url_allowlist,g)||(b=h)!=null&&b.url_ignorelist&&uY(h.url_ignorelist,g))return!1;if((w=h)!=null&&w.dom_event_allowlist){var _=h.dom_event_allowlist;if(_&&!_.some(R=>f.type===R))return!1}var k=_pe(d,p),C=k.parentIsUsefulElement,T=k.targetElementList;if(!function(R,I){var F=I==null?void 0:I.element_allowlist;if(_e(F))return!0;var N,B=function(L){if(F.some(P=>L.tagName.toLowerCase()===P))return{v:!0}};for(var M of R)if(N=B(M))return N.v;return!1}(T,h)||!wj(T,(x=h)==null?void 0:x.css_selector_allowlist)||wj(T,(E=(S=h)==null?void 0:S.css_selector_ignorelist)!==null&&E!==void 0?E:t9e))return!1;try{var A=te.getComputedStyle(d);if(A&&A.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0}catch{}var O=d.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(m||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(m||["change","click"]).indexOf(f.type)>=0;default:return C?(m||["click"]).indexOf(f.type)>=0:(m||["click"]).indexOf(f.type)>=0&&(SV.indexOf(O)>-1||d.getAttribute("contenteditable")==="true")}}(r,e,this.Se,i,i?["copy","cut"]:void 0,this.instance)){var o=H9e(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Se.element_attribute_ignorelist,elementsC
857hainAsString:this.Gs,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes}),s=o.props;if(o.explicitNoCapture)return!1;var a=this.getElementSelectors(r);if(a&&a.length>0&&(s.$element_selectors=a),t===V2){var l,c=xpe(te==null||(l=te.getSelection())==null?void 0:l.toString()),u=e.type||"clipboard";if(!c)return!1;s.$selected_content=c,s.$copy_type=u}return this.instance.capture(t,s),!0}}}isBrowserSupported(){return fl(Te==null?void 0:Te.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ys=(te==null||(t=te.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(xe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Xs&&this.Xs(),this.Xs=void 0,xe.info("History API monitoring stopped")}monitorHistoryChanges(){te&&te.history&&(this.eo("pushState"),this.eo("replaceState"),this.ro())}eo(e){var t;if(te&&((t=te.history[e])==null||!t.__posthog_wrapped__)){var n=this;(function(r,i,o){try{if(!(i in r))return DY;var s={next:r[i]},a=o(function(){for(var l=arguments.length,c=new Array(l),u=0;l>u;u++)c[u]=arguments[u];return s.next.apply(this,c)});return fl(a)&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:s}})),r[i]=a,()=>{if(r[i]!==a)for(var l=r[i];fl(l)&&l.__posthog_layer__;){var c=l.__posthog_layer__;if(c.next===a)return void(c.next=s.next);l=c.next}else r[i]=s.next}}catch{return DY}})(te.history,e,r=>function(i,o,s){r.call(this,i,o,s),n.io(e)})}}io(e){try{var t,n=te==null||(t=te.location)==null?void 0:t.pathname;if(!n)return;n!==this.Ys&&this.isEnabled&&this._instance.capture(uv,{navigation_type:e}),this.Ys=n}catch(r){xe.error("Error capturing "+e+" pageview",r)}}ro(){if(!this.Xs){var e=()=>{this.io("popstate")};ir(te,"popstate",e),this.Xs=()=>{te&&te.removeEventListener("popstate",e)}}}},heatmaps:class{get Se(){return this.instance.config}constructor(e){var t;this.no=!1,this.Vs=!1,this.so=null,this.instance=e,this.no=!((t=this.instance.persistence)==null||!t.props[rj]),this.rageclicks=new NY(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Wn(this.Se.capture_heatmaps)&&this.Se.capture_heatmaps.flush_interval_milliseconds&&(e=this.Se.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return St(this.Se.capture_heatmaps)?St(this.Se.enable_heatmaps)?this.no:this.Se.enable_heatmaps:this.Se.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Vs)return;q9e.info("starting..."),this.oo(),this.ke()}else{var e;clearInterval((e=this.so)!==null&&e!==void 0?e:void 0),this.ao(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[rj]:t}),this.no=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}lo(e){this.fe(e.originalEvent,"deadclick")}ke(){this.so&&clearInterval(this.so),this.so=(Te==null?void 0:Te.visibilityState)==="visible"?setInterval(this.Wr.bind(this),this.flushIntervalMilliseconds):null}oo(){te&&Te&&(this.uo=this.Wr.bind(this),ir(te,XA,this.uo),this.ho=e=>this.fe(e||(te==null?void 0:te.event)),ir(Te,"click",this.ho,{capture:!0}),this.do=e=>this.co(e||(te==null?void 0:te.event)),ir(Te,"mousemove",this.do,{capture:!0}),this.vo=new gY(this.instance,c9e,this.lo.bind(this)),this.vo.startIfEnabledOrStop(),this.fo=this.ke.bind(this),ir(Te,YA,this.fo),this.Vs=!0)}ao(){var e;te&&Te&&(this.uo&&te.removeEventListener(XA,this.uo),this.ho&&Te.removeEventListener("click",this.ho,{capture:!0}),this.do&&Te.removeEventListener("mousemove",this.do,{capture:!0}),this.fo&&Te.removeEventListener(YA,this.fo),clearTimeout(this.po),(e=this.vo)==null||e.stop(),this.Vs=!1)}mo(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(s,a,l){for(var c=s;c&&ph(c)&&!$s(c,"body");){if(c===l)return!1;var u=void 0;try{var d,f,h;u=(d=(f=(h=c.ownerDocument)==null?void 0:h.defaultView)!==null&&f!==void 0?f:te)==null?void 0:d.getComputedStyle(c).position}catch{return!1}if(lt(a,u))return!0;c=Epe(c)}return!1}(N2(e),["fixed","sticky"],i);return{x:e.clientX+(o?0:r),y:e.clientY+(o?0:n),target_fixed:o,type:t}}fe(e,t){var n;if(t===void 0&&(t="click"),!cY(e.target)&&BY(e)){var r=this.mo(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&hY(N2(e),this.instance.config.rageclick)&&this.kt(he({},r,{type:"rageclick"})),this.kt(r)}}co(e){!cY(e.target)&&BY(e)&&(clearTimeout(this.po),this.po=setTimeout(()=>{this.kt(this.mo(e,"mousemove"))},500))}kt(e){if(te){var t=this.Se.disable_capture_url_hashes?hh(te.location.href):te.location.href,n=this.Se.custom_personal_data_properties,r=this.Se.mask_personal_data_properties?[...Gy,...n||[]]:[],i=jE(t,r,zE);this.R=this.R||{},this.R[i]||(this.R[i]=[]),this.R[i].push(e)}}Wr(){this.R&&!Rf(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:gY,webVitalsAutocapture:class{constructor(e){var t;this.no=!1,this.Vs=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.yo=()=>{clearTimeout(this.bo),this.R.metrics.length!==0&&(this._instance.capture("$web_vitals",this.R.metrics.reduce((n,r)=>he({},n,{["$web_vitals_"+r.name+"_event"]:he({},r),["$web_vitals_"+r.name+"_value"]:r.value}),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this._o=n=>{var r;this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.wo();if(!_e(i))if(St(n==null?void 0:n.name)||St(n==null?void 0:n.value))cp.error("Invalid metric received",n);else if(!this.xo||this.xo>n.value){this.R.url!==i&&(this.yo(),this.bo=setTimeout(this.yo,this.flushToCaptureTimeoutMs)),_e(this.R.url)&&(this.R.url=i),this.R.firstMetricTimestamp=_e(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0);var o=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0),s=he({},n,{$current_url:i,timestamp:Date.now()});_e(o)||(s.$session_id=o.sessionId,s.$window_id=o.windowId),this.R.metrics.push(s),this.R.metrics.length===this.allowedMetrics.length&&this.yo()}else cp.error("Ignoring metric with value >= "+this.xo,n)},this.ko=()=>
857{if(!this.Vs){var n,r,i,o,s=et.__PosthogExtensions__;if(!_e(s)&&!_e(s.postHogWebVitalsCallbacks)){var a=s.postHogWebVitalsCallbacks;n=a.onLCP,r=a.onCLS,i=a.onFCP,o=a.onINP}n&&r&&i&&o?(this.allowedMetrics.indexOf("LCP")>-1&&n(this._o.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this._o.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this._o.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this._o.bind(this)),this.Vs=!0):cp.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.no=!((t=this._instance.persistence)==null||!t.props[aj]),this.startIfEnabled()}get So(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,n=Wn(this.So)?(e=this.So)==null?void 0:e.web_vitals_allowed_metrics:void 0;return St(n)?((t=this._instance.persistence)==null?void 0:t.props[lj])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(Wn(this.So)?this.So.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Wn(this.So)?this.So.web_vitals_attribution:void 0;return e!=null&&e}get xo(){var e=Wn(this.So)&&eo(this.So.__web_vitals_max_value)?this.So.__web_vitals_max_value:LY;return e>0&&6e4>=e?LY:e}get isEnabled(){var e=Dr==null?void 0:Dr.protocol;if(e!=="http:"&&e!=="https:")return cp.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Wn(this.So)?this.So.web_vitals:$c(this.So)?this.So:void 0;return $c(t)?t:this.no}startIfEnabled(){this.isEnabled&&!this.Vs&&(cp.info("enabled, starting..."),this.Bt(this.ko))}onRemoteConfig(e){if("capturePerformance"in e){var t=Wn(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=Wn(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[aj]:t}),this._instance.persistence.register({[lj]:n})),this.no=t,this.startIfEnabled()}}Bt(e){var t,n;(t=et.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",r=>{r?cp.error("failed to load script",r):e()})}wo(){var e=te?this._instance.config.disable_capture_url_hashes?hh(te.location.href):te.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...Gy,...t||[]]:[];return jE(e,n,zE)}cp.error("Could not determine current URL")}}},n8e={exceptionObserver:class{constructor(e){var t,n,r,i,o,s;this.ko=()=>{var a;if(te&&this.isEnabled&&(a=et.__PosthogExtensions__)!=null&&a.errorWrappingFunctions){var l=et.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=et.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,u=et.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Co&&this.Se.capture_unhandled_errors&&(this.Co=l(this.captureException.bind(this))),!this.To&&this.Se.capture_unhandled_rejections&&(this.To=c(this.captureException.bind(this))),!this.Io&&this.Se.capture_console_errors&&(this.Io=u(this.captureException.bind(this)))}catch(d){tw.error("failed to start",d),this.Mo()}}},this._instance=e,this.Eo=!((t=this._instance.persistence)==null||!t.props[ij]),this.Ro=new rHe(he({},((n=this._instance.config.error_tracking)===void 0&&(n={}),{refillRate:(r=(i=n.exceptionRateLimiterRefillRate)!==null&&i!==void 0?i:n.__exceptionRateLimiterRefillRate)!==null&&r!==void 0?r:1,bucketSize:(o=(s=n.exceptionRateLimiterBucketSize)!==null&&s!==void 0?s:n.__exceptionRateLimiterBucketSize)!==null&&o!==void 0?o:10}),{refillInterval:1e4,Ae:tw})),this.Se=this.Po(),this.startIfEnabledOrStop()}Po(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Wn(e)?t=he({},t,e):(_e(e)?this.Eo:e)&&(t=he({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Se.capture_console_errors||this.Se.capture_unhandled_errors||this.Se.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(tw.info("enabled"),this.Mo(),this.Bt(this.ko)):this.Mo()}Bt(e){var t,n;(t=et.__PosthogExtensions__)!=null&&t.errorWrappingFunctions?e():(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",r=>{if(r)return tw.error("failed to load script",r);e()})}Mo(){var e,t,n;(e=this.Co)==null||e.call(this),this.Co=void 0,(t=this.To)==null||t.call(this),this.To=void 0,(n=this.Io)==null||n.call(this),this.Io=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.Eo=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[ij]:this.Eo}),this.Se=this.Po(),this.startIfEnabledOrStop())}onConfigChange(){this.Se=this.Po()}captureException(e){var t,n,r,i=(t=e==null||(n=e.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&t!==void 0?t:"Exception";this.Ro.consumeRateLimit(i)?tw.info("Skipping exception capture because of client rate limiting.",{exception:i}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,n;this.Oo=[],this.Lo=new wHe([new AHe,new $He,new PHe,new OHe,new DHe,new
857NHe,new RHe,new LHe],function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;i>s;s++)o[s-1]=arguments[s];return function(a,l){l===void 0&&(l=0);for(var c=[],u=a.split(` 858`),d=l;u.length>d;d++){var f=u[d];if(1024>=f.length){var h=oY.test(f)?f.replace(oY,"$1"):f;if(!h.match(/\S*Error: /)){for(var p of o){var m=p(h,r);if(m){c.push(m);break}}if(c.length>=50)break}}}return function(g){if(!g.length)return[];var v=Array.from(g);return v.reverse(),v.slice(0,50).map(b=>{return he({},b,{filename:b.filename||(w=v,w[w.length-1]||{}).filename,function:b.function||Ky});var w})}(c)}}("web:javascript",_He,THe)),this._instance=e,this.Oo=(t=(n=this._instance.persistence)==null?void 0:n.get_property(oj))!==null&&t!==void 0?t:[],this.Fo=WA(this.Ao()),this.$o=new BHe(this.Fo)}onConfigChange(){this.Fo=WA(this.Ao()),this.$o.setConfig(this.Fo)}onRemoteConfig(e){var t,n,r;if("errorTracking"in e){var i=(t=(n=e.errorTracking)==null?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],o=(r=e.errorTracking)==null?void 0:r.captureExtensionExceptions;this.Oo=i,this._instance.persistence&&this._instance.persistence.register({[oj]:this.Oo,[sj]:o})}}get No(){var e,t=!!this._instance.get_property(sj),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.Lo.buildFromUnknown(e,{syntheticException:t==null?void 0:t.syntheticException,mechanism:{handled:t==null?void 0:t.handled}})}addExceptionStep(e,t){if(this.Fo.enabled)try{if(!wn(e)||e.trim().length===0)return void yu.warn("Ignoring exception step because message must be a non-empty string");var n=function(o){if(!o)return{sanitizedProperties:{},droppedKeys:[]};var s=[];return{sanitizedProperties:Object.keys(o).reduce((a,l)=>FHe.has(l)?(s.push(l),a):(a[l]=o[l],a),{}),droppedKeys:s}}(this.Do(t)),r=n.sanitizedProperties,i=n.droppedKeys;i.length>0&&yu.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.$o.add(he({[UA]:e,[VA]:new Date().toISOString()},r))}catch(o){yu.error("Failed to add exception step. Ignoring breadcrumb.",o)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.qo(t)){if(this.jo(t))return this.Bo("Exception dropped: matched a suppression rule"),void yu.info("Skipping exception capture because a suppression rule matched");if(!this.No&&this.Ho(t))return this.Bo("Exception dropped: thrown by a browser extension"),void yu.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Uo(t))return this.Bo("Exception dropped: thrown by the PostHog SDK"),void yu.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.Fo.enabled&&St(e.$exception_steps)?this.zo(e):e;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",ln:!0});return r&&this.$o.clear(),r}catch(i){return yu.error("Failed to capture exception event. Dropping this exception.",i),void this.$o.clear()}}catch(i){return void yu.error("Failed to process exception event. Ignoring this exception.",i)}}zo(e){try{var t=this.$o.getAttachable();return t.length===0?e:he({},e,{$exception_steps:t})}catch(n){return yu.error("Failed to read buffered exception steps. Capturing exception without steps.",n),e}}Bo(e){this.Fo.enabled&&this.$o.add({[UA]:e,[VA]:new Date().toISOString()})}Do(e){return Wn(e)?he({},e):{}}Ao(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}jo(e){if(e.length===0)return!1;var t=e.reduce((n,r)=>{var i=r.type,o=r.value;return wn(i)&&i.length>0&&n.$exception_types.push(i),wn(o)&&o.length>0&&n.$exception_values.push(o),n},{$exception_types:[],$exception_values:[]});return this.Oo.some(n=>{var r=n.values.map(i=>{var o,s=Qpe[i.operator],a=At(i.value)?i.value:[i.value],l=(o=t[i.key])!==null&&o!==void 0?o:[];return a.length>0&&s(a,l)});return n.type==="OR"?r.some(Boolean):r.every(Boolean)})}Ho(e){return e.flatMap(t=>{var n,r;return(n=(r=t.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]}).some(t=>t.filename&&t.filename.startsWith("chrome-extension://"))}Uo(e){if(e.length>0){var t,n,r,i,o=(t=(n=e[0].stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[],s=o[o.length-1];return(r=s==null||(i=s.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}qo(e){return!St(e)&&At(e)}}},r8e=he({productTours:class{get ri(){return this._instance.persistence}constructor(e){this.Wo=null,this.Vo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if("productTours"in e){var t,n;if(this.ri&&this.ri.register({[yV]:!!e.productTours}),!q2(this._instance))return!this.Wo&&St((t=this.ri)==null?void 0:t.props[Qw])||K2.info("product tours disabled; stopping and clearing cached tours"),(n=this.Wo)==null||n.stop(),this.Wo=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.Wo&&q2(this._instance)&&this.Bt(()=>this.Zo())}Bt(e){var t,n;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",r=>{r?K2.error("Could not load product tours script",r):e()})}Zo(){var e;!this.Wo&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Wo=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!At(this.Vo)||t){var n=this.ri;if(n){var r=n.props[Qw];if(At(r)&&!t)return this.Vo=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:i=>{if(q2(this._instance)){var o=i.statusCode;if(o!==200||!i.json){var s="Product Tours API could not be loaded, status: "+o;return K2.error(s),void e([],{isLoaded:!1,error:s})}var a=At(i.json.product_tours)?i.json.product_tours:[];this.Vo=a,n&&n.register({[Qw]:a}),e(a,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.Vo,{isLoaded:!0})}getActiveProductTours(e){St(this.Wo)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Wo.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Wo)==null||t.showTourById(e)}previewTour(e){this.Wo?this.Wo.previewTour(e):this.Bt(()=>{var t;this.Zo(),(t=this.Wo)==null||t.previewTour(e)})}dismissProductTour(){var e;(e=this.Wo)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Wo)==null||e.nextStep()}previousStep(){var e;(e=this.Wo)==null||e.previousStep()}clearCache(){var e;this.Vo=null,(e=this.ri)==null||e.unregister(Qw)}resetTour(e){var t;(t=this.Wo)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Wo)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Wo)==null||t.cancelPendingTour(e)}}},PR),i8e={siteApps:class{constructor(e){this.Go=0,this._instance=e,this.Qo=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Jo(e,t){if(t){var n=this.globalsForEvent(t);this.Qo.push(n),this.Qo.length>1e3&&(this.Qo=this.Qo.slice(10))}}get siteAppLoaders(){var e;
vendor: 7,620 bytes, line 858
858return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Jo.bind(this));this.Ko=()=>{e(),this.Qo=[],this.Ko=void 0}}}globalsForEvent(e){var t,n,r,i,o,s,a;if(!e)throw new Error("Event payload is required");var l={},c=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var d of Object.entries(u)){var f=d[0];l[f]={id:c[f],type:f,properties:d[1]}}var h=e.$set_once,p=e.$set;return{event:he({},Che(e,G9e),{properties:he({},e.properties,p?{$set:he({},(t=(n=e.properties)==null?void 0:n.$set)!==null&&t!==void 0?t:{},p)}:{},h?{$set_once:he({},(r=(i=e.properties)==null?void 0:i.$set_once)!==null&&r!==void 0?r:{},h)}:{}),elements_chain:(o=(s=e.properties)==null?void 0:s.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(a=e.properties)==null?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}Yo(e){var t,n=(t=e.tagName)==null?void 0:t.toLowerCase();return n==="style"&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(tc.error("prepare_external_dependency_stylesheet returned null"),null):n==="script"&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(tc.error("prepare_external_dependency_script returned null"),null):e}Xo(){var e,t,n,r,i,o,s,a;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var l=Te==null?void 0:Te.defaultView,c=l==null||(e=l.Node)==null?void 0:e.prototype;if(!l||!c)return()=>{};if(this.Go++,this.ea)return this.ta();var u=[],d=this,f=new WeakSet,h=(g,v,b)=>{if(g!=null&&g[v]){var w=g[v];g[v]=b(w),u.push(()=>{g[v]=w})}},p=g=>{if(f.has(g))return g;var v=d.Yo(g);return v&&f.add(v),v},m=g=>g.map(v=>typeof v=="string"?v:p(v)).filter(v=>!Uo(v));return h(c,"appendChild",g=>function(v){var b=p(v);return b?g.call(this,b):v}),h(c,"insertBefore",g=>function(v,b){var w=p(v);return w?g.call(this,w,b):v}),h(c,"replaceChild",g=>function(v,b){var w=p(v);return w?g.call(this,w,b):b}),[(t=l.Element)==null?void 0:t.prototype,(n=l.Document)==null?void 0:n.prototype,(r=l.DocumentFragment)==null?void 0:r.prototype].forEach(g=>{h(g,"append",v=>function(){for(var b=arguments.length,w=new Array(b),x=0;b>x;x++)w[x]=arguments[x];return v.apply(this,m(w))}),h(g,"prepend",v=>function(){for(var b=arguments.length,w=new Array(b),x=0;b>x;x++)w[x]=arguments[x];return v.apply(this,m(w))})}),[(i=l.Element)==null?void 0:i.prototype,(o=l.CharacterData)==null?void 0:o.prototype,(s=l.DocumentType)==null?void 0:s.prototype].forEach(g=>{h(g,"before",v=>function(){for(var b=arguments.length,w=new Array(b),x=0;b>x;x++)w[x]=arguments[x];return v.apply(this,m(w))}),h(g,"after",v=>function(){for(var b=arguments.length,w=new Array(b),x=0;b>x;x++)w[x]=arguments[x];return v.apply(this,m(w))}),h(g,"replaceWith",v=>function(){for(var b=arguments.length,w=new Array(b),x=0;b>x;x++)w[x]=arguments[x];var E=m(w);return w.length&&!E.length?void 0:v.apply(this,E)})}),h((a=l.Element)==null?void 0:a.prototype,"insertAdjacentElement",g=>function(v,b){var w=p(b);return w?g.call(this,v,w):null}),this.ea=()=>{u.forEach(g=>g()),this.ea=void 0},this.ta()}ta(){var e=!1;return()=>{var t;e||(e=!0,this.Go--,this.Go===0&&((t=this.ea)==null||t.call(this)))}}ra(e,t){t===void 0&&(t=!0);var n=this.Xo();try{var r=e(n);return t&&n(),r}catch(i){throw n(),i}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var s;!t.errored&&this.Qo.length&&(tc.info("Processing "+this.Qo.length+" events for site app with id "+e.id),this.Qo.forEach(a=>this.ra(()=>t.processEvent==null?void 0:t.processEvent(a))),t.processedBuffer=!0),Object.values(this.apps).every(a=>a.processedBuffer||a.errored)&&((s=this.Ko)==null||s.call(this))},r=!1,i=s=>{t.errored=!s,t.loaded=!0,tc.info("Site app with id "+e.id+" "+(s?"loaded":"errored")),r&&n()};try{var o=this.ra(s=>e.init({posthog:this._instance,callback(a){s(),i(a)}}),!1).processEvent;o&&(t.processEvent=o),r=!0}catch(s){tc.error(jY+e.id,s),i(!1)}if(r&&t.loaded)try{n()}catch(s){tc.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}ia(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}na(e){var t=this;if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(e),r=function(o){try{t.ra(()=>o.processEvent==null?void 0:o.processEvent(n))}catch(s){tc.error("Error while processing event "+e.event+" for site app "+o.id,s)}};for(var i of Object.values(this.apps))r(i)}}onRemoteConfig(e){var t,n,r,i=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.ia(),void this._instance.on("eventCaptured",a=>this.na(a))):void tc.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Ko)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var o=function(){var a,l=s.id,c=s.url;et["__$$ph_site_app_"+l]=i._instance,(a=et.__PosthogExtensions__)==null||a.loadSiteApp==null||a.loadSiteApp(i._instance,c,u=>{if(u)return tc.error(jY+l,u)})};for(var s of e.siteApps)o()}else tc.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},o8e={tracingHeaders:class{constructor(e){this.sa=void 0,this.oa=void 0,this.aa=void 0,this.ko=()=>{var t,n,r=this.la();r?(_e(this.sa)&&(this.sa=(t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null?void 0:t._patchXHR(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),_e(this.oa)&&(this.oa=(n=et.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null?void 0:n._patchFetch(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.Mo()},this._instance=e}initialize(){this.startIfEnabledOrStop()}Bt(e){var t,n;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns?e():(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",r=>{if(r)return K9e.error("failed to load script",r);e()})}ua(){var e,t;return(e=(t=this._instance.config.tracing_headers)!==null&&t!==void 0?t:this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}la(){var e=this.ua();return At(e)?(At(this.aa)?this.aa.splice(0,this.aa.length,...e):this.aa=[...e],e.length>0?this.aa:void 0):(At(this.aa)&&this.aa.splice(0),this.aa=e||void 0,this.aa)}Mo(){var e,t;(e=this.sa)==null||e.call(this),(t=this.oa)==null||t.call(this),this.sa=void 0,this.oa=void 0}startIfEnabledOrStop(){this.la()?this.Bt(this.ko):this.Mo()}}},s8e=he({surveys:class{get Se(){return this._instance.config}constructor(e){this.ha=void 0,this._surveyManager=null,this.da=!1,this.ca=[],this.va=null,this.fa=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Se.disable_surveys){var t=e.surveys;if(St(t))return vn.warn("Flags not loaded yet. Not loading surveys.");var n=At(t);this.ha=n?t.length>0:t,vn.info("flags response received, isSurveysEnabled: "+this.ha),this.loadIfEnabled()}}reset(){try{var e;(e=this._surveyEventReceiver)==null||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(r!=null&&r.startsWith(tme)||r!=null&&r.startsWith("inProgressSurvey_"))&&t.push(r)}t.forEach(i=>
858localStorage.removeItem(i))}catch{}}loadIfEnabled(){if(!this._surveyManager)if(this.da)vn.info("Already initializing surveys, skipping...");else if(this.Se.disable_surveys)vn.info(zY);else if(this.Se.cookieless_mode&&this._instance.consent.isOptedOut())vn.info("Not loading surveys in cookieless mode without consent.");else{var e=et==null?void 0:et.__PosthogExtensions__;if(e){if(!_e(this.ha)||this.Se.advanced_enable_surveys){var t=this.ha||this.Se.advanced_enable_surveys;this.da=!0;try{var n=e.generateSurveys;if(n)return void this.pa(n,t);var r=e.loadExternalDependency;if(!r)return void this.ga(wV);r(this._instance,"surveys",i=>{i||!e.generateSurveys?this.ga("Could not load surveys script",i):this.pa(e.generateSurveys,t)})}catch(i){throw this.ga("Error initializing surveys",i),i}finally{this.da=!1}}}else vn.error("PostHog Extensions not found.")}}pa(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Z9e(this._instance),vn.info("Surveys loaded successfully"),this.ma({isLoaded:!0})}ga(e,t){vn.error(e,t),this.ma({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.ca.push(e),this._surveyManager&&this.ma({isLoaded:!0}),()=>{this.ca=this.ca.filter(t=>t!==e)}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Se.disable_surveys)return vn.info(zY),e([]);var n,r=this._instance.get_property(dj);if(r&&!t)return e(r,{isLoaded:!0}),void(this.ya()&&this.getSurveys(()=>{},!0));typeof Promise<"u"&&this.va?this.va.then(i=>e(i.surveys,i.context)):(typeof Promise<"u"&&(this.va=new Promise(i=>{n=i}
858)),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Se.token),method:"GET",timeout:this.Se.surveys_request_timeout_ms,callback:i=>{var o;this.va=null;var s=i.statusCode;if(s!==200||!i.json){var a="Surveys API could not be loaded, status: "+s;vn.error(a),this.fa=Date.now();var l={isLoaded:!1,error:a};return e([],l),void(n==null||n({surveys:[],context:l}))}this.fa=null;var c,u=i.json.surveys||[],d=u.filter(h=>function(p){return!(!p.start_date||p.end_date)}(h)&&(eme(h)||function(p){var m;return!((m=p.conditions)==null||(m=m.actions)==null||(m=m.values)==null||!m.length)}(h)));d.length>0&&((c=this._surveyEventReceiver)==null||c.register(d)),(o=this._instance.persistence)==null||o.register({[dj]:u,[KA]:Date.now()});var f={isLoaded:!0};e(u,f),n==null||n({surveys:u,context:f})}}))}ya(){return this.ba()&&!this.va&&!this._a()}ba(){var e=this._instance.get_property(KA);return eo(e)&&Date.now()-e>3e5}_a(){return eo(this.fa)&&3e5>Date.now()-this.fa}markSurveyAsSeen(e,t){var n,r={id:e,current_iteration:(n=t==null?void 0:t.iteration)!==null&&n!==void 0?n:null};nme(r);try{localStorage.setItem("lastSeenSurveyDate",new Date().toISOString())}catch{}}ma(e){for(var t of this.ca)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){vn.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!St(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);vn.warn("init was not called")}wa(e){var t=null;return this.getSurveys(n=>{var r;t=(r=n.find(i=>i.id===e))!==null&&r!==void 0?r:null}),t}xa(e){if(St(this._surveyManager))return{eligible:!1,reason:G2};var t=typeof e=="string"?this.wa(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(St(this._surveyManager))return vn.warn("init was not called"),{visible:!1,disabledReason:G2};var t=this.xa(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return St(this._surveyManager)?(vn.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:G2})):new Promise(n=>{this.getSurveys(r=>{var i,o=(i=r.find(a=>a.id===e))!==null&&i!==void 0?i:null;if(o){var s=this.xa(o);n({visible:s.eligible,disabledReason:s.reason})}else n({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,n){var r;if(St(this._surveyManager))vn.warn("init was not called");else{var i=typeof e=="string"?this.wa(e):e;if(i!=null&&i.id)if($9e.includes(i.type)){var o=Te==null?void 0:Te.querySelector(t);if(o)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(vn.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var s,a;vn.info("Rendering survey "+i.id+" with delay of "+((s=i.appearance)==null?void 0:s.surveyPopupDelaySeconds)+" seconds"),(a=this._surveyManager)==null||a.renderSurvey(i,o,n),vn.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,o,n);vn.warn("Survey element not found")}else vn.warn("Surveys of type "+i.type+" cannot be rendered in the app");else vn.warn("Survey not found")}}displaySurvey(e,t){var n;if(St(this._surveyManager))vn.warn("init was not called");else{var r=this.wa(e);if(r){var i=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=he({},r,{appearance:he({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Ej.Popover&&t.initialResponses&&vn.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var o=this.canRenderSurvey(r);if(!o.visible)return void vn.warn("Survey is not eligible to be displayed: ",o.disabledReason)}t.displayType!==Ej.Inline?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else vn.warn("Survey not found")}}cancelPendingSurvey(e){St(this._surveyManager)?vn.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload==null||e.handlePageUnload()}}},PR),a8e={toolbar:class{constructor(e){this.instance=e}ka(e){et.ph_toolbar_state=e}Sa(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),mpe(this.instance.config)||!te||!Te)return!1;e=e??te.location,n=n??te.history;try{if(!t){try{te.localStorage.setItem("test","test"),te.localStorage.removeItem("test")}catch{return!1}t=te==null?void 0:te.localStorage}var r,i=Q9e||JA(e.hash,"__posthog")||JA(e.hash,"state"),o=i?aY(()=>JSON.parse(atob(decodeURIComponent(i))))||aY(()=>JSON.parse(decodeURIComponent(i))):null;return o&&o.action==="ph_authorize"?((r=o).source="url",r&&Object.keys(r).length>0&&(o.desiredHash?e.hash=o.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(UY)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Ca(e){var t=et.ph_load_toolbar||et.ph_load_editor;!St(t)&&fl(t)?t(e,this.instance):VY.warn("No toolbar load function found")}loadToolbar(e){var t=!(Te==null||!Te.getElementById(dpe));if(!te||t)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=he({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(te.localStorage.setItem(UY,JSON.stringify(he({},r,{source:void 0}))),this.Sa()===2)this.Ca(r);else if(this.Sa()===0){var i;this.ka(1),(i=et.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",o=>{if(o)return VY.error("[Toolbar] Failed to load",o),void this.ka(0);this.ka(2),this.Ca(r)}),ir(te,"turbolinks:load",()=>{this.ka(0),this.loadToolbar(r)})}return!0}Ta(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},l8e=he({experiments:ao},PR),c8e={conversations:class{constructor(e){this.Ia=void 0,this._conversationsManager=null,this.Ma=!1,this.Ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;St(t)||($c(t)?this.Ia=t:(this.Ia=t.enabled,this.Ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ia=void 0,this.Ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ma||this._instance.config.disable_conversations||mpe(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et==null?void 0:et.__PosthogExtensions__;if(e&&!_e(this.Ia)&&this.Ia)if(this.Ea&&this.Ea.token){this.Ma=!0;try{var t=e.initConversations;if(t)return this.Ra(t),void(this.Ma=!1);var n=e.loadExternalDependency;if(!n)return void this.Pa(wV);n(this._instance,"conversations",r=>{r||!e.initConversations?this.Pa("Could not load conversations script",r):this.Ra(e.initConversations),this.Ma=!1})}catch(r){this.Pa("Error initializing conversations",r),this.Ma=!1}}else la.error("Conversations enabled but missing token in remote config.")}}Ra(e){if(this.Ea)try{this._conversationsManager=e(this.Ea,this._instance),la.info("Conversations loaded successfully")}catch(t){this.Pa("Error completing conversations initialization",t)}else la.error("Cannot complete initialization: remote config is null")}Pa(e,t){la.error(e,t),this._conversationsManager=null,this.Ma=!1}show(){this._conversationsManager?this._conversationsManager.show():la.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ia===!0&&!Uo(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var r=this;return Or(function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(la.warn(dp),null)})()}getMessages(e,t){var n=this;return Or(function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(la.warn(dp),null)})()}markAsRead(e){var t=this;return Or(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(la.warn(dp),null)})()}getTickets(e){var t=this;return Or(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(la.warn(dp),null)})()}requestRestoreLink(e){var t=this;return Or(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(la.warn(dp),null)})()}restoreFromToken(e){var t=this;return Or(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(la.warn(dp),null)})()}restoreFromUrlToken(){var e=this;return Or(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(la.warn(dp),null)})()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}fn(){var e;(e=this._conversationsManager)==null||e.setIdentity()}pn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},u8e={logs:class{constructor(e){var t;this.Oa=!1,this.La=!1,this.Ae=Xn("[logs]"),this.Lr=[],this.Fa=[],this.bs=0,this.Aa=()=>{var n,r;this.bs=0,(n=this.$a)==null||n.onReconnect(),(r=this.Na)==null||r.onReconnect()},this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.Oa=!0),te&&ir(te,"online",this.Aa)}Da(e,t,n,r){var i,o=function(s,a){var l,c,u,d,f,h,p,m=(l=s==null?void 0:s.flushIntervalMs)!==null&&l!==void 0?l:3e3,g=(c=s==null?void 0:s.maxBufferSize)!==null&&c!==void 0?c:100,v=a!=null&&a.consoleCapture?void 0:(u=s==null?void 0:s.maxLogsPerInterval)!==null&&u!==void 0?u:1e3,b=_e(v)?Math.max(g,2048):Math.max(g,v),w=s==null?void 0:s.resourceAttributes;return{serviceName:(d=(f=w==null?void 0:w["service.name"])!==null&&f!==void 0?f:s==null?void 0:s.serviceName)!==null&&d!==void 0?d:a==null?void 0:a.serviceNameDefault,serviceVersion:(h=w==null?void 0:w["service.version"])!==null&&h!==void 0?h:s==null?void 0:s.serviceVersion,environment:(p=w==null?void 0:w["deployment.environment"])!==null&&p!==void 0?p:s==null?void 0:s.environment,resourceAttributes:w,beforeSend:s==null?void 0:s.beforeSend,flushIntervalMs:m,maxBufferSize:g,maxQueueSize:b,maxBatchRecordsPerPost:100,rateCapWindowMs:m,maxLogsPerInterval:v,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}}((i=this._instance)==null||(i=i.config)==null?void 0:i.logs,n);return[new vHe(this.qa(e,t),o,this.Ae,()=>this.ja(),s=>s(),void 0,r),o]}Ba(){var e,t=(e=this._instance)==null||(e=e.config)==null?void 0:e.logs;if(!this.$a||this.Ha!==t){var n;(n=this.$a)==null||n.reset(),this.Ha=t;var r=this.Da(()=>this.Lr,i=>{this.Lr=i});this.$a=r[0],this.Ua=r[1]}return this.$a}za(){var e,t=(e=this._instance)==null||(e=e.config)==null?void 0:e.logs;if(!this.Na||this.Wa!==t){var n;(n=this.Na)==null||n.reset(),this.Wa=t;var r=this.Da(()=>this.Fa,i=>{this.Fa=i},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},qY);this.Na=r[0],this.Va=r[1]}return this.Na}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=(t=e.logs)==null?void 0:t.captureConsoleLogs;!St(n)&&n&&(this.Oa=!0,this.loadIfEnabled())}reset(){var e,t;this.Lr=[],(e=this.$a)==null||e.reset(),this.Fa=[],(t=this.Na)==null||t.reset(),this.bs=0}captureLog(e){this.Ba().captureLog(e)}le(e){this.za().captureLog(e)}get logger(){return this.Za||(this.Za={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>
858this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Za}flushLogs(e){e?this.Ga(e):(this.$a&&this.$a.flush().catch(t=>this.Ae.error("PostHog logs flush failed:",t)),this.Na&&this.Na.flush().catch(t=>this.Ae.error("PostHog logs flush failed:",t)))}loadIfEnabled(){if(this.Oa&&!this.La){var e=et==null?void 0:et.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",n=>{var r;n||(r=e.logs)==null||!r.initializeLogs?this.Ae.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.La=!0)}):this.Ae.error(wV)}else this.Ae.error("PostHog Extensions not found.")}}qa(e,t){var n=this._instance;return{get isDisabled(){return!1},get optedOut(){return!n.is_capturing()},getPersistedProperty:r=>r===Mu.LogsQueue?e():void 0,setPersistedProperty(r,i){var o;r===Mu.LogsQueue&&t((o=i)!==null&&o!==void 0?o:[])},ht:r=>this.ht(r),getLibraryId:()=>nr.LIB_NAME,getLibraryVersion:()=>nr.LIB_VERSION}}ht(e){return new Promise(t=>{if(Ipe(this.bs,3))t({kind:"fatal",error:new Error("logs endpoint is unreachable, dropping batch")});else{var n=!1,r=o=>{n||(n=!0,clearTimeout(i),t(o))},i=setTimeout(()=>r({kind:"retry-later",error:new Error("logs request timed out")}),9e4);this._instance._send_request({method:"POST",url:this.Qa(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:o=>{var s=o.statusCode;if(this.Ja(s),s>=200&&300>s)r({kind:"ok"});else if(s===413)r({kind:"too-large"});else if(s!==0&&s!==429&&500>s)r({kind:"fatal",error:new Error("logs request failed with status "+s)});else{var a;r({kind:"retry-later",error:(a=o.error)!==null&&a!==void 0?a:new Error("logs request failed with status "+s)})}}})}})}Ja(e){(e!==0||this._instance.__loaded)&&(this.bs=Rpe(e,this.bs,3,()=>this.Ae.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes.")))}Ga(e){this.Lr.length>0&&this.Ka(e,this.Lr,this.Ua,nr.LIB_NAME,t=>{this.Lr=t}),this.Fa.length>0&&this.Ka(e,this.Fa,this.Va,qY,t=>{this.Fa=t})}Ka(e,t,n,r,i){if(t.length!==0){var o=t.map(a=>a.record);i([]);var s=tpe(o,epe(n,nr.LIB_NAME,nr.LIB_VERSION),r,nr.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Qa(),data:s,compression:"best-available",batchKey:"logs",transport:e})}}Qa(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}ja(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var n=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0),r=n.windowId,i=n.sessionStartTimestamp,o=n.lastActivityTimestamp;t.sessionId=n.sessionId,t.windowId=r,St(i)||(t.sessionStartTimestamp=i),St(o)||(t.lastActivityTimestamp=o)}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?hh(et.location.href):et.location.href),this._instance.featureFlags){var s=this._instance.featureFlags.getFlags();s&&s.length>0&&(t.activeFeatureFlags=s)}return t}}},d8e={metrics:class{constructor(e){this.Ae=Xn("[metrics]"),this._instance=e}initialize(){}Ba(){var e,t,n,r,i,o,s,a,l,c=(e=this._instance)==null||(e=e.config)==null?void 0:e.metrics;return this.$a&&this.Ha===c||((t=this.$a)==null||t.reset(),this.Ha=c,this.$a=new yHe(this.qa(),{serviceName:(r=(l=(n=c)==null?void 0:n.resourceAttributes)==null?void 0:l["service.name"])!==null&&r!==void 0?r:n==null?void 0:n.serviceName,serviceVersion:(i=l==null?void 0:l["service.version"])!==null&&i!==void 0?i:n==null?void 0:n.serviceVersion,environment:(o=l==null?void 0:l["deployment.environment"])!==null&&o!==void 0?o:n==null?void 0:n.environment,resourceAttributes:l,beforeSend:n==null?void 0:n.beforeSend,flushIntervalMs:(s=n==null?void 0:n.flushIntervalMs)!==null&&s!==void 0?s:1e4,maxSeriesPerFlush:(a=n==null?void 0:n.maxSeriesPerFlush)!==null&&a!==void 0?a:1e3},this.Ae)),this.$a}count(e,t,n){t===void 0&&(t=1),this.Ba().count(e,t,n)}
858gauge(e,t,n){this.Ba().gauge(e,t,n)}histogram(e,t,n){this.Ba().histogram(e,t,n)}flush(e){if(!this.$a)return Promise.resolve();if(e){var t=this.$a.drainWindow();return t&&this.It(t,e),Promise.resolve()}return this.$a.flush().catch(n=>this.Ae.error("PostHog metrics flush failed:",n))}reset(){var e;(e=this.$a)==null||e.reset()}qa(){var e=this._instance,t=this;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},It:n=>t.It(n),getLibraryId:()=>nr.LIB_NAME,getLibraryVersion:()=>nr.LIB_VERSION}}It(e,t){return new Promise(n=>{var r=!1,i=s=>{r||(r=!0,clearTimeout(o),n(s))},o=setTimeout(()=>i({kind:"retry-later",error:new Error("metrics request timed out")}),9e4);this._instance._send_request(he({method:"POST",url:this.Ya(),data:e,compression:"best-available",batchKey:"metrics"},t&&{transport:t},{fireCallbackOnDrop:!0,callback(s){var a=s.statusCode;if(a>=200&&300>a)i({kind:"ok"});else if(a===413)i({kind:"too-large"});else if(a!==0&&a!==429&&500>a)i({kind:"fatal",error:new Error("metrics request failed with status "+a)});else{var l;i({kind:"retry-later",error:(l=s.error)!==null&&l!==void 0?l:new Error("metrics request failed with status "+a)})}}}))})}Ya(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}},f8e=he({},PR,e8e,t8e,n8e,r8e,i8e,s8e,o8e,a8e,l8e,c8e,u8e,d8e);ka.__defaultExtensionClasses=he({},f8e);var cnn=function(){nr.SDK_DIST_CHANNEL="npm";var e=Dx[dv]=new ka;return function(){function t(){t.done||(t.done=!0,ime=!1,Cn(Dx,function(n){n._dom_loaded()}))}Te!=null&&Te.addEventListener?Te.readyState==="complete"?t():ir(Te,"DOMContentLoaded",t,{capture:!1}):te&&xe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),e}();function hT(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hT=function(n){return typeof n}:hT=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hT(e)}
858function h8e(e){return hT(e)=="object"&&e!==null}var ome=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function Ij(e,t){for(var n=/\r\n|[\n\r]/g,r=1,i=t+1,o;(o=n.exec(e.body))&&o.index<t;)r+=1,i=t+1-(o.index+o[0].length);return{line:r,column:i}}function p8e(e){return sme(e.source,Ij(e.source,e.start))}function sme(e,t){var n=e.locationOffset.column-1,r=pT(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,l=t.column+a,c="".concat(e.name,":").concat(s,":").concat(l,` 859`),u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){for(var f=Math.floor(l/80),h=l%80,p=[],m=0;m<d.length;m+=80)p.push(d.slice(m,m+80));return c+GY([["".concat(s),p[0]]].concat(p.slice(1,f+1).map(function(g){return["",g]}),[[" ",pT(h-1)+"^"],["",p[f+1]]]))}return c+GY([["".concat(s-1),u[i-1]],["".concat(s),d],["",pT(l-1)+"^"],["".concat(s+1),u[i+1]]])}function GY(e){var t=e.filter(function(r){r[0];var i=r[1];return i!==void 0}),n=Math.max.apply(Math,t.map(function(r){var i=r[0];return i.length}));return t.map(function(r){var i=r[0],o=r[1];return m8e(n,i)+(o?" | "+o:" |")}).join(` 860`)}function pT(e){return Array(e+1).join(" ")}function m8e(e,t){return pT(e-t.length)+t}function mT(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mT=function(n){return typeof n}:mT=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mT(e)}function YY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function g8e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YY(Object(n),!0).forEach(function(r){v8e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YY(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b8e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w8e(e,t,n){return t&&b8e(e.prototype,t),e}function x8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&UE(e,t)}function E8e(e){var t=lme();return function(){var r=VE(e),i;if(t){var o=VE(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ame(this,i)}}function ame(e,t){return t&&(mT(t)==="object"||typeof t=="function")?t:Jw(e)}function Jw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rj(e){var t=typeof Map=="function"?new Map:void 0;return Rj=function(r){if(r===null||!S8e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return gT(r,arguments,VE(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),UE(i,r)},Rj(e)}function gT(e,t,n){return lme()?gT=Reflect.construct:gT=function(i,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(i,a),c=new l;return s&&UE(c,s.prototype),c},gT.apply(null,arguments)}function lme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function S8e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function UE(e,t){return UE=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},UE(e,t)}
860function VE(e){return VE=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},VE(e)}var Lx=function(e){x8e(n,e);var t=E8e(n);function n(r,i,o,s,a,l,c){var u,d,f,h;y8e(this,n),h=t.call(this,r),h.name="GraphQLError",h.originalError=l??void 0,h.nodes=XY(Array.isArray(i)?i:i?[i]:void 0);for(var p=[],m=0,g=(v=h.nodes)!==null&&v!==void 0?v:[];m<g.length;m++){var v,b=g[m],w=b.loc;w!=null&&p.push(w)}p=XY(p),h.source=o??((u=p)===null||u===void 0?void 0:u[0].source),h.positions=s??((d=p)===null||d===void 0?void 0:d.map(function(E){return E.start})),h.locations=s&&o?s.map(function(E){return Ij(o,E)}):(f=p)===null||f===void 0?void 0:f.map(function(E){return Ij(E.source,E.start)}),h.path=a??void 0;var x=l==null?void 0:l.extensions;return c==null&&h8e(x)?h.extensions=g8e({},x):h.extensions=c??{},Object.defineProperties(Jw(h),{message:{enumerable:!0},locations:{enumerable:h.locations!=null},path:{enumerable:h.path!=null},extensions:{enumerable:h.extensions!=null&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),l!=null&&l.stack?(Object.defineProperty(Jw(h),"stack",{value:l.stack,writable:!0,configurable:!0}),ame(h)):(Error.captureStackTrace?Error.captureStackTrace(Jw(h),n):Object.defineProperty(Jw(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return w8e(n,[{key:"toString",value:function(){return _8e(this)}},{key:ome,get:function(){return"Object"}}]),n}(Rj(Error));function XY(e){return e===void 0||e.length===0?void 0:e}function _8e(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+=` 861 862`+p8e(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var a=s[o];t+=` 863 864`+sme(e.source,a)}return t}function Fs(e,t,n){return new Lx("Syntax Error: ".concat(n),void 0,e,[t])}var ft=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function k8e(e,t){var n=!!e;if(!n)throw new Error("Unexpected invariant triggered.")}var Mj=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;function cme(e){var t=e.prototype.toJSON;typeof t=="function"||k8e(0),e.prototype.inspect=t,Mj&&(e.prototype[Mj]=t)}var ume=function(){function e(n,r,i){this.start=n.start,this.end=r.end,this.startToken=n,this.endToken=r,this.source=i}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();cme(ume);var Sr=function(){function e(n,r,i,o,s,a,l){this.kind=n,this.start=r,this.end=i,this.line=o,this.column=s,this.value=l,this.prev=a,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();cme(Sr);function ZY(e){return e!=null&&typeof e.kind=="string"}var ae=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}
864",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function vT(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vT=function(n){return typeof n}:vT=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vT(e)}var C8e=10,dme=2;function fme(e){return IR(e,[])}function IR(e,t){switch(vT(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":T8e(e,t);default:return String(e)}}function T8e(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var n=[].concat(t,[e]),r=P8e(e);if(r!==void 0){var i=r.call(e);if(i!==e)return typeof i=="string"?i:IR(i,n)}else if(Array.isArray(e))return O8e(e,n);return A8e(e,n)}function A8e(e,t){var n=Object.keys(e);if(n.length===0)return"{}";if(t.length>dme)return"["+I8e(e)+"]";var r=n.map(function(i){var o=IR(e[i],t);return i+": "+o});return"{ "+r.join(", ")+" }"}function O8e(e,t){if(e.length===0)return"[]";if(t.length>dme)return"[Array]";for(var n=Math.min(C8e,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(IR(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function P8e(e){var t=e[String(Mj)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function I8e(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){var n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function X2(e,t){var n=!!e;if(!n)throw new Error(t)}const R8e=function(t,n){return t instanceof n};function M8e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N8e(e,t,n){return t&&M8e(e.prototype,t),e}var hme=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||X2(0,"Body must be a string. Received: ".concat(fme(t),".")),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||X2(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||X2(0,"column in locationOffset is 1-indexed and must be positive.")}return N8e(e,[{key:ome,get:function(){return"Source"}}]),e}();function D8e(e){return R8e(e,hme)}var L8e=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function $8e(e){var t=e.split(/\r\n|[\n\r]/g),n=F8e(e);if(n!==0)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&QY(t[i]);)++i;for(var o=t.length;o>i&&QY(t[o-1]);)--o;return t.slice(i,o).join(` 865`)}function QY(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function F8e(e){for(var t,n=!0,r=!0,i=0,o=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:e.charCodeAt(s+1)===10&&++s;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(o===null||i<o)&&(o=i),r=!1}return(t=o)!==null&&t!==void 0?t:0}function B8e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.indexOf(` 866`)===-1,i=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]==="\\",a=!r||o||s||n,l="";return a&&!(r&&i)&&(l+=` 867`+t),l+=t?e.replace(/\n/g,` 868`+t):e,a&&(l+=` 869`),'"""'+l.replace(/"""/g,'\\"""')+'"""'}var j8e=function(){function e(n){var r=new Sr(ae.SOF,0,0,0,0,null);this.source=n,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var r=this.token=this.lookahead();return r},t.lookahead=function(){var r=this.token;if(r.kind!==ae.EOF)do{var i;
869r=(i=r.next)!==null&&i!==void 0?i:r.next=U8e(this,r)}while(r.kind===ae.COMMENT);return r},e}();function z8e(e){return e===ae.BANG||e===ae.DOLLAR||e===ae.AMP||e===ae.PAREN_L||e===ae.PAREN_R||e===ae.SPREAD||e===ae.COLON||e===ae.EQUALS||e===ae.AT||e===ae.BRACKET_L||e===ae.BRACKET_R||e===ae.BRACE_L||e===ae.PIPE||e===ae.BRACE_R}function Nm(e){return isNaN(e)?ae.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function U8e(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var s=r.charCodeAt(o),a=e.line,l=1+o-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new Sr(ae.BANG,o,o+1,a,l,t);case 35:return W8e(n,o,a,l,t);case 36:return new Sr(ae.DOLLAR,o,o+1,a,l,t);case 38:return new Sr(ae.AMP,o,o+1,a,l,t);case 40:return new Sr(ae.PAREN_L,o,o+1,a,l,t);case 41:return new Sr(ae.PAREN_R,o,o+1,a,l,t);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return new Sr(ae.SPREAD,o,o+3,a,l,t);break;case 58:return new Sr(ae.COLON,o,o+1,a,l,t);case 61:return new Sr(ae.EQUALS,o,o+1,a,l,t);case 64:return new Sr(ae.AT,o,o+1,a,l,t);case 91:return new Sr(ae.BRACKET_L,o,o+1,a,l,t);case 93:return new Sr(ae.BRACKET_R,o,o+1,a,l,t);case 123:return new Sr(ae.BRACE_L,o,o+1,a,l,t);case 124:return new Sr(ae.PIPE,o,o+1,a,l,t);case 125:return new Sr(ae.BRACE_R,o,o+1,a,l,t);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?q8e(n,o,a,l,t,e):K8e(n,o,a,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return H8e(n,o,s,a,l,t);
869case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Y8e(n,o,a,l,t)}throw Fs(n,o,V8e(s))}var c=e.line,u=1+o-e.lineStart;return new Sr(ae.EOF,i,i,c,u,t)}function V8e(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(Nm(e),"."):e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Nm(e),".")}function W8e(e,t,n,r,i){var o=e.body,s,a=t;do s=o.charCodeAt(++a);while(!isNaN(s)&&(s>31||s===9));return new Sr(ae.COMMENT,t,a,n,r,i,o.slice(t+1,a))}function H8e(e,t,n,r,i,o){var s=e.body,a=n,l=t,c=!1;if(a===45&&(a=s.charCodeAt(++l)),a===48){if(a=s.charCodeAt(++l),a>=48&&a<=57)throw Fs(e,l,"Invalid number, unexpected digit after 0: ".concat(Nm(a),"."))}else l=Z2(e,l,a),a=s.charCodeAt(l);if(a===46&&(c=!0,a=s.charCodeAt(++l),l=Z2(e,l,a),a=s.charCodeAt(l)),(a===69||a===101)&&(c=!0,a=s.charCodeAt(++l),(a===43||a===45)&&(a=s.charCodeAt(++l)),l=Z2(e,l,a),a=s.charCodeAt(l)),a===46||X8e(a))throw Fs(e,l,"Invalid number, expected digit but got: ".concat(Nm(a),"."));return new Sr(c?ae.FLOAT:ae.INT,t,l,r,i,o,s.slice(t,l))}function Z2(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do o=r.charCodeAt(++i);while(o>=48&&o<=57);return i}throw Fs(e,i,"Invalid number, expected digit but got: ".concat(Nm(o),"."))}
869function K8e(e,t,n,r,i){for(var o=e.body,s=t+1,a=s,l=0,c="";s<o.length&&!isNaN(l=o.charCodeAt(s))&&l!==10&&l!==13;){if(l===34)return c+=o.slice(a,s),new Sr(ae.STRING,t,s+1,n,r,i,c);if(l<32&&l!==9)throw Fs(e,s,"Invalid character within String: ".concat(Nm(l),"."));if(++s,l===92){switch(c+=o.slice(a,s-1),l=o.charCodeAt(s),l){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=` 870`;break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:{var u=G8e(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(u<0){var d=o.slice(s+1,s+5);throw Fs(e,s,"Invalid character escape sequence: \\u".concat(d,"."))}c+=String.fromCharCode(u),s+=4;break}default:throw Fs(e,s,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}++s,a=s}}throw Fs(e,s,"Unterminated string.")}function q8e(e,t,n,r,i,o){for(var s=e.body,a=t+3,l=a,c=0,u="";a<s.length&&!isNaN(c=s.charCodeAt(a));){if(c===34&&s.charCodeAt(a+1)===34&&s.charCodeAt(a+2)===34)return u+=s.slice(l,a),new Sr(ae.BLOCK_STRING,t,a+3,n,r,i,$8e(u));if(c<32&&c!==9&&c!==10&&c!==13)throw Fs(e,a,"Invalid character within String: ".concat(Nm(c),"."));c===10?(++a,++o.line,o.lineStart=a):c===13?(s.charCodeAt(a+1)===10?a+=2:++a,++o.line,o.lineStart=a):c===92&&s.charCodeAt(a+1)===34&&s.charCodeAt(a+2)===34&&s.charCodeAt(a+3)===34?(u+=s.slice(l,a)+'"""',a+=4,l=a):++a}throw Fs(e,a,"Unterminated string.")}function G8e(e,t,n,r){return Sk(e)<<12|Sk(t)<<8|Sk(n)<<4|Sk(r)}function Sk(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Y8e(e,t,n,r,i){for(var o=e.body,s=o.length,a=t+1,l=0;a!==s&&!isNaN(l=o.charCodeAt(a))&&(l===95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++a;return new Sr(ae.NAME,t,a,n,r,i,o.slice(t,a))}function X8e(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function Q2(e,t){var n=new Z8e(e,t);return n.parseDocument()}var Z8e=function(){function e(n,r){var i=D8e(n)?n:new hme(n);this._lexer=new j8e(i),this._options=r}var t=e.prototype;return t.parseName=function(){var r=this.expectToken(ae.NAME);return{kind:ft.NAME,value:r.value,loc:this.loc(r)}},t.parseDocument=function(){var r=this._lexer.token;return{kind:ft.DOCUMENT,definitions:this.many(ae.SOF,this.parseDefinition,ae.EOF),loc:this.loc(r)}},t.parseDefinition=function(){if(this.peek(ae.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(ae.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var r=this._lexer.token;if(this.peek(ae.BRACE_L))return{kind:ft.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var i=this.parseOperationType(),o;return this.peek(ae.NAME)&&(o=this.parseName()),{kind:ft.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},t.parseOperationType=function(){var r=this.expectToken(ae.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},t.parseVariableDefinitions=function(){return this.optionalMany(ae.PAREN_L,this.parseVariableDefinition,ae.PAREN_R)},t.parseVariableDefinition=function(){var r=this._lexer.token;return{kind:ft.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ae.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ae.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},t.parseVariable=function(){var r=this._lexer.token;return this.expectToken(ae.DOLLAR),{kind:ft.VARIABLE,name:this.parseName(),loc:this.loc(r)}
870},t.parseSelectionSet=function(){var r=this._lexer.token;return{kind:ft.SELECTION_SET,selections:this.many(ae.BRACE_L,this.parseSelection,ae.BRACE_R),loc:this.loc(r)}},t.parseSelection=function(){return this.peek(ae.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var r=this._lexer.token,i=this.parseName(),o,s;return this.expectOptionalToken(ae.COLON)?(o=i,s=this.parseName()):s=i,{kind:ft.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ae.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(r){var i=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(ae.PAREN_L,i,ae.PAREN_R)},t.parseArgument=function(){var r=this._lexer.token,i=this.parseName();return this.expectToken(ae.COLON),{kind:ft.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(r)}},t.parseConstArgument=function(){var r=this._lexer.token;return{kind:ft.ARGUMENT,name:this.parseName(),value:(this.expectToken(ae.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},t.parseFragment=function(){var r=this._lexer.token;this.expectToken(ae.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(ae.NAME)?{kind:ft.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:ft.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},t.parseFragmentDefinition=function(){var r,i=this._lexer.token;return this.expectKeyword("fragment"),((r=this._options)===null||r===void 0?void 0:r.experimentalFragmentVariables)===!0?{kind:ft.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:ft.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(r){var i=this._lexer.token;switch(i.kind){case ae.BRACKET_L:return this.parseList(r);case ae.BRACE_L:return this.parseObject(r);case ae.INT:return this._lexer.advance(),{kind:ft.INT,value:i.value,loc:this.loc(i)};case ae.FLOAT:return this._lexer.advance(),{kind:ft.FLOAT,value:i.value,loc:this.loc(i)};case ae.STRING:case ae.BLOCK_STRING:return this.parseStringLiteral();case ae.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:ft.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:ft.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:ft.NULL,loc:this.loc(i)};default:return{kind:ft.ENUM,value:i.value,loc:this.loc(i)}}case ae.DOLLAR:if(!r)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var r=this._lexer.token;return this._lexer.advance(),{kind:ft.STRING,value:r.value,block:r.kind===ae.BLOCK_STRING,loc:this.loc(r)}},t.parseList=function(r){var i=this,o=this._lexer.token,s=function(){return i.parseValueLiteral(r)};return{kind:ft.LIST,values:this.any(ae.BRACKET_L,s,ae.BRACKET_R),loc:this.loc(o)}},t.parseObject=function(r){var i=this,o=this._lexer.token,s=function(){return i.parseObjectField(r)};return{kind:ft.OBJECT,fields:this.any(ae.BRACE_L,s,ae.BRACE_R),loc:this.loc(o)}},t.parseObjectField=function(r){var i=this._lexer.token,o=this.parseName();return this.expectToken(ae.COLON),{kind:ft.OBJECT_FIELD,name:o,value:this.parseValueLiteral(r),loc:this.loc(i)}},t.parseDirectives=function(r){for(var i=[];this.peek(ae.AT);)i.push(this.parseDirective(r));return i},t.parseDirective=function(r){var i=this._lexer.token;return this.expectToken(ae.AT),{kind:ft.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(i)}},t.parseTypeReference=function(){var r=this._lexer.token,i;return this.expectOptionalToken(ae.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(ae.BRACKET_R),i={kind:ft.LIST_TYPE,type:i,loc:this.loc(r)}
870):i=this.parseNamedType(),this.expectOptionalToken(ae.BANG)?{kind:ft.NON_NULL_TYPE,type:i,loc:this.loc(r)}:i},t.parseNamedType=function(){var r=this._lexer.token;return{kind:ft.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},t.parseTypeSystemDefinition=function(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===ae.NAME)switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(r)},t.peekDescription=function(){return this.peek(ae.STRING)||this.peek(ae.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),s=this.many(ae.BRACE_L,this.parseOperationTypeDefinition,ae.BRACE_R);return{kind:ft.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:s,loc:this.loc(r)}},t.parseOperationTypeDefinition=function(){var r=this._lexer.token,i=this.parseOperationType();this.expectToken(ae.COLON);var o=this.parseNamedType();return{kind:ft.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(r)}},t.parseScalarTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),s=this.parseDirectives(!0);return{kind:ft.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(r)}},t.parseObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),s=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),l=this.parseFieldsDefinition();return{kind:ft.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:a,fields:l,loc:this.loc(r)}},t.parseImplementsInterfaces=function(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(ae.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(ae.AMP)||this.peek(ae.NAME));return i}return this.delimitedMany(ae.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var r;return((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLEmptyFields)===!0&&this.peek(ae.BRACE_L)&&this._lexer.lookahead().kind===ae.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(ae.BRACE_L,this.parseFieldDefinition,ae.BRACE_R)},t.parseFieldDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(ae.COLON);var a=this.parseTypeReference(),l=this.parseDirectives(!0);return{kind:ft.FIELD_DEFINITION,description:i,name:o,arguments:s,type:a,directives:l,loc:this.loc(r)}},t.parseArgumentDefs=function(){return this.optionalMany(ae.PAREN_L,this.parseInputValueDef,ae.PAREN_R)},t.parseInputValueDef=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(ae.COLON);var s=this.parseTypeReference(),a;this.expectOptionalToken(ae.EQUALS)&&(a=this.parseValueLiteral(!0));var l=this.parseDirectives(!0);return{kind:ft.INPUT_VALUE_DEFINITION,description:i,name:o,type:s,defaultValue:a,directives:l,loc:this.loc(r)}},t.parseInterfaceTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),s=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),l=this.parseFieldsDefinition();return{kind:ft.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:a,fields:l,loc:this.loc(r)}},t.parseUnionTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),s=this.parseDirectives(!0),a=this.parseUnionMemberTypes();return{kind:ft.UNION_TYPE_DEFINITION,description:i,name:o,directives:s,types:a,loc:this.loc(r)}
870},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(ae.EQUALS)?this.delimitedMany(ae.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),s=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();return{kind:ft.ENUM_TYPE_DEFINITION,description:i,name:o,directives:s,values:a,loc:this.loc(r)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(ae.BRACE_L,this.parseEnumValueDefinition,ae.BRACE_R)},t.parseEnumValueDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:ft.ENUM_VALUE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(r)}},t.parseInputObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),s=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();return{kind:ft.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:s,fields:a,loc:this.loc(r)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(ae.BRACE_L,this.parseInputValueDef,ae.BRACE_R)},t.parseTypeSystemExtension=function(){var r=this._lexer.lookahead();if(r.kind===ae.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)},t.parseSchemaExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.optionalMany(ae.BRACE_L,this.parseOperationTypeDefinition,ae.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:ft.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(r)}},t.parseScalarTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:ft.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(r)}},t.parseObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),a=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&a.length===0)throw this.unexpected();return{kind:ft.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:a,loc:this.loc(r)}},t.parseInterfaceTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),a=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&a.length===0)throw this.unexpected();return{kind:ft.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:a,loc:this.loc(r)}},t.parseUnionTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:ft.UNION_TYPE_EXTENSION,name:i,directives:o,types:s,loc:this.loc(r)}},t.parseEnumTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:ft.ENUM_TYPE_EXTENSION,name:i,directives:o,values:s,loc:this.loc(r)}},t.parseInputObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:ft.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:s,loc:this.loc(r)}
870},t.parseDirectiveDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ae.AT);var o=this.parseName(),s=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var l=this.parseDirectiveLocations();return{kind:ft.DIRECTIVE_DEFINITION,description:i,name:o,arguments:s,repeatable:a,locations:l,loc:this.loc(r)}},t.parseDirectiveLocations=function(){return this.delimitedMany(ae.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var r=this._lexer.token,i=this.parseName();if(L8e[i.value]!==void 0)return i;throw this.unexpected(r)},t.loc=function(r){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new ume(r,this._lexer.lastToken,this._lexer.source)},t.peek=function(r){return this._lexer.token.kind===r},t.expectToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i;throw Fs(this._lexer.source,i.start,"Expected ".concat(pme(r),", found ").concat(J2(i),"."))},t.expectOptionalToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i},t.expectKeyword=function(r){var i=this._lexer.token;if(i.kind===ae.NAME&&i.value===r)this._lexer.advance();else throw Fs(this._lexer.source,i.start,'Expected "'.concat(r,'", found ').concat(J2(i),"."))},t.expectOptionalKeyword=function(r){var i=this._lexer.token;return i.kind===ae.NAME&&i.value===r?(this._lexer.advance(),!0):!1},t.unexpected=function(r){var i=r??this._lexer.token;return Fs(this._lexer.source,i.start,"Unexpected ".concat(J2(i),"."))},t.any=function(r,i,o){this.expectToken(r);for(var s=[];!this.expectOptionalToken(o);)s.push(i.call(this));return s},t.optionalMany=function(r,i,o){if(this.expectOptionalToken(r)){var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s}return[]},t.many=function(r,i,o){this.expectToken(r);var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s},t.delimitedMany=function(r,i){this.expectOptionalToken(r);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(r));return o},e}();function J2(e){var t=e.value;return pme(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function pme(e){return z8e(e)?'"'.concat(e,'"'):e}var Q8e={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},J8e=Object.freeze({});function e7e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q8e,r=void 0,i=Array.isArray(e),o=[e],s=-1,a=[],l=void 0,c=void 0,u=void 0,d=[],f=[],h=e;do{s++;var p=s===o.length,m=p&&a.length!==0;if(p){if(c=f.length===0?void 0:d[d.length-1],l=u,u=f.pop(),m){if(i)l=l.slice();else{for(var g={},v=0,b=Object.keys(l);v<b.length;v++){var w=b[v];g[w]=l[w]}l=g}for(var x=0,E=0;E<a.length;E++){var S=a[E][0],_=a[E][1];i&&(S-=x),i&&_===null?(l.splice(S,1),x++):l[S]=_}}s=r.index,o=r.keys,a=r.edits,i=r.inArray,r=r.prev}else{if(c=u?i?s:o[s]:void 0,l=u?u[c]:h,l==null)continue;u&&d.push(c)}var k=void 0;if(!Array.isArray(l)){if(!ZY(l))throw new Error("Invalid AST Node: ".concat(fme(l),"."));
870var C=t7e(t,l.kind,p);if(C){if(k=C.call(t,l,c,u,d,f),k===J8e)break;if(k===!1){if(!p){d.pop();continue}}else if(k!==void 0&&(a.push([c,k]),!p))if(ZY(k))l=k;else{d.pop();continue}}}if(k===void 0&&m&&a.push([c,l]),p)d.pop();else{var T;r={inArray:i,index:s,keys:o,edits:a,prev:r},i=Array.isArray(l),o=i?l:(T=n[l.kind])!==null&&T!==void 0?T:[],s=-1,a=[],u&&f.push(u),u=l}}while(r!==void 0);return a.length!==0&&(h=a[a.length-1][1]),h}function t7e(e,t,n){var r=e[t];if(r){if(!n&&typeof r=="function")return r;var i=n?r.leave:r.enter;if(typeof i=="function")return i}else{var o=n?e.leave:e.enter;if(o){if(typeof o=="function")return o;var s=o[t];if(typeof s=="function")return s}}}function rw(e){return e7e(e,{leave:r7e})}var n7e=80,r7e={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return We(t.definitions,` 871 872`)+` 873`},OperationDefinition:function(t){var n=t.operation,r=t.name,i=dr("(",We(t.variableDefinitions,", "),")"),o=We(t.directives," "),s=t.selectionSet;return!r&&!o&&!i&&n==="query"?s:We([n,We([r,i]),o,s]," ")},VariableDefinition:function(t){var n=t.variable,r=t.type,i=t.defaultValue,o=t.directives;return n+": "+r+dr(" = ",i)+dr(" ",We(o," "))},SelectionSet:function(t){var n=t.selections;return Ja(n)},Field:function(t){var n=t.alias,r=t.name,i=t.arguments,o=t.directives,s=t.selectionSet,a=dr("",n,": ")+r,l=a+dr("(",We(i,", "),")");return l.length>n7e&&(l=a+dr(`( 874`,yT(We(i,` 875`)),` 876)`)),We([l,We(o," "),s]," ")},Argument:function(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function(t){var n=t.name,r=t.directives;return"..."+n+dr(" ",We(r," "))},InlineFragment:function(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return We(["...",dr("on ",n),We(r," "),i]," ")},FragmentDefinition:function(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(dr("(",We(i,", "),")")," ")+"on ".concat(r," ").concat(dr("",We(o," ")," "))+s},IntValue:function(t){var n=t.value;return n},FloatValue:function(t){var n=t.value;return n},StringValue:function(t,n){var r=t.value,i=t.block;return i?B8e(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function(t){var n=t.value;return n?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var n=t.value;return n},ListValue:function(t){var n=t.values;return"["+We(n,", ")+"]"},ObjectValue:function(t){var n=t.fields;return"{"+We(n,", ")+"}"},ObjectField:function(t){var n=t.name,r=t.value;return n+": "+r},Directive:function(t){var n=t.name,r=t.arguments;return"@"+n+dr("(",We(r,", "),")")},NamedType:function(t){var n=t.name;return n},ListType:function(t){var n=t.type;return"["+n+"]"},NonNullType:function(t){var n=t.type;return n+"!"},SchemaDefinition:Qa(function(e){var t=e.directives,n=e.operationTypes;return We(["schema",We(t," "),Ja(n)]," ")}),OperationTypeDefinition:function(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:Qa(function(e){var t=e.name,n=e.directives;return We(["scalar",t,We(n," ")]," ")}),ObjectTypeDefinition:Qa(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return We(["type",t,dr("implements ",We(n," & ")),We(r," "),Ja(i)]," ")}),FieldDefinition:Qa(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(JY(n)?dr(`( 877`,yT(We(n,` 878`)),` 879)`):dr("(",We(n,", "),")"))+": "+r+dr(" ",We(i," "))}),InputValueDefinition:Qa(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return We([t+": "+n,dr("= ",r),We(i," ")]," ")}),InterfaceTypeDefinition:Qa(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return We(["interface",t,dr("implements ",We(n," & ")),We(r," "),Ja(i)]," ")}),UnionTypeDefinition:Qa(function(e){var t=e.name,n=e.directives,r=e.types;return We(["union",t,We(n," "),r&&r.length!==0?"= "+We(r," | "):""]," ")}),EnumTypeDefinition:Qa(function(e){var t=e.name,n=e.directives,r=e.values;return We(["enum",t,We(n," "),Ja(r)]," ")}),EnumValueDefinition:Qa(function(e){var t=e.name,n=e.directives;return We([t,We(n," ")]," ")}),InputObjectTypeDefinition:Qa(function(e){var t=e.name,n=e.directives,r=e.fields;return We(["input",t,We(n," "),Ja(r)]," ")}),DirectiveDefinition:Qa(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(JY(n)?dr(`( 880`,yT(We(n,` 881`)),` 882)`):dr("(",We(n,", "),")"))+(r?" repeatable":"")+" on "+We(i," | ")}),SchemaExtension:function(t){var n=t.directives,r=t.operationTypes;return We(["extend schema",We(n," "),Ja(r)]," ")},ScalarTypeExtension:function(t){var n=t.name,r=t.directives;return We(["extend scalar",n,We(r," ")]," ")},ObjectTypeExtension:function(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return We(["extend type",n,dr("implements ",We(r," & ")),We(i," "),Ja(o)]," ")},InterfaceTypeExtension:function(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return We(["extend interface",n,dr("implements ",We(r," & ")),We(i," "),Ja(o)]," ")},UnionTypeExtension:function(t){var n=t.name,r=t.directives,i=t.types;return We(["extend union",n,We(r," "),i&&i.length!==0?"= "+We(i," | "):""]," ")},EnumTypeExtension:function(t){var n=t.name,r=t.directives,i=t.values;return We(["extend enum",n,We(r," "),Ja(i)]," ")},InputObjectTypeExtension:function(t){var n=t.name,r=t.directives,i=t.fields;return We(["extend input",n,We(r," "),Ja(i)]," ")}};function Qa(e){return function(t){return We([t.description,e(t)],` 883`)}}function We(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(r){return r}).join(n))!==null&&t!==void 0?t:""}function Ja(e){return dr(`{ 884`,yT(We(e,`
885`)),` 886}`)}function dr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function yT(e){return dr(" ",e.replace(/\n/g,` 887 `))}function i7e(e){return e.indexOf(` 888`)!==-1}function JY(e){return e!=null&&e.some(i7e)}class WE extends MA{constructor(t){super(t),this.constructor=WE,Object.setPrototypeOf(this,WE.prototype)}}class HE extends WE{constructor(t={}){super({name:"CanceledError",message:"Request is canceled by user",...t}),this.constructor=HE,Object.setPrototypeOf(this,HE.prototype)}}const o7e=e=>!!e&&e instanceof HE;var Nj;(function(e){e.InvalidApiName="InvalidApiName"})(Nj||(Nj={}));Nj.InvalidApiName+"";const mme=async e=>{var n;if(!e)return;const t=await Lh(s7e(e));if(t){const r=await((n=e.body)==null?void 0:n.text());return a7e(t,{statusCode:e.statusCode,headers:e.headers,body:r})}},s7e=e=>{let t;const n=new Proxy(e.body,{get(i,o,s){return o==="json"?async()=>{t||(t=i.text());try{return JSON.parse(await t)}catch{return{}}}:o==="text"?async()=>(t||(t=i.text()),t):Reflect.get(i,o,s)}});return new Proxy(e,{get(i,o,s){return o==="body"?n:Reflect.get(i,o,s)}})},a7e=(e,t)=>{const n=new WE({name:e==null?void 0:e.name,message:e.message,underlyingError:e,response:t});return Object.assign(n,{$metadata:e.$metadata})},Dj=new pi("RestApis");function l7e(e,t,n,r){const i=t.signal;return(async()=>{try{const s=await e();if(s.statusCode>=300)throw await mme(s);return s}catch(s){if(s.name==="AbortError"||(i==null?void 0:i.aborted)===!0){const a=i.reason,l=new HE({...a&&{message:a},underlyingError:s,recoverySuggestion:"The API request was explicitly canceled. If this is not intended, validate if you called the `cancel()` function on the API request erroneously."});throw Dj.debug(l),l}throw Dj.debug(s),s}})()}const eX="execute-api",c7e="us-east-1",u7e=/^.+\.([a-z0-9-]+)\.([a-z0-9-]+)\.amazonaws\.com/,d7e=(e,t)=>{const{service:n=eX,region:r=c7e}={},{hostname:i}=e,[,o,s]=u7e.exec(i)??[];return o===eX?{service:o,region:s??r}:o==="appsync-api"?{service:"appsync",region:s??r}:{service:n,region:r}},f7e=({headers:e},t)=>!e.authorization&&!e["x-api-key"]&&!!t,h7e=e=>{var r,i,o,s,a,l;const t=(o=(i=(r=e.libraryOptions)==null?void 0:r.API)==null?void 0:i.REST)==null?void 0:o.retryStrategy,n=(l=(a=(s=e.libraryOptions)==null?void 0:s.API)==null?void 0:a.REST)==null?void 0:l.defaultAuthMode;return{retryStrategy:t,defaultAuthMode:n}},p7e=(e,t)=>{const n={};for(const r in e)n[r.toLowerCase()]=e[r];if(t){const r=n["content-type"];r&&(r.startsWith("application/json")||r.startsWith("application/")&&r.includes("+json"))||(n["content-type"]="application/json; charset=UTF-8"),t instanceof FormData&&delete n["content-type"]}return n},m7e=aS(X5,[Y5,G5,CUe]),g7e=aS(X5,[Y5,G5]),v7e=async(e,t,n,r)=>{const{url:i,method:o,headers:s,body:a,withCredentials:l,abortSignal:c,retryStrategy:u}=t,d=a?a instanceof FormData?a:JSON.stringify(a??""):void 0,f=p7e(s,a),h={url:i,headers:f,method:o,body:d},{retryStrategy:p,defaultAuthMode:m}=h7e(e),g={retryDecider:y7e(u??p),computeDelay:K5,withCrossDomainCredentials:l,abortSignal:c},v=t.defaultAuthMode??m;let b=null;v!=="none"&&(b=await b7e(e));let w;if(n(h,r)&&b){const E=d7e(i),S=(r==null?void 0:r.service)??E.service,_=(r==null?void 0:r.region)??E.region;w=await m7e(h,{...g,credentials:b,region:_,service:S})}else w=await g7e(h,{...g});return{statusCode:w.statusCode,headers:w.headers,body:w.body}},y7e=e=>(e==null?void 0:e.strategy)==="no-retry"?()=>Promise.resolve({retryable:!1}):q5(mme),b7e=async e=>{try{const{credentials:t}=await e.Auth.fetchAuthSession();if(t)return t}catch{Dj.debug("No credentials available, the request will be unsigned.")}return null},OV=new WeakMap,w7e=(e,{url:t,options:n,abortController:r})=>{const i=r??new AbortController,s=l7e(async()=>v7e(e,{url:t,method:"POST",...n,abortSignal:i.signal,retryStrategy:{strategy:"jittered-exponential-backoff"}},f7e,n==null?void 0:n.signingServiceInfo),i).finally(()=>{OV.delete(s)});return s},x7e=(e,t)=>{const n=OV.get(e);return n?(n.abort(t),t&&n.signal.reason!==t&&(n.signal.reason=t),!0):!1},E7e=(e,t)=>{OV.set(e,t)},S7e=5e3,_7e=[400,401,403],k7e=["BadRequestException","UnauthorizedException"],C7e="ConnectionStateChange";var Ao;(function(e){e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ack",e.DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPLETE="complete",e.GQL_ERROR="error",e.EVENT_SUBSCRIBE="subscribe",e.EVENT_PUBLISH="publish",e.EVENT_SUBSCRIBE_ACK="subscribe_success",e.EVENT_PUBLISH_ACK="publish_success",e.EVENT_STOP="unsubscribe",e.EVENT_COMPLETE="unsubscribe_success",e.EVENT_SUBSCRIBE_ERROR="subscribe_error"})(Ao||(Ao={}));var Nu;
888(function(e){e[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED"})(Nu||(Nu={}));var Co;(function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"})(Co||(Co={}));const T7e={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},tX=15e3,A7e=15e3,O7e=5*60*1e3,P7e=5*1e3,I7e=65*1e3,R7e=5*1e3,M7e=60*1e3;var nl;(function(e){e.CONNECTION_CLOSED="Connection closed",e.CONNECTION_FAILED="Connection failed",e.REALTIME_SUBSCRIPTION_INIT_ERROR="AppSync Realtime subscription init error",e.SUBSCRIPTION_ACK="Subscription ack",e.TIMEOUT_DISCONNECT="Timeout disconnect"})(nl||(nl={}));var _i;(function(e){e.Connected="Connected",e.ConnectedPendingNetwork="ConnectedPendingNetwork",e.ConnectionDisrupted="ConnectionDisrupted",e.ConnectionDisruptedPendingNetwork="ConnectionDisruptedPendingNetwork",e.Connecting="Connecting",e.ConnectedPendingDisconnect="ConnectedPendingDisconnect",e.Disconnected="Disconnected",e.ConnectedPendingKeepAlive="ConnectedPendingKeepAlive"})(_i||(_i={}));const nX=()=>new Jv().networkMonitor(),ba={KEEP_ALIVE_MISSED:{keepAliveState:"unhealthy"},KEEP_ALIVE:{keepAliveState:"healthy"},CONNECTION_ESTABLISHED:{connectionState:"connected"},CONNECTION_FAILED:{intendedConnectionState:"disconnected",connectionState:"disconnected"},CLOSING_CONNECTION:{intendedConnectionState:"disconnected"},OPENING_CONNECTION:{intendedConnectionState:"connected",connectionState:"connecting"},CLOSED:{connectionState:"disconnected"},ONLINE:{networkState:"connected"},OFFLINE:{networkState:"disconnected"}};class N7e{constructor(){this._networkMonitoringSubscription=void 0,this._linkedConnectionState={networkState:"connected",connectionState:"disconnected",intendedConnectionState:"disconnected",keepAliveState:"healthy"},this._initialNetworkStateSubscription=nX().subscribe(({online:t})=>{var n;this.record(t?ba.ONLINE:ba.OFFLINE),(n=this._initialNetworkStateSubscription)==null||n.unsubscribe()}),this._linkedConnectionStateObservable=new _s(t=>{t.next(this._linkedConnectionState),this._linkedConnectionStateObserver=t})}enableNetworkMonitoring(){var t;(t=this._initialNetworkStateSubscription)==null||t.unsubscribe(),this._networkMonitoringSubscription===void 0&&(this._networkMonitoringSubscription=nX().subscribe(({online:n})=>{this.record(n?ba.ONLINE:ba.OFFLINE)}))}disableNetworkMonitoring(){var t;(t=this._networkMonitoringSubscription)==null||t.unsubscribe(),this._networkMonitoringSubscription=void 0}get connectionStateObservable(){let t;return this._linkedConnectionStateObservable.pipe(H5(n=>this.connectionStatesTranslator(n))).pipe(E4e(n=>{const r=n!==t;return t=n,r}))}record(t){var r;t.intendedConnectionState==="connected"?this.enableNetworkMonitoring():t.intendedConnectionState==="disconnected"&&this.disableNetworkMonitoring();const n={...this._linkedConnectionState,...t};this._linkedConnectionState={...n},(r=this._linkedConnectionStateObserver)==null||r.next(this._linkedConnectionState)}connectionStatesTranslator({connectionState:t,networkState:n,intendedConnectionState:r,keepAliveState:i}){return t==="connected"&&n==="disconnected"?_i.ConnectedPendingNetwork:t==="connected"&&r==="disconnected"?_i.ConnectedPendingDisconnect:t==="disconnected"&&r==="connected"&&n==="disconnected"?_i.ConnectionDisruptedPendingNetwork:t==="disconnected"&&r==="connected"?_i.ConnectionDisrupted:t==="connected"&&i==="unhealthy"?_i.ConnectedPendingKeepAlive:t==="connecting"?_i.Connecting:t==="disconnected"?_i.Disconnected:_i.Connected}}var Xy;(function(e){e.START_RECONNECT="START_RECONNECT",e.HALT_RECONNECT="HALT_RECONNECT"})(Xy||(Xy={}));class D7e{constructor(){this.reconnectObservers=[]}addObserver(t){this.reconnectObservers.push(t)}record(t){t===Xy.START_RECONNECT&&this.reconnectSetTimeoutId===void 0&&this.reconnectIntervalId===void 0&&(this.reconnectSetTimeoutId=setTimeout(()=>{this._triggerReconnect(),this.reconnectIntervalId=setInterval(()=>{this._triggerReconnect()},M7e)},R7e)),t===Xy.HALT_RECONNECT&&(this.reconnectIntervalId&&(clearInterval(this.reconnectIntervalId),this.reconnectIntervalId=void 0),this.reconnectSetTimeoutId&&(clearTimeout(this.reconnectSetTimeoutId),this.reconnectSetTimeoutId=void 0))}
888close(){this.reconnectObservers.forEach(t=>{var n;(n=t.complete)==null||n.call(t)})}_triggerReconnect(){this.reconnectObservers.forEach(t=>{var n;(n=t.next)==null||n.call(t)})}}const rX="wss://",L7e=/^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/graphql$/i,$7e=/^https:\/\/\w{26}\.\w+-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/event$/i,iX="/realtime",F7e=e=>e.match(L7e)===null,B7e=e=>e.match($7e)!==null,j7e=e=>{let t=e??"";return B7e(t)?t=t.concat(iX).replace("ddpg-api","grt-gamma").replace("appsync-api","appsync-realtime-api"):F7e(t)?t=t.concat(iX):t=t.replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta").replace("ddpg-api","grt-gamma"),t=t.replace("https://",rX).replace("http://",rX),new Xs(t)},z7e=e=>{if(!e)return{};if("Authorization"in e){const{Authorization:t,...n}=e;return n}return e},U7e=e=>{const t=z7e(e),n=new Pfe;return Object.entries(t).forEach(([r,i])=>{n.append(r,i)}),n},V7e=(e,t)=>{const n=j7e(e),r=new Pfe(n.search);for(const[i,o]of t.entries())r.append(i,o);return n.search=r.toString(),n.toString()},eL=async e=>{const{appSyncGraphqlEndpoint:t,query:n,libraryConfigHeaders:r=()=>({}),additionalHeaders:i={},authToken:o}=e;let s={};const a=await r();return typeof i=="function"?s=await i({url:t||"",queryString:n||""}):s=i,o&&(s={...s,Authorization:o}),{additionalCustomHeaders:s,libraryConfigHeaders:a}},oX=new pi("AWSAppSyncRealTimeProvider Auth"),sX=async({host:e})=>{var n,r;const t=await ro();return{Authorization:(r=(n=t==null?void 0:t.tokens)==null?void 0:n.accessToken)==null?void 0:r.toString(),host:e}},W7e=async({apiKey:e,host:t})=>{const r=new Date().toISOString().replace(/[:-]|\.\d{3}/g,"");return{host:t,"x-amz-date":r,"x-api-key":e}},H7e=async({payload:e,canonicalUri:t,appSyncGraphqlEndpoint:n,region:r})=>{const i={region:r,service:"appsync"},o=(await ro()).credentials,s={url:`${n}${t}`,data:e,method:"POST",headers:{...T7e}};return Bfe({headers:s.headers,method:s.method,url:new Xs(s.url),body:s.data},{credentials:o,signingRegion:i.region,signingService:i.service}).headers},aX=async({host:e,additionalCustomHeaders:t})=>{if(!(t!=null&&t.Authorization))throw new Error("No auth token specified");return{Authorization:t.Authorization,host:e}},gme=async({apiKey:e,authenticationType:t,canonicalUri:n,appSyncGraphqlEndpoint:r,region:i,additionalCustomHeaders:o,payload:s})=>{const a={apiKey:W7e,iam:H7e,oidc:sX,userPool:sX,lambda:aX,none:aX};if(!t||!a[t]){oX.debug(`Authentication type ${t} not supported`);return}else{const l=a[t],c=r?new Xs(r).host:void 0,u=t==="apiKey"?e:void 0;return oX.debug(`Authenticating with ${JSON.stringify(t)}`),await l({payload:s,canonicalUri:n,appSyncGraphqlEndpoint:r,apiKey:u,region:i,host:c,additionalCustomHeaders:o})}},lX=e=>{Ml.dispatch("api",e,"PubSub",Rl)};class K7e{constructor(t){this.subscriptionObserverMap=new Map,this.allowNoSubscriptions=!1,this.socketStatus=Co.CLOSED,this.keepAliveTimestamp=Date.now(),this.promiseArray=[],this.connectionStateMonitor=new N7e,this.reconnectionMonitor=new D7e,this._establishConnection=async(n,r)=>{this.logger.debug(`Establishing WebSocket connection to ${n}`);try{await this._openConnection(n,r),await this._initiateHandshake()}catch(i){const{errorType:o,errorCode:s}=i;throw _7e.includes(s)||k7e.includes(o)?new OUe(o):o?new Error(o):i}},this.logger=new pi(t.providerName),this.wsProtocolName=t.wsProtocolName,this.wsConnectUri=t.connectUri,this.connectionStateMonitorSubscription=this._startConnectionStateMonitoring()}close(){return this.socketStatus=Co.CLOSED,this.connectionStateMonitor.record(ba.CONNECTION_FAILED),this.connectionStateMonitorSubscription.unsubscribe(),this.reconnectionMonitor.close(),new Promise((t,n)=>{this.awsRealTimeSocket?(this.awsRealTimeSocket.onclose=r=>{this._closeSocket(),this.subscriptionObserverMap=new Map,this.awsRealTimeSocket=void 0,t()},this.awsRealTimeSocket.onerror=r=>{n(r)},this.awsRealTimeSocket.close()):t()})}subscribe(t,n){return new _s(r=>{if(!(t!=null&&t.appSyncGraphqlEndpoint)){r.error({errors:[{...new Lx("Subscribe only available for AWS AppSync endpoint")}]}),r.complete();return}let i=!1;const o=RB(),s=()=>{i||(i=!0,this._startSubscriptionWithAWSAppSyncRealTime({options:t,observer:r,subscriptionId:o,customUserAgentDetails:n}).catch(l=>{this.logger.debug(`${nl.REALTIME_SUBSCRIPTION_INIT_ERROR}: ${l}`),this._closeSocket()}).finally(()=>{i=!1}))},a=new _s(l=>{this.reconnectionMonitor.addObserver(l)}).subscribe(()=>{s()});return s(),async()=>{await this._cleanupSubscription(o,a)}})}async connect(t){this.socketStatus!==Co.READY&&await this._connectWebSocket(t)}async publish(t,n){if(this.socketStatus!==Co.READY)throw new Error("Subscription has not been initialized");return this._publishMessage(t,n)}async _connectWebSocket(t){const{apiKey:n,appSyncGraphqlEndpoint:r,authenticationType:i,region:o}=t,{additionalCustomHeaders:s}=await eL(t);this.connectionStateMonitor.record(ba.OPENING_CONNECTION),await this._initializeWebSocketConnection({apiKey:n,appSyncGraphqlEndpoint:r,authenticationType:i,region:o,additionalCustomHeaders:s})}async _publishMessage(t,n){const r=RB(),{additionalCustomHeaders:i,libraryConfigHeaders:o}=await eL(t),s=await this._prepareSubscriptionPayload({options:t,subscriptionId:r,customUserAgentDetails:n,additionalCustomHeaders:i,libraryConfigHeaders:o,publish:!0});return new Promise((a,l)=>{if(this.awsRealTimeSocket){const c=h=>{const p=JSON.parse(h.data);if(p.id===r&&p.type==="publish_success"&&(this.awsRealTimeSocket&&this.awsRealTimeSocket.removeEventListener("message",c),f(),a()),p.errors&&p.errors.length>0){const m=p.errors.map(g=>g.errorType);f(),l(new Error(`Publish errors: ${m.join(", ")}`))}},u=h=>{f(),l(new Error(`WebSocket error: ${h}`))},d=()=>{f(),l(new Error("WebSocket is closed"))},f=()=>{var h,p,m;(h=this.awsRealTimeSocket)==null||h.removeEventListener("message",c),(p=this.awsRealTimeSocket)==null||p.removeEventListener("error",u),(m=this.awsRealTimeSocket)==null||m.removeEventListener("close",d)};this.awsRealTimeSocket.addEventListener("message",c),this.awsRealTimeSocket.addEventListener("error",u),this.awsRealTimeSocket.addEventListener("close",d),this.awsRealTimeSocket.send(s)}else l(new Error("WebSocket is not connected"))})}async _cleanupSubscription(t,n){n==null||n.unsubscribe();try{await this._waitForSubscriptionToBeConnected(t);const{subscriptionState:r}=this.subscriptionObserverMap.get(t)||{};if(!r)return;if(r===Nu.CONNECTED)this._sendUnsubscriptionMessage(t);else throw new Error("Subscription never connected")}catch(r){this.logger.debug(`Error while unsubscribing ${r}`)}finally{this._removeSubscriptionObserver(t)}}_startConnectionStateMonitoring(){return this.connectionStateMonitor.connectionStateObservable.subscribe(t=>{lX({event:C7e,data:{provider:this,connectionState:t},message:`Connection state is ${t}`}),this.connectionState=t,t===_i.ConnectionDisrupted&&this.reconnectionMonitor.record(Xy.START_RECONNECT),[_i.Connected,_i.ConnectedPendingDisconnect,_i.ConnectedPendingKeepAlive,_i.ConnectedPendingNetwork,_i.ConnectionDisruptedPendingNetwork,_i.Disconnected].includes(t)&&this.reconnectionMonitor.record(Xy.HALT_RECONNECT)})}async _startSubscriptionWithAWSAppSyncRealTime({options:t,observer:n,subscriptionId:r,customUserAgentDetails:i}
888){const{query:o,variables:s}=t;this.subscriptionObserverMap.set(r,{observer:n,query:o??"",variables:s??{},subscriptionState:Nu.PENDING,startAckTimeoutId:void 0});const{additionalCustomHeaders:a,libraryConfigHeaders:l}=await eL(t),c=await this._prepareSubscriptionPayload({options:t,subscriptionId:r,customUserAgentDetails:i,additionalCustomHeaders:a,libraryConfigHeaders:l});try{await this._connectWebSocket(t)}catch(f){this._logStartSubscriptionError(r,n,f);return}const{subscriptionFailedCallback:u,subscriptionReadyCallback:d}=this.subscriptionObserverMap.get(r)??{};this.subscriptionObserverMap.set(r,{observer:n,subscriptionState:Nu.PENDING,query:o??"",variables:s??{},subscriptionReadyCallback:d,subscriptionFailedCallback:u,startAckTimeoutId:setTimeout(()=>{this._timeoutStartSubscriptionAck(r)},A7e)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(c)}_logStartSubscriptionError(t,n,r){this.logger.debug({err:r});const i=String(r.message??"");if(this._closeSocket(),this.connectionState!==_i.ConnectionDisruptedPendingNetwork){Hde(r)?n.error({errors:[{...new Lx(`${nl.CONNECTION_FAILED}: ${i}`)}]}):this.logger.debug(`${nl.CONNECTION_FAILED}: ${i}`);const{subscriptionFailedCallback:o}=this.subscriptionObserverMap.get(t)||{};typeof o=="function"&&o()}}async _waitForSubscriptionToBeConnected(t){const n=this.subscriptionObserverMap.get(t);if(n){const{subscriptionState:r}=n;if(r===Nu.PENDING)return new Promise((i,o)=>{const{observer:s,subscriptionState:a,variables:l,query:c}=n;this.subscriptionObserverMap.set(t,{observer:s,subscriptionState:a,variables:l,query:c,subscriptionReadyCallback:i,subscriptionFailedCallback:o})})}}_sendUnsubscriptionMessage(t){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===Co.READY){const n=this._unsubscribeMessage(t),r=JSON.stringify(n);this.awsRealTimeSocket.send(r)}}catch(n){this.logger.debug({err:n})}}_removeSubscriptionObserver(t){this.subscriptionObserverMap.delete(t),this.allowNoSubscriptions||setTimeout(this._closeSocketIfRequired.bind(this),1e3)}_closeSocketIfRequired(){if(!(this.subscriptionObserverMap.size>0)){if(!this.awsRealTimeSocket){this.socketStatus=Co.CLOSED;return}if(this.connectionStateMonitor.record(ba.CLOSING_CONNECTION),this.awsRealTimeSocket.bufferedAmount>0)setTimeout(this._closeSocketIfRequired.bind(this),1e3);else{this.logger.debug("closing WebSocket...");const t=this.awsRealTimeSocket;t.onclose=null,t.onerror=null,t.close(1e3),this.awsRealTimeSocket=void 0,this.socketStatus=Co.CLOSED,this._closeSocket()}}}maintainKeepAlive(){this.keepAliveTimestamp=Date.now()}keepAliveHeartbeat(t){const n=Date.now();n-this.keepAliveTimestamp>I7e?this.connectionStateMonitor.record(ba.KEEP_ALIVE_MISSED):this.connectionStateMonitor.record(ba.KEEP_ALIVE),n-this.keepAliveTimestamp>t&&this._errorDisconnect(nl.TIMEOUT_DISCONNECT)}_handleIncomingSubscriptionMessage(t){var h,p;if(typeof t.data!="string")return;const[n,r]=this._handleSubscriptionData(t);if(n){this.maintainKeepAlive();return}const{type:i,id:o,payload:s}=r,{observer:a=null,query:l="",variables:c={},startAckTimeoutId:u,subscriptionReadyCallback:d,subscriptionFailedCallback:f}=this.subscriptionObserverMap.get(o)||{};if(i===Ao.GQL_START_ACK||i===Ao.EVENT_SUBSCRIBE_ACK){this.logger.debug(`subscription ready for ${JSON.stringify({query:l,variables:c})}`),typeof d=="function"&&d(),u&&clearTimeout(u),lX({event:nl.SUBSCRIPTION_ACK,data:{query:l,variables:c},message:"Connection established for subscription"});const m=Nu.CONNECTED;a&&this.subscriptionObserverMap.set(o,{observer:a,query:l,variables:c,startAckTimeoutId:void 0,subscriptionState:m,subscriptionReadyCallback:d,subscriptionFailedCallback:f}),this.connectionStateMonitor.record(ba.CONNECTION_ESTABLISHED);return}if(i===Ao.GQL_CONNECTION_KEEP_ALIVE){this.maintainKeepAlive();return}if(i===Ao.GQL_ERROR||i===Ao.EVENT_SUBSCRIBE_ERROR){const m=Nu.FAILED;if(a){this.subscriptionObserverMap.set(o,{observer:a,query:l,variables:c,startAckTimeoutId:u,subscriptionReadyCallback:d,subscriptionFailedCallback:f,subscriptionState:m});let g=JSON.stringify(s??r),v=!1;const b=["UnauthorizedException","Unauthorized","NotAuthorizedException"];if(i===Ao.EVENT_SUBSCRIBE_ERROR){const{errors:w}=JSON.parse(String(t.data));if(Array.isArray(w)&&w.length>0){const x=w[0];g=`${x.errorType}: ${x.message}`,v=b.includes(x.errorType)||((h=x.message)==null?void 0:h.includes("Token expired"))}}else if(i===Ao.GQL_ERROR&&s&&typeof s=="object"){const{errors:w}=s;if(Array.isArray(w)&&w.length>0){const x=w[0];v=b.includes(x.errorType)||((p=x.message)==null?void 0:p.includes("Token expired"))}}this.logger.debug(`${nl.CONNECTION_FAILED}: ${g}`),v&&this.awsRealTimeSocket&&(this.logger.warn("Subscription failed due to auth error, closing WebSocket to trigger reconnection with fresh tokens"),this.awsRealTimeSocket.close(1e3,"Auth error - reconnecting")),a.error({errors:[{...new Lx(`${nl.CONNECTION_FAILED}: ${g}`)}]}),u&&clearTimeout(u),typeof f=="function"&&f()}}}_errorDisconnect(t){this.logger.debug(`Disconnect error: ${t}`),this.awsRealTimeSocket&&(this._closeSocket(),this.awsRealTimeSocket.close()),this.socketStatus=Co.CLOSED}_closeSocket(){this.keepAliveHeartbeatIntervalId&&(clearInterval(this.keepAliveHeartbeatIntervalId),this.keepAliveHeartbeatIntervalId=void 0),this.connectionStateMonitor.record(ba.CLOSED)}_timeoutStartSubscriptionAck(t){const n=this.subscriptionObserverMap.get(t);if(n){const{observer:r,query:i,variables:o}=n;if(!r)return;this.subscriptionObserverMap.set(t,{observer:r,query:i,variables:o,subscriptionState:Nu.FAILED}),this._closeSocket(),this.logger.debug("timeoutStartSubscription",JSON.stringify({query:i,variables:o}))}}_initializeWebSocketConnection({appSyncGraphqlEndpoint:t,authenticationType:n,apiKey:r,region:i,additionalCustomHeaders:o}){if(this.socketStatus!==Co.READY)return new Promise(async(s,a)=>
888{if(this.promiseArray.push({res:s,rej:a}),this.socketStatus===Co.CLOSED)try{this.socketStatus=Co.CONNECTING;const c=await gme({authenticationType:n,payload:"{}",canonicalUri:this.wsConnectUri,apiKey:r,appSyncGraphqlEndpoint:t,region:i,additionalCustomHeaders:o}),u=c?JSON.stringify(c):"",f=`header-${Rm.convert(u,{urlSafe:!0,skipPadding:!0})}`,h=U7e(o),p=V7e(t,h);await this._establishRetryableConnection(p,f),this.promiseArray.forEach(({res:m})=>{this.logger.debug("Notifying connection successful"),m()}),this.socketStatus=Co.READY,this.promiseArray=[]}catch(l){this.logger.debug("Connection exited with",l),this.promiseArray.forEach(({rej:c})=>{c(l)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=void 0,this.socketStatus=Co.CLOSED}})}async _establishRetryableConnection(t,n){this.logger.debug("Establishing retryable connection"),await PUe(this._establishConnection.bind(this),[t,n],S7e)}async _openConnection(t,n){return new Promise((r,i)=>{const o=this._getNewWebSocket(t,[this.wsProtocolName,n]);o.onerror=()=>{this.logger.debug("WebSocket connection error")},o.onclose=()=>{this._closeSocket(),i(new Error("Connection handshake error"))},o.onopen=()=>{this.awsRealTimeSocket=o,r()}})}_getNewWebSocket(t,n){return new WebSocket(t,n)}async _initiateHandshake(){return new Promise((t,n)=>{if(!this.awsRealTimeSocket){n(new Error("awsRealTimeSocket undefined"));return}let r=!1;this.awsRealTimeSocket.onerror=s=>{this.logger.debug(`WebSocket error ${JSON.stringify(s)}`)},this.awsRealTimeSocket.onclose=s=>{this.logger.debug(`WebSocket closed ${s.reason}`),this._closeSocket(),n(new Error(JSON.stringify(s)))},this.awsRealTimeSocket.onmessage=s=>{if(typeof s.data!="string")return;this.logger.debug(`subscription message from AWS AppSyncRealTime: ${s.data} `);const a=JSON.parse(s.data),{type:l}=a,c=this._extractConnectionTimeout(a);if(l===Ao.GQL_CONNECTION_ACK){r=!0,this._registerWebsocketHandlers(c),t("Connected to AWS AppSyncRealTime");return}if(l===Ao.GQL_CONNECTION_ERROR){const{errorType:u,errorCode:d}=this._extractErrorCodeAndType(a);n({errorType:u,errorCode:d})}};const i={type:Ao.GQL_CONNECTION_INIT};this.awsRealTimeSocket.send(JSON.stringify(i));const o=s=>{s||(this.connectionStateMonitor.record(ba.CONNECTION_FAILED),n(new Error(`Connection timeout: ack from AWSAppSyncRealTime was not received after ${tX} ms`)))};setTimeout(()=>{o(r)},tX)})}_registerWebsocketHandlers(t){this.awsRealTimeSocket&&(this.keepAliveHeartbeatIntervalId=setInterval(()=>{this.keepAliveHeartbeat(t)},P7e),this.awsRealTimeSocket.onmessage=this._handleIncomingSubscriptionMessage.bind(this),this.awsRealTimeSocket.onerror=n=>{this.logger.debug(n),this._errorDisconnect(nl.CONNECTION_CLOSED)},this.awsRealTimeSocket.onclose=n=>{this.logger.debug(`WebSocket closed ${n.reason}`),this._closeSocket(),this._errorDisconnect(nl.CONNECTION_CLOSED)})}}const cX="AWSAppSyncRealTimeProvider",q7e="graphql-ws",G7e="/connect";class Y7e extends K7e{constructor(){super({providerName:cX,wsProtocolName:q7e,connectUri:G7e})}getProviderName(){return cX}subscribe(t,n){return super.subscribe(t,n)}async _prepareSubscriptionPayload({options:t,subscriptionId:n,customUserAgentDetails:r,additionalCustomHeaders:i,libraryConfigHeaders:o}){const{appSyncGraphqlEndpoint:s,authenticationType:a,query:l,variables:c,apiKey:u,region:d}=t,h=JSON.stringify({query:l,variables:c}),p={...await gme({apiKey:u,appSyncGraphqlEndpoint:s,authenticationType:a,payload:h,canonicalUri:"",region:d,additionalCustomHeaders:i}),...o,...i,[Vde]:Vb(r)},m={id:n,payload:{data:h,extensions:{authorization:{...p}}},type:Ao.GQL_START};return JSON.stringify(m)}_handleSubscriptionData(t){this.logger.debug(`subscription message from AWS AppSync RealTime: ${t.data}`);const{id:n="",payload:r,type:i}=JSON.parse(String(t.data)),{observer:o=null,query:s="",variables:a={}}=this.subscriptionObserverMap.get(n)||{};return this.logger.debug({id:n,observer:o,query:s,variables:a}),i===Ao.DATA&&r&&r.data?(o?o.next(r):this.logger.debug(`observer not found for id: ${n}`),[!0,{id:n,type:i,payload:r}]):[!1,{id:n,type:i,payload:r}]}_unsubscribeMessage(t){return{id:t,type:Ao.GQL_STOP}}_extractConnectionTimeout(t){const{payload:{connectionTimeoutMs:n=O7e}={}}=t;return n}_extractErrorCodeAndType(t){const{payload:{errors:[{errorType:n="",errorCode:r=0}={}]=[]}={}}=t;return{errorCode:r,errorType:n}}}class Ac extends wo{constructor(t){super(t),this.constructor=Ac,Object.setPrototypeOf(this,Ac.prototype)}}var ny;
888(function(e){e.NoAuthSession="NoAuthSession",e.NoRegion="NoRegion",e.NoCustomEndpoint="NoCustomEndpoint"})(ny||(ny={}));const X7e={[ny.NoAuthSession]:{message:"Auth session should not be empty."},[ny.NoRegion]:{message:"Missing region."},[ny.NoCustomEndpoint]:{message:"Custom endpoint region is present without custom endpoint."}};function Z7e(e,t){const{message:n,recoverySuggestion:r}=X7e[t];if(!e)throw new Ac({name:t,message:n,recoverySuggestion:r})}const Q7e=new pi("GraphQLAPI resolveConfig"),uX=e=>{var l,c;const t=e.getConfig();(l=t.API)!=null&&l.GraphQL||Q7e.warn("The API configuration is missing. This is likely due to Amplify.configure() not being called prior to generateClient().");const{apiKey:n,customEndpoint:r,customEndpointRegion:i,defaultAuthMode:o,endpoint:s,region:a}=((c=t.API)==null?void 0:c.GraphQL)??{};return Z7e(!(!r&&i),ny.NoCustomEndpoint),{apiKey:n,customEndpoint:r,customEndpointRegion:i,defaultAuthMode:o,endpoint:s,region:a}},dX=e=>{var r,i,o,s,a,l;const t=(o=(i=(r=e.libraryOptions)==null?void 0:r.API)==null?void 0:i.GraphQL)==null?void 0:o.headers,n=(l=(a=(s=e.libraryOptions)==null?void 0:s.API)==null?void 0:a.GraphQL)==null?void 0:l.withCredentials;return{headers:t,withCredentials:n}};function fX(e){return e.errors&&Array.isArray(e.errors)&&e.errors.forEach(t=>{J7e(t)&&(t.message="Unauthorized",t.recoverySuggestion=`If you're calling an Amplify-generated API, make sure to set the "authMode" in generateClient({ authMode: '...' }) to the backend authorization rule's auth provider ('apiKey', 'userPool', 'iam', 'oidc', 'lambda')`)}),e}function J7e(e){var t,n,r,i;return!!((n=(t=e==null?void 0:e.originalError)==null?void 0:t.name)!=null&&n.startsWith("UnauthorizedException")||(r=e.message)!=null&&r.startsWith("Connection failed:")&&((i=e.message)!=null&&i.includes("Permission denied")))}var Dm;(function(e){e.NO_API_KEY="No api-key configured",e.NO_CURRENT_USER="No current user",e.NO_CREDENTIALS="No credentials",e.NO_FEDERATED_JWT="No federated jwt",e.NO_AUTH_TOKEN="No auth token specified"})(Dm||(Dm={}));const vme=Symbol("amplify"),bT=Symbol("authMode"),yme=Symbol("authToken"),Lj=Symbol("apiKey"),bme=Symbol("headers"),wT=Symbol("endpoint");function PV(e){const t=e;return{amplify:t[vme],apiKey:t[Lj],authMode:t[bT],authToken:t[yme],endpoint:t[wT],headers:t[bme]}}const eKe={name:"NoApiKey",message:Dm.NO_API_KEY,recoverySuggestion:'The API request was made with `authMode: "apiKey"` but no API Key was passed into `Amplify.configure()`. Review if your API key is passed into the `Amplify.configure()` function.'},tKe={name:"NoCredentials",message:Dm.NO_CREDENTIALS,recoverySuggestion:'The API request was made with `authMode: "iam"` but no authentication credentials are available.\n\nIf you intended to make a request using an authenticated role, review if your user is signed in before making the request.\n\nIf you intend to make a request using an unauthenticated role or also known as "guest access", verify if "Auth.Cognito.allowGuestAccess" is set to "true" in the `Amplify.configure()` function.'},nKe={name:"NoValidAuthTokens",message:Dm.NO_FEDERATED_JWT,recoverySuggestion:"If you intended to make an authenticated API request, review if the current user is signed in."},rKe={name:"NoSignedUser",message:Dm.NO_CURRENT_USER,recoverySuggestion:"Review the underlying exception field for more details. If you intended to make an authenticated API request, review if the current user is signed in."},iKe={name:"NoAuthorizationHeader",message:Dm.NO_AUTH_TOKEN,recoverySuggestion:'The API request was made with `authMode: "lambda"` but no `authToken` is set. Review if a valid authToken is passed into the request options or in the `Amplify.configure()` function.'},oKe={name:"NoEndpoint",message:"No GraphQL endpoint configured in `Amplify.configure()`.",recoverySuggestion:"Review if the GraphQL API endpoint is set in the `Amplify.configure()` function."},hX=e=>({data:{},errors:[new Lx(e.message,null,null,null,null,e)]});function sKe(e){if(!e)return!1;const t=e;return Array.isArray(t.errors)&&t.errors.length>0}async function aKe(e,t,n,r={}){var o;let i={};switch(t){case"apiKey":if(!n)throw new Ac(eKe);i={"X-Api-Key":n};break;case"iam":{if((await e.Auth.fetchAuthSession()).credentials===void 0)throw new Ac(tKe);break}case"oidc":case"userPool":{let s;try{s=(o=(await e.Auth.fetchAuthSession()).tokens)==null?void 0:o.accessToken.toString()}catch(a){throw new Ac({...rKe,underlyingError:a})}if(!s)throw new Ac(nKe);i={Authorization:s};break}case"lambda":if(typeof r=="object"&&!r.Authorization)throw new Ac(iKe);i={Authorization:r.Authorization};break}return i}const lKe="x-amz-user-agent",cKe=e=>typeof e!="function";class uKe{constructor(){this.appSyncRealTime=new Map,this._api={post:w7e,cancelREST:x7e,isCancelErrorREST:o7e,updateRequestToBeCancellable:E7e}}getModuleName(){return"InternalGraphQLAPI"}getGraphqlOperationType(t){const r=Q2(t).definitions,[{operation:i}]=r;return i}graphql(t,{query:n,variables:r={},authMode:i,authToken:o,endpoint:s,apiKey:a},l,c){const u=Q2(typeof n=="string"?n:rw(n)),[d={}]=u.definitions.filter(p=>p.kind==="OperationDefinition"),{operation:f}=d,h=l||{};
888switch(f){case"query":case"mutation":{const p=new AbortController;let m;return cKe(t)?m=this._graphql(t,{query:u,variables:r,authMode:i,apiKey:a,endpoint:s},h,p,c,o):m=t(async v=>await this._graphql(v,{query:u,variables:r,authMode:i,apiKey:a,endpoint:s},h,p,c,o)),this._api.updateRequestToBeCancellable(m,p),m}case"subscription":return this._graphqlSubscribe(t,{query:u,variables:r,authMode:i,apiKey:a,endpoint:s},h,c,o);default:throw new Error(`invalid operation type: ${f}`)}}async _graphql(t,{query:n,variables:r,authMode:i,endpoint:o,apiKey:s},a={},l,c,u){const{apiKey:d,region:f,endpoint:h,customEndpoint:p,customEndpointRegion:m,defaultAuthMode:g}=uX(t),v=i||g||"iam",b=v==="identityPool"?"iam":v,{headers:w,withCredentials:x}=dX(t);let E;if(typeof a=="function"){const O={method:"POST",url:new Xs(o||p||h||"").toString(),queryString:rw(n)};E=await a(O)}else E=a;u&&(E={...E,Authorization:u});const S=await aKe(t,b,s??d,E),_={...!p&&S,...p&&(m?S:{})||{},...w&&await w({query:rw(n),variables:r}),...E,...!p&&{[lKe]:Vb(c)}},k={query:rw(n),variables:r||null};let C;p&&!m||b!=="oidc"&&b!=="userPool"&&b!=="iam"&&b!=="lambda"?C=void 0:C={service:m?"execute-api":"appsync",region:m||f};const T=o||p||h;if(!T)throw hX(new Ac(oKe));let A;try{const{body:O}=await this._api.post(t,{url:new Xs(T),options:{headers:_,body:k,signingServiceInfo:C,withCredentials:x},abortController:l});A=await O.json()}catch(O){if(this.isCancelError(O))throw O;A=hX(O)}if(sKe(A))throw fX(A);return A}isCancelError(t){return this._api.isCancelErrorREST(t)}cancel(t,n){return this._api.cancelREST(t,n)}_graphqlSubscribe(t,{query:n,variables:r,authMode:i,apiKey:o,endpoint:s},a={},l,c){const u=uX(t),d=i||(u==null?void 0:u.defaultAuthMode)||"iam",f=d==="identityPool"?"iam":d,{headers:h}=dX(t),p=s??(u==null?void 0:u.endpoint),m=p??"none",g=this.appSyncRealTime.get(m)??new Y7e;return this.appSyncRealTime.set(m,g),g.subscribe({query:rw(n),variables:r,appSyncGraphqlEndpoint:p,region:u==null?void 0:u.region,authenticationType:f,apiKey:o??(u==null?void 0:u.apiKey),additionalHeaders:a,authToken:c,libraryConfigHeaders:h},l).pipe(vfe(v=>{throw v.errors?fX(v):v}))}}function RR(e){const t=new Set;for(const n of e.attributes||[])if(dKe(n))for(const r of n.properties.rules)r.allow==="owner"?t.add(r.ownerField||"owner"):r.allow==="groups"&&r.groupsField!==void 0&&t.add(r.groupsField);return Array.from(t)}function dKe(e){var t,n;return(e==null?void 0:e.type)==="auth"&&typeof(e==null?void 0:e.properties)=="object"&&Array.isArray((t=e==null?void 0:e.properties)==null?void 0:t.rules)?((n=e==null?void 0:e.properties)==null?void 0:n.rules).every(r=>!!r.allow):!1}function xT(e){return`${e[0].toUpperCase()}${e.slice(1)}`}function Mf(e){let t,n;const r=new Promise((i,o)=>{t=i,n=o});return e(r).then(i=>{t(i)}).catch(i=>{n(i)}),r}const iO=new WeakMap;function Nf(e,t){return iO.set(t,e),e.finally(()=>{iO.delete(t)})}function fKe(e){const t=e.cancel.bind(e);e.cancel=function(n,r){const i=new Set;let o=n;for(;o&&iO.has(o);){if(i.has(o))throw new Error("A cycle was detected in the modeled graphql cancellation chain. This is a bug. Please report it!");i.add(o),o=iO.get(o)}return t(o,r)}}const Lv={HAS_ONE:"HAS_ONE",HAS_MANY:"HAS_MANY",BELONGS_TO:"BELONGS_TO"},pX={ID:"ID",String:"String",AWSDate:"String",AWSTime:"String",AWSDateTime:"String",AWSTimestamp:"Int",AWSEmail:"String",AWSPhone:"String",AWSURL:"String",AWSIPAddress:"String",AWSJSON:"String",Boolean:"Boolean",Int:"Int",Float:"Float"},oO=e=>e.length===1?e[0]:e.reduce((t,n,r)=>r===0?n:t+xT(n),""),gd=(e,t,n)=>{var i;if(!n)return null;const r={};for(const[o,s]of Object.entries(n)){const a=t?(i=e.models[t])==null?void 0:i.fields[o]:void 0,l={fieldDef:a,value:s};hKe(l)?r[o]=l.value.items.map(c=>gd(e,l.fieldDef.type.model,c)):pKe(a)?r[o]=gd(e,a.type.model,s):r[o]=s}return r};function hKe(e){var t,n;return typeof((t=e.fieldDef)==null?void 0:t.type)=="object"&&"model"in e.fieldDef.type&&typeof e.fieldDef.type.model=="string"&&e.fieldDef.isArray&&Array.isArray((n=e.value)==null?void 0:n.items)}function pKe(e){return typeof(e==null?void 0:e.type)=="object"&&"model"in e.type&&typeof e.type.model=="string"}function vd(e,t,n,r,i,o,s=!1){const a=r.models[t],l=a.fields,c=Object.entries(l).filter(([u,d])=>{var f;return((f=d==null?void 0:d.type)==null?void 0:f.model)!==void 0}).map(([u])=>u);return n.map(u=>{var f,h,p,m,g;if(u==null)return u;const d={};for(const v of c){const b=l[v],x=(b==null?void 0:b.type).model,E=r.models[x],S=E.primaryKeyInfo.primaryKeyFieldName,_=E.primaryKeyInfo.sortKeyFieldNames,k=(f=b.association)==null?void 0:f.connectionType;let C=[];b.association&&"associatedWith"in b.association&&(C=b.association.associatedWith);const T=[];switch(b.association&&"targetNames"in b.association&&T.push(...b.association.targetNames),k){case Lv.BELONGS_TO:{const A=_.reduce((O,R)=>(u[R]&&(O[R]=u[R]),O),{});if(((h=e.models[x])==null?void 0:h.get)===void 0)break;s?d[v]=(O,R)=>u[T[0]]?e.models[x].get(O,{[S]:u[T[0]],...A},{authMode:(R==null?void 0:R.authMode)||i,authToken:(R==null?void 0:R.authToken)||o}):{data:null}:d[v]=O=>u[T[0]]?e.models[x].get({[S]:u[T[0]],...A},{authMode:(O==null?void 0:O.authMode)||i,authToken:(O==null?void 0:O.authToken)||o}):{data:null};break}case Lv.HAS_ONE:case Lv.HAS_MANY:{const A=k===Lv.HAS_ONE?B=>({data:(B==null?void 0:B.data.shift())||null,errors:B.errors,extensions:B.extensions}):B=>B,O=a.primaryKeyInfo.primaryKeyFieldName,R=a.primaryKeyInfo.sortKeyFieldNames,I=E.fields[C[0]];if(I.type.model){let B=[];I.association&&"targetNames"in I.association&&(B=(p=I.association)==null?void 0:p.targetNames);const M=B.map((L,P)=>P===0?{[L]:{eq:u[O]}}:{[L]:{eq:u[R[P-1]]}});if(((m=e.models[x])==null?void 0:m.list)===void 0)break;s?d[v]=(L,P)=>u[O]?Mf(async G=>{const Z=e.models[x].list(L,{filter:{and:M},limit:P==null?void 0:P.limit,nextToken:P==null?void 0:P.nextToken,authMode:(P==null?void 0:P.authMode)||i,authToken:(P==null?void 0:P.authToken)||o}),z=Nf(Z,G);return A(await z)}):[]:d[v]=L=>u[O]?Mf(async P=>{const G=e.models[x].list({filter:{and:M},limit:L==null?void 0:L.limit,nextToken:L==null?void 0:L.nextToken,authMode:(L==null?void 0:L.authMode)||i,authToken:(L==null?void 0:L.authToken)||o}),Z=Nf(G,P);return A(await Z)}):[];break}const N=C.map((B,M)=>M===0?{[B]:{eq:u[O]}}:{[B]:{eq:u[R[M-1]]}});if(((g=e.models[x])==null?void 0:g.list)===void 0)break;s?d[v]=(B,M)=>u[O]?Mf(async L=>{const P=e.models[x].list(B,{filter:{and:N},limit:M==null?void 0:M.limit,nextToken:M==null?void 0:M.nextToken,authMode:(M==null?void 0:M.authMode)||i,authToken:(M==null?void 0:M.authToken)||o}),G=Nf(P,L);return A(await G)}):[]:d[v]=B=>u[O]?Mf(async M=>{const L=e.models[x].list({filter:{and:N},limit:B==null?void 0:B.limit,nextToken:B==null?void 0:B.nextToken,authMode:(B==null?void 0:B.authMode)||i,authToken:(B==null?void 0:B.authToken)||o}),P=Nf(L,M);return A(await P)}):[];break}}}return{...u,...d}})}const $j={CREATE:{operationPrefix:"create",usePlural:!1},GET:{operationPrefix:"get",usePlural:!1},UPDATE:{operationPrefix:"update",usePlural:!1},DELETE:{operationPrefix:"delete",usePlural:!1}
888,LIST:{operationPrefix:"list",usePlural:!0},INDEX_QUERY:{operationPrefix:"",usePlural:!1},ONCREATE:{operationPrefix:"onCreate",usePlural:!1},ONUPDATE:{operationPrefix:"onUpdate",usePlural:!1},ONDELETE:{operationPrefix:"onDelete",usePlural:!1},OBSERVEQUERY:{operationPrefix:"observeQuery",usePlural:!1}},Fj="*",MR=(e,t)=>{const{fields:n}=e,r=Object.values(n).map(({type:i,name:o})=>{if(typeof i.enum=="string")return[o,Zy];if(typeof i.nonModel=="string")return[o,MR(t.nonModels[i.nonModel],t)];if(typeof i=="string")return[o,Zy]}).filter(i=>i!==void 0);return Object.fromEntries(r)},mKe=(e,t)=>{const{fields:n}=e,r=Object.values(n).map(({type:o,name:s})=>{if(typeof o.enum=="string"||typeof o=="string")return[s,Zy];if(typeof o.nonModel=="string")return[s,MR(t.nonModels[o.nonModel],t)]}).filter(o=>o!==void 0),i=RR(e).map(o=>[o,Zy]);return Object.fromEntries(r.concat(i))};function gKe(e){const{fields:t}=e,n=Object.values(t).map(({type:i,name:o})=>{if(typeof i=="string")return o;if(typeof i=="object"){if(typeof(i==null?void 0:i.enum)=="string")return o;if(typeof(i==null?void 0:i.nonModel)=="string")return`${o}.${Fj}`}}).filter(Boolean),r=RR(e);return Array.from(new Set(n.concat(r)))}const Zy="";function vKe(e,t,n){const r=(i,o)=>{var g,v,b,w,x,E;const[s,...a]=i.split("."),l=a[0],c=e.models[o]??e.nonModels[o],u=c==null?void 0:c.fields,d=(v=(g=u==null?void 0:u[s])==null?void 0:g.type)==null?void 0:v.model,f=e.models[d],h=(w=(b=u==null?void 0:u[s])==null?void 0:b.type)==null?void 0:w.nonModel,p=e.nonModels[h],m=f?"model":p?"nonModel":"field";if(m==="nonModel"){let S={};if(!l)throw Error(`${s} must declare a wildcard (*) or a field of custom type ${h}`);return l===Fj?S={[s]:MR(p,e)}:S={[s]:r(a.join("."),h)},S}else if(m==="model"){let S={};if(!l)throw Error(`${s} must declare a wildcard (*) or a field of model ${d}`);if(l===Fj){const _=e.models[d];
888S={[s]:mKe(_,e)}}else S={[s]:r(a.join("."),d)};return(x=u[s])!=null&&x.isArray&&(S={[s]:{items:S[s]}}),S}else{const S=u==null?void 0:u[s],_=e.nonModels[o],k=(E=_==null?void 0:_.fields)==null?void 0:E[s];if(_){if(!k)throw Error(`${s} is not a field of custom type ${o}`)}else{const C=RR(c).includes(s);if(!S&&!C)throw Error(`${s} is not a field of model ${o}`)}return{[s]:Zy}}};return n.reduce((i,o)=>wme(r(o,t),i),{})}function sO(e){const t=[];return Object.entries(e).forEach(([n,r])=>{r===Zy?t.push(n):typeof r=="object"&&r!==null&&(r!=null&&r.items?t.push(n,"{","items","{",sO(r.items),"}","}"):t.push(n,"{",sO(r),"}"))}),t.join(" ")}function wme(e,t){const n=r=>r&&typeof r=="object";for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Object.prototype.hasOwnProperty.call(t,r)&&n(t[r])?wme(e[r],t[r]):t[r]=e[r]);return t}function xme(e,t,n){const r=e.models[t],i=vKe(e,t,n??gKe(r));return sO(i)}function NR(e,t,n,r,i){var A,O;const{name:o,pluralName:s,fields:a,primaryKeyInfo:{isCustomPrimaryKey:l,primaryKeyFieldName:c,sortKeyFieldNames:u},attributes:d}=t,f=o.charAt(0).toUpperCase()+o.slice(1),h=s.charAt(0).toUpperCase()+s.slice(1),{operationPrefix:p,usePlural:m}=$j[n],{selectionSet:g}=r||{};let v,b;if(p)v=`${p}${m?h:f}`;else if(i){const{queryField:R,pk:I,sk:F=[]}=i;v=R;let N={};if(F.length===1){const[B]=F,M=typeof a[B].type=="string"?a[B].type:"String",L=pX[M];N={[B]:`Model${L}KeyConditionInput`}}else if(F.length>1){const B=oO(F),M=(O=(A=d==null?void 0:d.find(L=>{var P;return((P=L==null?void 0:L.properties)==null?void 0:P.queryField)===R}))==null?void 0:A.properties)==null?void 0:O.name;N={[B]:`Model${xT(o)}${xT(M)}CompositeKeyConditionInput`}}b={[I]:`${Object.prototype.hasOwnProperty.call(a[I].type,"enum")?a[I].type.enum:a[I].type}!`,...N}}else throw new Error("Error generating GraphQL Document - invalid operation name");let w,x,E;const S=xme(e,o,g),_={[c]:`${a[c].type}!`},k={},C=R=>{if(u.length===0)return{};if(R==="get")return u.reduce((I,F)=>{const N=a[F].type;return R==="get"&&(I[F]=`${N}!`),I},{});if(u.length===1){const[I]=u,F=typeof a[I].type=="string"?a[I].type:"String",N=pX[F];return{[I]:`Model${N}KeyConditionInput`}}else return{[oO(u)]:`Model${xT(o)}PrimaryCompositeKeyConditionInput`}};switch(l&&(Object.assign(_,C("get")),Object.assign(k,{[c]:`${a[c].type}`,sortDirection:"ModelSortDirection"},C("list"))),n){case"CREATE":case"UPDATE":case"DELETE":E??(E={input:`${p.charAt(0).toLocaleUpperCase()+p.slice(1)}${f}Input!`}),w??(w="mutation");case"GET":E??(E=_),x??(x=S);case"LIST":E??(E={...k,filter:`Model${f}FilterInput`,limit:"Int",nextToken:"String"}),w??(w="query"),x??(x=`items { ${S} } nextToken __typename`);case"INDEX_QUERY":E??(E={...b,filter:`Model${f}FilterInput`,sortDirection:"ModelSortDirection",limit:"Int",nextToken:"String"}),w??(w="query"),x??(x=`items { ${S} } nextToken __typename`);case"ONCREATE":case"ONUPDATE":case"ONDELETE":E??(E={filter:`ModelSubscription${f}FilterInput`}),w??(w="subscription"),x??(x=S);break;case"OBSERVEQUERY":default:throw new Error("Internal error: Attempted to generate graphql document for observeQuery. Please report this error.")}return`${w}${E?`(${Object.entries(E).map(([R,I])=>`$${R}: ${I}`)})`:""} { ${v}${E?`(${Object.keys(E).map(R=>`${R}: $${R}`)})`:""} { ${x} } }`}function DR(e,t,n,r,i){const{fields:o,primaryKeyInfo:{isCustomPrimaryKey:s,primaryKeyFieldName:a,sortKeyFieldNames:l}}=e,c=(l==null?void 0:l.length)&&oO(l);let u={};switch(t){case"CREATE":u={input:n?mX(n,e,r):{}};break;case"UPDATE":u={input:n?Object.fromEntries(Object.entries(mX(n,e,r)).filter(([d])=>o[d]?!o[d].isReadOnly:!RR(e).includes(d))):{}};break;case"GET":case"DELETE":n&&(u=s?[a,...l].reduce((d,f)=>(d[f]=n[f],d),{}):{[a]:n[a]}),t==="DELETE"&&(u={input:u});break;case"LIST":n!=null&&n.filter&&(u.filter=n.filter),n!=null&&n.sortDirection&&(u.sortDirection=n.sortDirection),n&&n[a]&&(u[a]=n[a]),c&&n&&n[c]&&(u[c]=n[c]),n!=null&&n.nextToken&&(u.nextToken=n.nextToken),n!=null&&n.limit&&(u.limit=n.limit);break;case"INDEX_QUERY":{const{pk:d,sk:f=[]}=i,h=(f==null?void 0:f.length)&&oO(f);u[d]=n[d],h&&n&&n[h]&&(u[h]=n[h]),n!=null&&n.filter&&(u.filter=n.filter),n!=null&&n.sortDirection&&(u.sortDirection=n.sortDirection),n!=null&&n.nextToken&&
888(u.nextToken=n.nextToken),n!=null&&n.limit&&(u.limit=n.limit);break}case"ONCREATE":case"ONUPDATE":case"ONDELETE":n!=null&&n.filter&&(u={filter:n.filter});break;case"OBSERVEQUERY":throw new Error("Internal error: Attempted to build variables for observeQuery. Please report this error.");default:{const d=t;throw new Error(`Unhandled operation case: ${d}`)}}return u}function mX(e,t,n){const{fields:r}=t,i={};return Object.entries(e).forEach(([o,s])=>{var c,u;const a=(c=r[o])==null?void 0:c.type,l=a==null?void 0:a.model;if(l){const d=(u=r[o])==null?void 0:u.association,h=n.models[l].primaryKeyInfo;if((d==null?void 0:d.connectionType)===Lv.HAS_ONE){const p=d;p.targetNames.forEach((m,g)=>{const v=p.associatedWith[g];i[m]=s[v]})}(d==null?void 0:d.connectionType)===Lv.BELONGS_TO&&d.targetNames.forEach((m,g)=>{if(g===0){const v=h.primaryKeyFieldName;i[m]=s[v]}else{const v=h.sortKeyFieldNames[g-1];i[m]=s[v]}})}else i[o]=s}),i}function Yb(e,t,n={}){const r=t(e);return{authMode:n.authMode||r.authMode,authToken:n.authToken||r.authToken}}function Xb(e,t,n){let r=t(e).headers||{};return n&&(r=n),r}function Bj(e){if(e!=null&&e.errors)return{...e,data:[]};throw e}function aO(e){if(e.errors)return{...e,data:null};throw e}const IV=Symbol("INTERNAL_USER_AGENT_OVERRIDE");var Dl;(function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnStreamEvent="7",e.Generation="8",e.UpdateConversation="9"})(Dl||(Dl={}));const Td=e=>({category:"ai",action:e});function LR(e){return e?{[IV]:e}:void 0}const yKe=e=>{var t;return typeof((t=e==null?void 0:e.token)==null?void 0:t.value)=="symbol"};function $R(e,t,n,r,i,o,s){const a=r.arguments!==void 0;return(...c)=>{const u=c[c.length-1];let d,f;if(i)if(yKe(c[0]))d=c[0];else throw new Error(`Invalid first argument passed to ${r.name}. Expected contextSpec`);return a&&(i?f=c[1]:f=c[0]),n==="subscription"?SKe(e,t,r,o,f,u,s):EKe(e,t,n,r,o,f,u,d,s)}}function $v(e,t){return typeof e[t]=="string"}function bKe(e){return e instanceof Object&&"enum"in e}function wKe(e){return e instanceof Object&&"input"in e}function xKe({type:e,isRequired:t}){const n=t?"!":"";return bKe(e)?`${e.enum}${n}`:wKe(e)?`${e.input}${n}`:`${e}${n}`}function Eme(e){if(e.arguments===void 0)return"";const t=Object.entries(e.arguments).map(([n,r])=>{const i=xKe(r),o=r.isArray?`[${i}]${r.isArrayNullable?"":"!"}`:i;return`$${n}: ${o}`}).join(", ");return t.length>0?`(${t})`:""}function Sme(e){if(e.arguments===void 0)return"";const t=Object.keys(e.arguments).map(n=>`${n}: $${n}`).join(", ");return t.length>0?`(${t})`:""}function _me(e,t){if($v(t,"type")||$v(t.type,"enum"))return"";if($v(t.type,"nonModel")){const n=e.nonModels[t.type.nonModel];return`{${sO(MR(n,e))}}`}else return $v(t.type,"model")?`{${xme(e,t.type.model)}}`:""}function kme(e,t={}){const n={};if(e.arguments===void 0)return n;for(const r of Object.values(e.arguments))if(typeof t[r.name]<"u")n[r.name]=t[r.name];else if(r.isRequired)throw new Error(`${e.name} requires arguments '${r.name}'`);return n}function EKe(e,t,n,r,i,o,s,a,l){return Mf(async c=>{const{name:u}=r,d=Yb(e,i,s),f=Xb(e,i,s==null?void 0:s.headers),h=Eme(r),p=Sme(r),m=_me(t,r),g=$v(r.type,"model")?r.type.model:void 0,v=` 889 ${n.toLocaleLowerCase()}${h} { 890 ${u}${p} ${m} 891 } 892 `,b=kme(r,o),w=LR(l);try{const x=a?e.graphql(a,{...d,query:v,variables:b},f):e.graphql({...d,query:v,variables:b,...w},f),E=Nf(x,c),{data:S,extensions:_}=await E;if(S){const[k]=Object.keys(S),C=Array.isArray(S[k]),T=C?S[k].filter(O=>O):S[k],A=g?vd(e,g,C?T:[T],t,d.authMode,d.authToken,!!a):T;return{data:!C&&Array.isArray(A)?A.shift():A,extensions:_}}else return{data:null,extensions:_}}catch(x){const{data:E,errors:S}=x;if(E&&Object.keys(E).length!==0&&S){const[_]=Object.keys(E),k=Array.isArray(E[_]),C=k?E[_].filter(T=>T):E[_];if(C){const T=g?vd(e,g,k?C:[C],t,d.authMode,d.authToken,!!a):C;return{data:!k&&Array.isArray(T)?T.shift():T,errors:S}}else return aO(x)}else return aO(x)}})}function SKe(e,t,n,r,i,o,s){const a="subscription",{name:l}=n,c=Yb(e,r,o),u=Xb(e,r,o==null?void 0:o.headers),d=Eme(n),f=Sme(n),h=_me(t,n),p=$v(n.type,"model")?n.type.model:void 0,m=` 893 ${a.toLocaleLowerCase()}${d} { 894 ${l}${f} ${h} 895 } 896 `,g=kme(n,i),v=LR(s);return e.graphql({...c,query:m,variables:g,...v},u).pipe(H5(w=>{const[x]=Object.keys(w.data),E=w.data[x],[S]=p?vd(e,p,[E],t,c.authMode,c.authToken):[E];return S}))}const _Ke={queries:"query",mutations:"mutation",subscriptions:"subscription"};function RV(e,t,n,r){if(!t)return{};const i=t.modelIntrospection;if(!i)return{};const o=i[n];if(!o)return{};const s={}
896,a=r(e).amplify===null;for(const l of Object.values(o))s[l.name]=$R(e,i,_Ke[n],l,a,r);return s}function kKe(e,t,n){return RV(e,t,"mutations",n)}function CKe(e,t,n){return RV(e,t,"queries",n)}function TKe(e,t,n){return RV(e,t,"subscriptions",n)}function hS(e,t,n,r,i,o=!1,s){return o?(c,u,d)=>gX(e,t,n,u,d,r,i,c,s):(c,u)=>gX(e,t,n,c,u,r,i,void 0,s)}function gX(e,t,n,r,i,o,s,a,l){return Mf(async c=>{const{name:u}=n,d=NR(t,n,o,i),f=DR(n,o,r,t),h=Yb(e,s,i),p=Xb(e,s,i==null?void 0:i.headers),m=LR(l);try{const g=a?e.graphql(a,{...h,query:d,variables:f},p):e.graphql({...h,query:d,variables:f,...m},p),v=Nf(g,c),{data:b,extensions:w}=await v;if(b){const[x]=Object.keys(b),E=gd(t,u,b[x]);if(E===null)return{data:null,extensions:w};if(i!=null&&i.selectionSet)return{data:E,extensions:w};{const[S]=vd(e,u,[E],t,h.authMode,h.authToken,!!a);return{data:S,extensions:w}}}else return{data:null,extensions:w}}catch(g){const{data:v,errors:b}=g;if(v&&Object.keys(v).length!==0&&b){const[w]=Object.keys(v),x=gd(t,u,v[w]);if(x){if(i!=null&&i.selectionSet)return{data:x,errors:b};{const[E]=vd(e,u,[x],t,h.authMode,h.authToken,!!a);return{data:E,errors:b}}}else return aO(g)}else return aO(g)}})}function MV(e,t,n,r,i=!1,o){return i?(l,c)=>vX(e,t,n,r,c,l,o):l=>vX(e,t,n,r,l,void 0,o)}function vX(e,t,n,r,i,o,s){return Mf(async a=>{var p,m,g,v;const{name:l}=n,c=NR(t,n,"LIST",i),u=DR(n,"LIST",i,t),d=Yb(e,r,i),f=Xb(e,r,i==null?void 0:i.headers),h=LR(s);try{const b=o?e.graphql(o,{...d,query:c,variables:u},f):e.graphql({...d,query:c,variables:u,...h},f),w=Nf(b,a),{data:x,extensions:E}=await w;if(x!==void 0){const[S]=Object.keys(x);if(x[S].items){const _=x[S].items.map(k=>gd(t,l,k));return i!=null&&i.selectionSet?{data:_,nextToken:x[S].nextToken,extensions:E}:{data:vd(e,l,_,t,d.authMode,d.authToken,!!o),nextToken:x[S].nextToken,extensions:E}}return{data:x[S],nextToken:x[S].nextToken,extensions:E}}}catch(b){const{data:w,errors:x}=b;if(w!=null&&Object.keys(w).length!==0&&x){const[E]=Object.keys(w);if((p=w[E])!=null&&p.items){const S=w[E].items.map(_=>gd(t,l,_));return S?i!=null&&i.selectionSet?{data:S,nextToken:(m=w[E])==null?void 0:m.nextToken,errors:x}:{data:vd(e,l,S,t,d.authMode,d.authToken,!!o),nextToken:(g=w[E])==null?void 0:g.nextToken,errors:x}:{data:w[E],nextToken:(v=w[E])==null?void 0:v.nextToken,errors:x}}else return Bj(b)}else return Bj(b)}})}const mh={},Zb=new Array(64);for(let e=0,t=65,n=90;e+t<=n;e++){const r=String.fromCharCode(e+t);mh[r]=e,Zb[e]=r}for(let e=0,t=97,n=122;e+t<=n;e++){const r=String.fromCharCode(e+t),i=e+26;mh[r]=i,Zb[i]=r}for(let e=0;e<10;e++){mh[e.toString(10)]=e+52;const t=e.toString(10),n=e+52;mh[t]=n,Zb[n]=t}mh["+"]=62;Zb[62]="+";mh["/"]=63;Zb[63]="/";const ry=6,$x=8,AKe=63,Cme=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let i=0;i<e.length;i+=4){let o=0,s=0;for(let c=i,u=i+3;c<=u;c++)if(e[c]!=="="){if(!(e[c]in mh))throw new TypeError(`Invalid character ${e[c]} in base64 string.`);o|=mh[e[c]]<<(u-c)*ry,s+=ry}else o>>=ry;const a=i/4*3;o>>=s%$x;const l=Math.floor(s/$x);for(let c=0;c<l;c++){const u=(l-c-1)*$x;r.setUint8(a+c,(o&255<<u)>>u)}}return new Uint8Array(n)},OKe=e=>new TextEncoder().encode(e);function Tme(e){let t;typeof e=="string"?t=OKe(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let o=0;o<t.length;o+=3){let s=0,a=0;for(let c=o,u=Math.min(o+3,t.length);c<u;c++)s|=t[c]<<(u-c-1)*$x,a+=$x;const l=Math.ceil(a/ry);s<<=l*ry-a;for(let c=1;c<=l;c++){const u=(l-c)*ry;i+=Zb[(s&AKe<<u)>>u]}i+="==".slice(0,4-l)}return i}const PKe=e=>e.map(t=>t.image?Ame(t):t.document?IKe(t):t.toolUse?MKe(t):t.toolResult?NKe(t):Ome(t)),Ame=({image:e})=>({image:{...e,source:{...e.source,bytes:Cme(e.source.bytes)}}}),IKe=({document:e})=>({document:{...e,source:{...e.source,bytes:Cme(e.source.bytes)}}}),RKe=({json:e})=>({json:JSON.parse(e)}),MKe=({toolUse:e})=>({toolUse:{...e,input:JSON.parse(e.input)}}),NKe=({toolResult:e})=>({toolResult:{toolUseId:e.toolUseId,content:e.content.map(t=>t.image?Ame(t):t.json?RKe(t):Ome(t))}}),Ome=e=>Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==null)),Pme=({content:e,createdAt:t,id:n,conversationId:r,role:i})=>({content:PKe(e??[]),conversationId:r,createdAt:t,id:n,role:i}),DKe=(e,t,n,r,i)=>async o=>{const s=MV(e,t,r,i,!1,Td(Dl.ListMessages)),{data:a,nextToken:l,errors:c}=await s({...o,filter:{conversationId:{eq:n}}});return{data:a.map(u=>Pme(u)),nextToken:l,errors:c}},LKe=({id:e,conversationId:t,associatedUserMessageId:n,contentBlockIndex:r,contentBlockDoneAtIndex:i,contentBlockDeltaIndex:o,contentBlockText:s,contentBlockToolUse:a,stopReason:l,errors:c})=>c?{error:{id:e,conversationId:t,associatedUserMessageId:n,errors:c}}:{next:FKe({id:e,conversationId:t,associatedUserMessageId:n,contentBlockIndex:r,contentBlockDoneAtIndex:i,contentBlockDeltaIndex:o,text:s,toolUse:$Ke(a),stopReason:l})},$Ke=e=>{if(e)return{...e,input:JSON.parse(e.input)}},FKe=e=>Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==null)),BKe=(e,t,n,r,i)=>o=>{const{conversations:s}=t;if(!s)return{};const a=s[r].message.subscribe;return $R(e,t,"subscription",a,!1,i,Td(Dl.OnStreamEvent))({conversationId:n}).subscribe(c=>{const{next:u,error:d}=LKe(c);d&&o.error(d),u&&o.next(u)})},jKe=e=>JSON.stringify(e),zKe=e=>e.map(t=>t.image?Ime(t):t.document?VKe(t):t.toolResult?HKe(t):t),UKe=({tools:e})=>({tools:Object.entries(e).map(([t,n])=>({toolSpec:{name:t,description:n.description,inputSchema:{json:JSON.stringify(n.inputSchema.json)}}}))}),Ime=({image:e})=>({image:{...e,source:{...e.source,bytes:Tme(e.source.bytes)}}}),VKe=({document:e})=>({document:{...e,source:{...e.source,bytes:Tme(e.source.bytes)}}}),WKe=({json:e})=>({json:JSON.stringify(e)}),HKe=({toolResult:e})=>({toolResult:{...e,content:e.content.map(t=>t.image?Ime(t):t.json?WKe(t):t)}}),KKe=(e,t,n,r,i)=>async o=>{const{conversations:s}=t;if(!s)return{};
896const a=typeof o=="string"?{content:[{text:o}]}:o,{content:l,aiContext:c,toolConfiguration:u}=a,d=s[r].message.send,f=$R(e,t,"mutation",d,!1,i,Td(Dl.SendMessage)),{data:h,errors:p}=await f({conversationId:n,content:zKe(l),...c&&{aiContext:jKe(c)},...u&&{toolConfiguration:UKe(u)}});return{data:h&&Pme(h),errors:p}},pS=(e,t,n,r,i,o,s,a,l,c)=>{if(!n)throw new Error(`An error occurred converting a ${o} conversation: Missing ID`);return{id:n,createdAt:r,updatedAt:i,metadata:l,name:c,onStreamEvent:BKe(e,t,n,o,a),sendMessage:KKe(e,t,n,o,a),listMessages:DKe(e,t,n,s,a)}},qKe=(e,t,n,r,i,o)=>async s=>{const{name:a,metadata:l}=s??{},c=JSON.stringify(l),u=hS(e,t,r,"CREATE",o,!1,Td(Dl.CreateConversation)),{data:d,errors:f}=await u({name:a,metadata:c});return{data:pS(e,t,d==null?void 0:d.id,d==null?void 0:d.createdAt,d==null?void 0:d.updatedAt,n,i,o,d==null?void 0:d.metadata,d==null?void 0:d.name),errors:f}},GKe=(e,t,n,r,i,o)=>async({id:s})=>{const a=hS(e,t,r,"GET",o,!1,Td(Dl.GetConversation)),{data:l,errors:c}=await a({id:s});return{data:l&&pS(e,t,l.id,l.createdAt,l.updatedAt,n,i,o,l==null?void 0:l.metadata,l==null?void 0:l.name),errors:c}},YKe=(e,t,n,r,i,o)=>async s=>{const a=MV(e,t,r,o,!1,Td(Dl.ListConversations)),{data:l,nextToken:c,errors:u}=await a(s);return{data:l.map(d=>pS(e,t,d.id,d.createdAt,d.updatedAt,n,i,o,d==null?void 0:d.metadata,d==null?void 0:d.name)),nextToken:c,errors:u}},XKe=(e,t,n,r,i,o)=>async({id:s})=>{const a=hS(e,t,r,"DELETE",o,!1,Td(Dl.DeleteConversation)),{data:l,errors:c}=await a({id:s});return{data:l&&pS(e,t,l==null?void 0:l.id,l==null?void 0:l.createdAt,l==null?void 0:l.updatedAt,n,i,o,l==null?void 0:l.metadata,l==null?void 0:l.name),errors:c}},ZKe=(e,t,n,r,i,o)=>async({id:s,metadata:a,name:l})=>{const c=JSON.stringify(a),u=hS(e,t,r,"UPDATE",o,!1,Td(Dl.UpdateConversation)),{data:d,errors:f}=await u({id:s,metadata:c,name:l});return{data:d&&pS(e,t,d==null?void 0:d.id,d==null?void 0:d.createdAt,d==null?void 0:d.updatedAt,n,i,o,d==null?void 0:d.metadata,d==null?void 0:d.name),errors:f}};function QKe(e,t,n){const r=t==null?void 0:t.modelIntrospection;if(!(r!=null&&r.conversations))return{};const i={};for(const{name:o,conversation:s,message:a,models:l,nonModels:c,enums:u}of Object.values(r.conversations)){const d=l[s.modelName],f=l[a.modelName];if(!d||!f)return{};const h={...r,models:{...r.models,...l},nonModels:{...r.nonModels,...c},enums:{...r.enums,...u}};i[o]={update:ZKe(e,h,o,d,f,n),create:qKe(e,h,o,d,f,n),get:GKe(e,h,o,d,f,n),delete:XKe(e,h,o,d,f,n),list:YKe(e,h,o,d,f,n)}}return i}function JKe(e,t,n){const r=t==null?void 0:t.modelIntrospection;if(!(r!=null&&r.generations))return{};const i={};for(const o of Object.values(r.generations))i[o.name]=$R(e,r,"query",o,!1,n,Td(Dl.Generation));return i}const eqe=e=>{const t=e.modelIntrospection;if(!t)return{};const n={};for(const[r,i]of Object.entries(t.enums))n[i.name]={values:()=>i.values};return n};function tqe(e,t,n,r,i,o=!1){return o?(l,c,u)=>yX(e,t,n,r,i,{...c,...u},l):(l,c)=>yX(e,t,n,r,i,{...l,...c})}function nqe(e,t,n,r,i){const{data:o,extensions:s}=n,[a]=Object.keys(o);if(o[a].items){const l=o[a].items.map(c=>gd(e,t,c));return{data:r?l:i(l),nextToken:o[a].nextToken,extensions:s}}return{data:o[a],nextToken:o[a].nextToken,extensions:s}}function yX(e,t,n,r,i,o,s){return Mf(async a=>{var h,p,m,g;const{name:l}=n,c=NR(t,n,"INDEX_QUERY",o,r),u=DR(n,"INDEX_QUERY",o,t,r),d=Yb(e,i,o),f=v=>vd(e,l,v,t,d.authMode,d.authToken,!!s);try{const v=Xb(e,i,o==null?void 0:o.headers),w=[{...d,query:c,variables:u},v];s!==void 0&&w.unshift(s);const x=e.graphql(...w),S=await Nf(x,a);if(S.data!==void 0)return nqe(t,l,S,o==null?void 0:o.selectionSet,f)}catch(v){const{data:b,errors:w}=v;if(b!=null&&Object.keys(b).length!==0&&w){const[x]=Object.keys(b);if((h=b[x])!=null&&h.items){const E=(p=b[x])==null?void 0:p.items.map(S=>gd(t,l,S));if(E)return{data:o!=null&&o.selectionSet?E:f(E),nextToken:(m=b[x])==null?void 0:m.nextToken,errors:w}}return{data:b[x],nextToken:(g=b[x])==null?void 0:g.nextToken,errors:w}}else return Bj(v)}})}function rqe(e,t,n,r,i){const{name:o}=n;return a=>{const l=NR(t,n,r,a),c=DR(n,r,a,t),u=Yb(e,i,a),d=Xb(e,i,a==null?void 0:a.headers);return e.graphql({...u,query:l,variables:c},d).pipe(H5(h=>{const[p]=Object.keys(h.data),m=h.data[p],g=gd(t,o,m);if(g===null)return null;if(a!=null&&a.selectionSet)return g;{const[v]=vd(e,o,[g],t,u.authMode,u.authToken);return v}}))}}function iqe(e){const{primaryKeyFieldName:t,sortKeyFieldNames:n}=e.primaryKeyInfo;return[t,...n]}function oqe(e,t,n){const r=Object.fromEntries(n.map(i=>[i,e[i]]));for(let i=0;i<t.length;i++)if(Object.keys(r).every(o=>r[o]===t[i][o]))return i;return-1}function sqe(e,t){const{name:n}=t;return i=>new _s(o=>{const s=[],a=[];let l=(...p)=>a.push(...p);const c=e[n].onCreate(i).subscribe({next(p){l({item:p,type:"create"})},error(p){o.error({type:"onCreate",error:p})}}
896),u=e[n].onUpdate(i).subscribe({next(p){l({item:p,type:"update"})},error(p){o.error({type:"onUpdate",error:p})}}),d=e[n].onDelete(i).subscribe({next(p){l({item:p,type:"delete"})},error(p){o.error({type:"onDelete",error:p})}});function f(p){for(const m of p){const g=oqe(m.item,s,h);switch(m.type){case"create":g<0&&s.push(m.item);break;case"update":g>=0&&(s[g]=m.item);break;case"delete":g>=0&&s.splice(g,1);break;default:console.error("Unrecognized message in observeQuery.",m)}}o.next({items:s,isSynced:!0})}const h=iqe(t);return(async()=>{let p=!0,m=null;for(;!o.closed&&(p||m);){p=!1;const{data:g,errors:v,nextToken:b}=await e[n].list({...i,nextToken:m});m=b,s.push(...g);const w=a.length===0&&m==null;if(o.next({items:s,isSynced:w}),Array.isArray(v))for(const x of v)o.error(x)}a.length>0&&f(a),l=(...g)=>(f(g),s.length)})(),()=>{c.unsubscribe(),u.unsubscribe(),d.unsubscribe()}})}const aqe=e=>{var t,n,r;return e.type==="key"&&((t=e.properties)==null?void 0:t.name)&&((n=e.properties)==null?void 0:n.queryField)&&((r=e.properties)==null?void 0:r.fields.length)>0},lqe=e=>{var n;return((n=e.attributes)==null?void 0:n.filter(aqe).map(r=>{const i=r.properties.queryField,[o,...s]=r.properties.fields;return{queryField:i,pk:o,sk:s}}))||[]},cqe=(e,t)=>{var a;const n=(a=e.models[t].attributes)==null?void 0:a.find(l=>l.type==="model"),r={queries:["list","get","observeQuery"],mutations:["create","update","delete"],subscriptions:["onCreate","onUpdate","onDelete"]},i=[];if(!n)return $j;if(n.properties)for(const[l,c]of Object.entries(n.properties))l in r&&(c===null?i.push(...r[l]):c instanceof Object&&i.push(...Object.keys(c)));i.includes("list")&&i.push("observeQuery");const o=i.map(l=>l.toUpperCase());return Object.fromEntries(Object.entries($j).filter(([l])=>!o.includes(l)))};function uqe(e,t,n){const r={},i=t.modelIntrospection;if(!i)return{};const o=["ONCREATE","ONUPDATE","ONDELETE"];for(const s of Object.values(i.models)){const{name:a}=s;r[a]={};const l=cqe(i,a);Object.entries(l).forEach(([u,{operationPrefix:d}])=>{const f=u;f==="LIST"?r[a][d]=MV(e,i,s,n):o.includes(f)?r[a][d]=rqe(e,i,s,f,n):f==="OBSERVEQUERY"?r[a][d]=sqe(r,s):r[a][d]=hS(e,i,s,f,n)});const c=lqe(s);for(const u of c)r[a][u.queryField]=tqe(e,i,s,u,n)}return r}function Rme(e,t,n){return fKe(e),e.models=uqe(e,t,n),e.enums=eqe(t),e.queries=CKe(e,t,n),e.mutations=kKe(e,t,n),e.subscriptions=TKe(e,t,n),e.conversations=QKe(e,t,n),e.generations=JKe(e,t,n),e}function dqe(e){return IV in e}class fqe extends uKe{getModuleName(){return"GraphQLAPI"}graphql(t,n,r){const i={category:Ys.API,action:AB.GraphQl};if(dqe(n)){const{[IV]:o,...s}=n;return super.graphql(t,s,r,{...i,...o})}return super.graphql(t,n,r,{...i})}isCancelError(t){return super.isCancelError(t)}cancel(t,n){return super.cancel(t,n)}}const NV=new fqe;function hqe(e,t){const n=PV(this),r=n.endpoint,i=n.authMode,o=n.apiKey;if(e.authMode=e.authMode||i,e.apiKey=e.apiKey??o,e.authToken=e.authToken||n.authToken,r&&e.authMode==="apiKey"&&!e.apiKey)throw new Error("graphql() requires an explicit `apiKey` for a custom `endpoint` when `authMode = 'apiKey'`.");const s=t||n.headers;return NV.graphql(n.amplify,{...e,endpoint:r},s)}function pqe(e,t){return NV.cancel(e,t)}function mqe(e){return NV.isCancelError(e)}function Mme(e){return e!==void 0}function gqe(e){return e.event==="configure"}function vqe(e){var r;const t={[vme]:e.amplify,[bT]:e.authMode,[yme]:e.authToken,[Lj]:"apiKey"in e?e.apiKey:void 0,[wT]:"endpoint"in e?e.endpoint:void 0,[bme]:e.headers,graphql:hqe,cancel:pqe,isCancelError:mqe,models:iw,enums:iw,queries:iw,mutations:iw,subscriptions:iw},n=(r=e.amplify.getConfig().API)==null?void 0:r.GraphQL;if(t[wT]){if(!t[bT])throw new Error("generateClient() requires an explicit `authMode` when `endpoint` is provided.");if(t[bT]==="apiKey"&&!t[Lj])throw new Error("generateClient() requires an explicit `apiKey` when `endpoint` is provided and `authMode = 'apiKey'`.")}return t[wT]||(Mme(n)?Rme(t,n,PV):yqe(t)),t}const yqe=e=>{Ml.listen("core",t=>{var r;if(!gqe(t.payload))return;const n=(r=t.payload.data.API)==null?void 0:r.GraphQL;
896Mme(n)&&Rme(e,n,PV)})},iw=new Proxy({},{get(){throw new Error("Client could not be generated. This is likely due to `Amplify.configure()` not being called prior to `generateClient()` or because the configuration passed to `Amplify.configure()` is missing GraphQL provider configuration.")}});function unn(e){return vqe({...e||{},amplify:bt})}var bqe=Symbol.for("react.lazy"),lO=Lb[" use ".trim().toString()];function wqe(e){return typeof e=="object"&&e!==null&&"then"in e}function Nme(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===bqe&&"_payload"in e&&wqe(e._payload)}function FR(e){const t=xqe(e),n=y.forwardRef((r,i)=>{let{children:o,...s}=r;Nme(o)&&typeof lO=="function"&&(o=lO(o._payload));const a=y.Children.toArray(o),l=a.find(Sqe);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var dnn=FR("Slot");function xqe(e){const t=y.forwardRef((n,r)=>{let{children:i,...o}=n;if(Nme(i)&&typeof lO=="function"&&(i=lO(i._payload)),y.isValidElement(i)){const s=kqe(i),a=_qe(o,i.props);return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Eqe=Symbol("radix.slottable");function Sqe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Eqe}function _qe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function kqe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cqe=Lb[" useId ".trim().toString()]||(()=>{}),Tqe=0;function ys(e){const[t,n]=y.useState(Cqe());return zr(()=>{n(r=>r??String(Tqe++))},[e]),t?`radix-${t}`:""}var tL="focusScope.autoFocusOnMount",nL="focusScope.autoFocusOnUnmount",bX={bubbles:!1,cancelable:!0},Aqe="FocusScope",mS=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=y.useState(null),c=Vo(i),u=Vo(o),d=y.useRef(null),f=xt(t,m=>l(m)),h=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let m=function(w){if(h.paused||!a)return;const x=w.target;a.contains(x)?d.current=x:Zd(d.current,{select:!0})},g=function(w){if(h.paused||!a)return;const x=w.relatedTarget;x!==null&&(a.contains(x)||Zd(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Zd(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),b.disconnect()}}},[r,a,h.paused]),y.useEffect(()=>{if(a){xX.add(h);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(tL,bX);a.addEventListener(tL,c),a.dispatchEvent(v),v.defaultPrevented||(Oqe(Nqe(Dme(a)),{select:!0}),document.activeElement===m&&Zd(a))}return()=>{a.removeEventListener(tL,c),setTimeout(()=>{const v=new CustomEvent(nL,bX);a.addEventListener(nL,u),a.dispatchEvent(v),v.defaultPrevented||Zd(m??document.body,{select:!0}),a.removeEventListener(nL,u),xX.remove(h)},0)}}},[a,c,u,h]);const p=y.useCallback(m=>{if(!n&&!r||h.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(g&&v){const b=m.currentTarget,[w,x]=Pqe(b);w&&x?!m.shiftKey&&v===x?(m.preventDefault(),n&&Zd(w,{select:!0})):m.shiftKey&&v===w&&(m.preventDefault(),n&&Zd(x,{select:!0})):v===b&&m.preventDefault()}},[n,r,h.paused]);return D.jsx(Qe.div,{tabIndex:-1,...s,ref:f,onKeyDown:p})});mS.displayName=Aqe;function Oqe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Zd(r,{select:t}),document.activeElement!==n)return}function Pqe(e){const t=Dme(e),n=wX(t,e),r=wX(t.reverse(),e);return[n,r]}function Dme(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wX(e,t){for(const n of e)if(!Iqe(n,{upTo:t}))return n}function Iqe(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 Rqe(e){return e instanceof HTMLInputElement&&"select"in e}function Zd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rqe(e)&&t&&e.select()}}var xX=Mqe();function Mqe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=EX(e,t),e.unshift(t)},remove(t){var n;e=EX(e,t),(n=e[0])==null||n.resume()}}}function EX(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nqe(e){return e.filter(t=>t.tagName!=="A")}var rL=0;function BR(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??SX()),document.body.insertAdjacentElement("beforeend",e[1]??SX()),r
vendor: 5,215 bytes, lines 896-911
896L++,()=>{rL===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rL--}},[])}function SX(){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 ET="right-scroll-bar-position",ST="width-before-scroll-bar",Dqe="with-scroll-bars-hidden",Lqe="--removed-body-scroll-bar-size";function iL(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $qe(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Fqe=typeof window<"u"?y.useLayoutEffect:y.useEffect,_X=new WeakMap;function Bqe(e,t){var n=$qe(null,function(r){return e.forEach(function(i){return iL(i,r)})});return Fqe(function(){var r=_X.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||iL(a,null)}),o.forEach(function(a){i.has(a)||iL(a,s)})}_X.set(n,e)},[e]),n}function jqe(e){return e}function zqe(e,t){t===void 0&&(t=jqe);var n=[],r=!1,i={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(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return i}function Uqe(e){e===void 0&&(e={});var t=zqe(null);return t.options=kc({async:!0,ssr:!1},e),t}var Lme=function(e){var t=e.sideCar,n=Xde(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 y.createElement(r,kc({},n))};Lme.isSideCarExport=!0;function Vqe(e,t){return e.useMedium(t),Lme}var $me=Uqe(),oL=function(){},jR=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:oL,onWheelCapture:oL,onTouchMoveCapture:oL}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,b=v===void 0?"div":v,w=e.gapMode,x=Xde(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,S=Bqe([n,t]),_=kc(kc({},x),i);return y.createElement(y.Fragment,null,u&&y.createElement(E,{sideCar:$me,removeScrollBar:c,shards:d,noRelative:h,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:w}),s?y.cloneElement(y.Children.only(a),kc(kc({},_),{ref:S})):y.createElement(b,kc({},_,{className:l,ref:S}),a))});jR.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jR.classNames={fullWidth:ST,zeroRight:ET};var Wqe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hqe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wqe();return t&&e.setAttribute("nonce",t),e}function Kqe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qqe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gqe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hqe())&&(Kqe(t,n),qqe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yqe=function(){var e=Gqe();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fme=function(){var e=Yqe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Xqe={left:0,top:0,right:0,gap:0},sL=function(e){return parseInt(e||"",10)||0},Zqe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[sL(n),sL(r),sL(i)]},Qqe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xqe;var t=Zqe(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])}},Jqe=Fme(),iy="data-scroll-locked",eGe=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 897 .`.concat(Dqe,` { 898 overflow: hidden `).concat(r,`; 899 padding-right: `).concat(a,"px ").concat(r,`; 900 } 901 body[`).concat(iy,`] { 902 overflow: hidden `).concat(r,`; 903 overscroll-behavior: contain; 904 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 905 padding-left: `.concat(i,`px; 906 padding-top: `).concat(o,`px; 907 padding-right: `).concat(s,`px; 908 margin-left:0; 909 margin-top:0; 910 margin-right: `).concat(a,"px ").concat(r,`; 911 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
911")].filter(Boolean).join(""),` 912 } 913 914 .`).concat(ET,` { 915 right: `).concat(a,"px ").concat(r,`; 916 } 917 918 .`).concat(ST,` { 919 margin-right: `).concat(a,"px ").concat(r,`; 920 } 921 922 .`).concat(ET," .").concat(ET,` { 923 right: 0 `).concat(r,`; 924 } 925 926 .`).concat(ST," .").concat(ST,` { 927 margin-right: 0 `).concat(r,`; 928 } 929 930 body[`).concat(iy,`] { 931 `).concat(Lqe,": ").concat(a,`px; 932 } 933`)},kX=function(){var e=parseInt(document.body.getAttribute(iy)||"0",10);return isFinite(e)?e:0},tGe=function(){y.useEffect(function(){return document.body.setAttribute(iy,(kX()+1).toString()),function(){var e=kX()-1;e<=0?document.body.removeAttribute(iy):document.body.setAttribute(iy,e.toString())}},[])},nGe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;tGe();var o=y.useMemo(function(){return Qqe(i)},[i]);return y.createElement(Jqe,{styles:eGe(o,!t,i,n?"":"!important")})},jj=!1;if(typeof window<"u")try{var _k=Object.defineProperty({},"passive",{get:function(){return jj=!0,!0}});window.addEventListener("test",_k,_k),window.removeEventListener("test",_k,_k)}catch{jj=!1}var Wg=jj?{passive:!1}:!1,rGe=function(e){return e.tagName==="TEXTAREA"},Bme=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rGe(e)&&n[t]==="visible")},iGe=function(e){return Bme(e,"overflowY")},oGe=function(e){return Bme(e,"overflowX")},CX=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=jme(e,r);if(i){var o=zme(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sGe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},aGe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jme=function(e,t){return e==="v"?iGe(t):oGe(t)},zme=function(e,t){return e==="v"?sGe(t):aGe(t)},lGe=function(e,t){return e==="h"&&t==="rtl"?-1:1},cGe=function(e,t,n,r,i){var o=lGe(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,f=0;do{if(!a)break;var h=zme(e,a),p=h[0],m=h[1],g=h[2],v=m-g-o*p;(p||v)&&jme(e,a)&&(d+=v,f+=p);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},kk=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},TX=function(e){return[e.deltaX,e.deltaY]},AX=function(e){return e&&"current"in e?e.current:e},uGe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dGe=function(e){return` 934 .block-interactivity-`.concat(e,` {pointer-events: none;} 935 .allow-interactivity-`).concat(e,` {pointer-events: all;} 936`)},fGe=0,Hg=[];function hGe(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(fGe++)[0],o=y.useState(Fme)[0],s=y.useRef(e);y.useEffect(function(){s.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=RA([e.lockRef.current],(e.shards||[]).map(AX),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var v=kk(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-v[0],x="deltaY"in m?m.deltaY:b[1]-v[1],E,S=m.target,_=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&_==="h"&&S.type==="range")return!1;var k=window.getSelection(),C=k&&k.anchorNode,T=C?C===S||C.contains(S):!1;if(T)return!1;var A=CX(_,S);if(!A)return!0;if(A?E=_:(E=_==="v"?"h":"v",A=CX(_,S)),!A)return!1;if(!r.current&&"changedTouches"in m&&(w||x)&&(r.current=E),!E)return!0;var O=r.current||E;return cGe(O,g,m,O==="h"?w:x)},[]),l=y.useCallback(function(m){var g=m;if(!(!Hg.length||Hg[Hg.length-1]!==o)){var v="deltaY"in g?TX(g):kk(g),b=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&uGe(E.delta,v)}
vendor: 4,107 bytes, line 936
936)[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(AX).filter(Boolean).filter(function(E){return E.contains(g.target)}),x=w.length>0?a(g,w[0]):!s.current.noIsolation;x&&g.cancelable&&g.preventDefault()}}},[]),c=y.useCallback(function(m,g,v,b){var w={name:m,delta:g,target:v,should:b,shadowParent:pGe(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),u=y.useCallback(function(m){n.current=kk(m),r.current=void 0},[]),d=y.useCallback(function(m){c(m.type,TX(m),m.target,a(m,e.lockRef.current))},[]),f=y.useCallback(function(m){c(m.type,kk(m),m.target,a(m,e.lockRef.current))},[]);y.useEffect(function(){return Hg.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Wg),document.addEventListener("touchmove",l,Wg),document.addEventListener("touchstart",u,Wg),function(){Hg=Hg.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,Wg),document.removeEventListener("touchmove",l,Wg),document.removeEventListener("touchstart",u,Wg)}},[]);var h=e.removeScrollBar,p=e.inert;return y.createElement(y.Fragment,null,p?y.createElement(o,{styles:dGe(i)}):null,h?y.createElement(nGe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pGe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mGe=Vqe($me,hGe);var gS=y.forwardRef(function(e,t){return y.createElement(jR,kc({},e,{ref:t,sideCar:mGe}))});gS.classNames=jR.classNames;var gGe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kg=new WeakMap,Ck=new WeakMap,Tk={},aL=0,Ume=function(e){return e&&(e.host||Ume(e.parentNode))},vGe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ume(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})},yGe=function(e,t,n,r){var i=vGe(t,Array.isArray(e)?e:[e]);Tk[n]||(Tk[n]=new WeakMap);var o=Tk[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var h=f.getAttribute(r),p=h!==null&&h!=="false",m=(Kg.get(f)||0)+1,g=(o.get(f)||0)+1;Kg.set(f,m),o.set(f,g),s.push(f),m===1&&p&&Ck.set(f,!0),g===1&&f.setAttribute(n,"true"),p||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),aL++,function(){s.forEach(function(d){var f=Kg.get(d)-1,h=o.get(d)-1;Kg.set(d,f),o.set(d,h),f||(Ck.has(d)||d.removeAttribute(r),Ck.delete(d)),h||d.removeAttribute(n)}),aL--,aL||(Kg=new WeakMap,Kg=new WeakMap,Ck=new WeakMap,Tk={})}},zR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=gGe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),yGe(r,i,n,"aria-hidden")):function(){return null}};function bGe(e){const t=wGe(e),n=y.forwardRef((r,i)=>{const{children:o,...s}=r,a=y.Children.toArray(o),l=a.find(EGe);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function wGe(e){const t=y.forwardRef((n,r)=>{const{children:i,...o}=n;if(y.isValidElement(i)){const s=_Ge(i),a=SGe(o,i.props);return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xGe=Symbol("radix.slottable");function EGe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xGe}function SGe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}
936:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function _Ge(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var UR="Dialog",[Vme,Wme]=Ri(UR),[kGe,Wl]=Vme(UR),Hme=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=y.useRef(null),l=y.useRef(null),[c,u]=Wo({prop:r,defaultProp:i??!1,onChange:o,caller:UR});return D.jsx(kGe,{scope:t,triggerRef:a,contentRef:l,contentId:ys(),titleId:ys(),descriptionId:ys(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:s,children:n})};Hme.displayName=UR;var Kme="DialogTrigger",qme=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Wl(Kme,n),o=xt(t,i.triggerRef);return D.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$V(i.open),...r,ref:o,onClick:Ee(e.onClick,i.onOpenToggle)})});qme.displayName=Kme;var DV="DialogPortal",[CGe,Gme]=Vme(DV,{forceMount:void 0}),Yme=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Wl(DV,t);return D.jsx(CGe,{scope:t,forceMount:n,children:y.Children.map(r,s=>D.jsx(no,{present:n||o.open,children:D.jsx(mg,{asChild:!0,container:i,children:s})}))})};Yme.displayName=DV;var cO="DialogOverlay",Xme=y.forwardRef((e,t)=>{const n=Gme(cO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Wl(cO,e.__scopeDialog);return o.modal?D.jsx(no,{present:r||o.open,children:D.jsx(AGe,{...i,ref:t})}):null});Xme.displayName=cO;var TGe=bGe("DialogOverlay.RemoveScroll"),AGe=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Wl(cO,n);return D.jsx(gS,{as:TGe,allowPinchZoom:!0,shards:[i.contentRef],children:D.jsx(Qe.div,{"data-state":$V(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Lm="DialogContent",Zme=y.forwardRef((e,t)=>{const n=Gme(Lm,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Wl(Lm,e.__scopeDialog);return D.jsx(no,{present:r||o.open,children:o.modal?D.jsx(OGe,{...i,ref:t}):D.jsx(PGe,{...i,ref:t})})});Zme.displayName=Lm;var OGe=y.forwardRef((e,t)=>{const n=Wl(Lm,e.__scopeDialog),r=y.useRef(null),i=xt(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return zR(o)},[]),D.jsx(Qme,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,o=>o.preventDefault())})}),PGe=y.forwardRef((e,t)=>{const n=Wl(Lm,e.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return D.jsx(Qme,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),Qme=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=Wl(Lm,n),l=y.useRef(null),c=xt(t,l);return BR(),D.jsxs(D.Fragment,{children:[D.jsx(mS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:D.jsx(pg,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":$V(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),D.jsxs(D.Fragment,{children:[D.jsx(RGe,{titleId:a.titleId}),D.jsx(NGe,{contentRef:l,descriptionId:a.descriptionId})]})]})}),LV="DialogTitle",Jme=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Wl(LV,n);return D.jsx(Qe.h2,{id:i.titleId,...r,ref:t})});Jme.displayName=LV;var ege="DialogDescription",tge=y.forwardRef((e,t)=>
vendor: 4,189 bytes, lines 936-940
936{const{__scopeDialog:n,...r}=e,i=Wl(ege,n);return D.jsx(Qe.p,{id:i.descriptionId,...r,ref:t})});tge.displayName=ege;var nge="DialogClose",rge=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Wl(nge,n);return D.jsx(Qe.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))})});rge.displayName=nge;function $V(e){return e?"open":"closed"}var ige="DialogTitleWarning",[IGe,oge]=l$e(ige,{contentName:Lm,titleName:LV,docsSlug:"dialog"}),RGe=({titleId:e})=>{const t=oge(ige),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 937 938If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 939 940For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},MGe="DialogDescriptionWarning",NGe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oge(MGe).contentName}}.`;return y.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},DGe=Hme,LGe=qme,$Ge=Yme,FGe=Xme,BGe=Zme,jGe=Jme,zGe=tge,sge=rge,UGe=y.createContext(void 0);function Qb(e){const t=y.useContext(UGe);return e||t||"ltr"}const age=["top","right","bottom","left"],OX=["start","end"],PX=age.reduce((e,t)=>e.concat(t,t+"-"+OX[0],t+"-"+OX[1]),[]),Ll=Math.min,po=Math.max,uO=Math.round,Ak=Math.floor,Fc=e=>({x:e,y:e}),VGe={left:"right",right:"left",bottom:"top",top:"bottom"};function zj(e,t,n){return po(e,Ll(t,n))}function $l(e,t){return typeof e=="function"?e(t):e}function Js(e){return e.split("-")[0]}function Ol(e){return e.split("-")[1]}function FV(e){return e==="x"?"y":"x"}function BV(e){return e==="y"?"height":"width"}function xl(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jV(e){return FV(xl(e))}function lge(e,t,n){n===void 0&&(n=!1);const r=Ol(e),i=jV(e),o=BV(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=fO(s)),[s,fO(s)]}function WGe(e){const t=fO(e);return[dO(e),t,dO(t)]}function dO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const IX=["left","right"],RX=["right","left"],HGe=["top","bottom"],KGe=["bottom","top"];function qGe(e,t,n){switch(e){case"top":case"bottom":return n?t?RX:IX:t?IX:RX;case"left":case"right":return t?HGe:KGe;default:return[]}}function GGe(e,t,n,r){const i=Ol(e);let o=qGe(Js(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(dO)))),o}function fO(e){const t=Js(e);return VGe[t]+e.slice(t.length)}function YGe(e){return{top:0,right:0,bottom:0,left:0,...e}}function zV(e){return typeof e!="number"?YGe(e):{top:e,right:e,bottom:e,left:e}}function Qy(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function MX(e,t,n){let{reference:r,floating:i}=e;const o=xl(t),s=jV(t),a=BV(s),l=Js(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ol(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1);break}return h}async function XGe(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=$l(t,e),p=zV(h),g=a[f?d==="floating"?"reference":"floating":d],v=Qy(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),x=await(o.isElement==null?void 0:o.isElement(w))?await(
940o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Qy(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:l}):b);return{top:(v.top-E.top+p.top)/x.y,bottom:(E.bottom-v.bottom+p.bottom)/x.y,left:(v.left-E.left+p.left)/x.x,right:(E.right-v.right+p.right)/x.x}}const ZGe=50,QGe=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:XGe},l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=MX(c,r,l),f=r,h=0;const p={};for(let m=0;m<o.length;m++){const g=o[m];if(!g)continue;const{name:v,fn:b}=g,{x:w,y:x,data:E,reset:S}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=x??d,p[v]={...p[v],...E},S&&h<ZGe&&(h++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:d}=MX(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}},JGe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=$l(e,t)||{};if(c==null)return{};const d=zV(u),f={x:n,y:r},h=jV(i),p=BV(h),m=await s.getDimensions(c),g=h==="y",v=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=o.reference[p]+o.reference[h]-f[h]-o.floating[p],E=f[h]-o.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=S?S[w]:0;(!_||!await(s.isElement==null?void 0:s.isElement(S)))&&(_=a.floating[w]||o.floating[p]);const k=x/2-E/2,C=_/2-m[p]/2-1,T=Ll(d[v],C),A=Ll(d[b],C),O=T,R=_-m[p]-A,I=_/2-m[p]/2+k,F=zj(O,I,R),N=!l.arrow&&Ol(i)!=null&&I!==F&&o.reference[p]/2-(I<O?T:A)-m[p]/2<0,B=N?I<O?I-O:I-R:0;return{[h]:f[h]+B,data:{[h]:F,centerOffset:I-F-B,...N&&{alignmentOffset:B}},reset:N}}});function eYe(e,t,n){return(e?[...n.filter(i=>Ol(i)===e),...n.filter(i=>Ol(i)!==e)]:n.filter(i=>Js(i)===i)).filter(i=>e?Ol(i)===e||(t?dO(i)!==i:!1):!0)}const tYe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:f=PX,autoAlignment:h=!0,...p}=$l(e,t),m=d!==void 0||f===PX?eYe(d||null,h,f):f,g=await l.detectOverflow(t,p),v=((n=s.autoPlacement)==null?void 0:n.index)||0,b=m[v];if(b==null)return{};const w=lge(b,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==b)return{reset:{placement:m[0]}};const x=[g[Js(b)],g[w[0]],g[w[1]]],E=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:x}],S=m[v+1];if(S)return{data:{index:v+1,overflows:E},reset:{placement:S}};const _=E.map(T=>{const A=Ol(T.placement);return[T.placement,A&&u?T.overflows.slice(0,2).reduce((O,R)=>O+R,0):T.overflows[0],T.overflows]}).sort((T,A)=>T[1]-A[1]),C=((i=_.filter(T=>T[2].slice(0,Ol(T[0])?2:3).every(A=>A<=0))[0])==null?void 0:i[0])||_[0][0];return C!==a?{data:{index:v+1,overflows:E},reset:{placement:C}}:{}}}},nYe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=$l(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Js(i),b=xl(a),w=Js(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=f||(w||!m?[fO(a)]:WGe(a)),S=p!=="none";!f&&S&&E.push(...GGe(a,m,p,x));const _=[a,...E],k=await l.detectOverflow(t,g),C=[];let T=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&C.push(k[v]),d){const I=lge(i,s,x);C.push(k[I[0]],k[I[1]])}if(T=[...T,{placement:i,overflows:C}],!C.every(I=>I<=0)){var A,O;const I=(((A=o.flip)==null?void 0:A.index)||0)+1,F=_[I];if(F&&(!(d==="alignment"?b!==xl(F):!1)||T.every(M=>xl(M.placement)===b?M.overflows[0]>0:!0)))return{data:{index:I,overflows:T},reset:{placement:F}};let N=(O=T.filter(B=>B.overflows[0]<=0).sort((B,M)=>B.overflows[1]-M.overflows[1])[0])==null?void 0:O.placement;if(!N)switch(h){case"bestFit":{var R;const B=(R=T.filter(M=>{if(S){const L=xl(M.placement);return L===b||L==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(L=>L>0).reduce((L,P)=>L+P,0)]).sort((M,L)=>M[1]-L[1])[0])==null?void 0:R[0];B&&(N=B);break}case"initialPlacement":N=a;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function NX(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 age.some(t=>e[t]>=0)}const rYe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=$l(e,t);switch(i){case"referenceHidden":{const s=await r.detectOverflow(t,{...o,elementContext:"reference"}),a=NX(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:DX(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...o,altBoundary:!0}),a=NX(s,n.floating);return{data:{escapedOffsets:a,escaped:DX(a)}}}default:return{}}}}};function cge(e){const t=Ll(...e.map(o=>o.left)),n=Ll(...e.map(o=>o.top)),r=po(...e.map(o=>o.right)),i=po(...e.map(o=>o.bottom));return{x:t,y:n,width:r-t,height:i-n}}function iYe(e){const t=e.slice().sort((i,o)=>i.y-o.y),n=[];let r=null;for(let i=0;i<t.length;i++){const o=t[i];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(i=>Qy(cge(i)))}const oYe=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:i,platform:o,strategy:s}=t,{padding:a=2,x:l,y:c}=$l(e,t),u=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(r.reference))||[]),d=iYe(u),f=Qy(cge(u)),h=zV(a);function p(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&c!=null)return d.find(g=>l>g.left-h.left&&l<g.right+h.right&&c>g.top-h.top&&c<g.bottom+h.bottom)||f;if(d.length>=2){if(xl(n)==="y"){const T=d[0],A=d[d.length-1],O=Js(n)==="top",R=T.top,I=A.bottom,F=O?T.left:A.left,N=O?T.right:A.right,B=N-F,M=I-R;return{top:R,bottom:I,left:F,right:N,width:B,height:M,x:F,y:R}}const g=Js(n)==="left",v=po(...d.map(T=>T.right)),b=Ll(...d.map(T=>T.left)),w=d.filter(T=>g?T.left===b:T.right===v),x=w[0].top,E=w[w.length-1].bottom,S=b,_=v,k=_-S,C=E-x;return{top:x,bottom:E,left:S,right:_,width:k,height:C,x:S,y:x}}return f}const m=await o.getElementRects({reference:{getBoundingClientRect:p},floating:r.floating,strategy:s});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},uge=new Set(["left","top"]);async function sYe(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Js(n),a=Ol(n),l=xl(n)==="y",c=uge.has(s)?-1:1,u=o&&l?-1:1,d=$l(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
vendor: 9,036 bytes, line 940
940:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const aYe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await sYe(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},lYe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...c}=$l(e,t),u={x:n,y:r},d=await o.detectOverflow(t,c),f=xl(Js(i)),h=FV(f);let p=u[h],m=u[f];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=p+d[v],x=p-d[b];p=zj(w,p,x)}if(a){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=m+d[v],x=m-d[b];m=zj(w,m,x)}const g=l.fn({...t,[h]:p,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:a}}}}}},cYe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$l(e,t),u={x:n,y:r},d=xl(i),f=FV(d);let h=u[f],p=u[d];const m=$l(a,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=f==="y"?"height":"width",x=o.reference[f]-o.floating[w]+g.mainAxis,E=o.reference[f]+o.reference[w]-g.mainAxis;h<x?h=x:h>E&&(h=E)}if(c){var v,b;const w=f==="y"?"width":"height",x=uge.has(Js(i)),E=o.reference[d]-o.floating[w]+(x&&((v=s.offset)==null?void 0:v[d])||0)+(x?0:g.crossAxis),S=o.reference[d]+o.reference[w]+(x?0:((b=s.offset)==null?void 0:b[d])||0)-(x?g.crossAxis:0);p<E?p=E:p>S&&(p=S)}return{[f]:h,[d]:p}}}},uYe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$l(e,t),u=await s.detectOverflow(t,c),d=Js(i),f=Ol(i),h=xl(i)==="y",{width:p,height:m}=o.floating;let g,v;d==="top"||d==="bottom"?(g=d,v=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,g=f==="end"?"top":"bottom");const b=m-u.top-u.bottom,w=p-u.left-u.right,x=Ll(m-u[g],b),E=Ll(p-u[v],w),S=!t.middlewareData.shift;let _=x,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=b),S&&!f){const T=po(u.left,0),A=po(u.right,0),O=po(u.top,0),R=po(u.bottom,0);h?k=p-2*(T!==0||A!==0?T+A:po(u.left,u.right)):_=m-2*(O!==0||R!==0?O+R:po(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:_});const C=await s.getDimensions(a.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function VR(){return typeof window<"u"}function Jb(e){return dge(e)?(e.nodeName||"").toLowerCase():"#document"}function Vs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cu(e){var t;return(t=(dge(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dge(e){return VR()?e instanceof Node||e instanceof Vs(e).Node:!1}function Fl(e){return VR()?e instanceof Element||e instanceof Vs(e).Element:!1}function Ad(e){return VR()?e instanceof HTMLElement||e instanceof Vs(e).HTMLElement:!1}function LX(e){return!VR()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vs(e).ShadowRoot}function vS(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Bl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function dYe(e){return/^(table|td|th)$/.test(Jb(e))}function WR(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fYe=/transform|translate|scale|rotate|perspective|filter/,hYe=/paint|layout|strict|content/,fp=e=>!!e&&e!=="none";let lL;function UV(e){const t=Fl(e)?Bl(e):e;return fp(t.transform)||fp(t.translate)||fp(t.scale)||fp(t.rotate)||fp(t.perspective)||!VV()&&(fp(t.backdropFilter)||fp(t.filter))||fYe.test(t.willChange||"")||hYe.test(t.contain||"")}function pYe(e){let t=gh(e);for(;Ad(t)&&!Jy(t);){if(UV(t))return t;if(WR(t))return null;t=gh(t)}return null}function VV(){return lL==null&&(lL=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lL}function Jy(e){return/^(html|body|#document)$/.test(Jb(e))}function Bl(e){return Vs(e).getComputedStyle(e)}function HR(e){return Fl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gh(e){if(Jb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||LX(e)&&e.host||cu(e);return LX(t)?t.host:t}function fge(e){const t=gh(e);return Jy(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ad(t)&&vS(t)?t:fge(t)}function KE(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fge(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vs(i);if(o){const a=Uj(s);return t.concat(s,s.visualViewport||[],vS(i)?i:[],a&&n?KE(a):[])}else return t.concat(i,KE(i,[],n))}function Uj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hge(e){const t=Bl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ad(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=uO(n)!==o||uO(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function WV(e){return Fl(e)?e:e.contextElement}function oy(e){const t=WV(e);if(!Ad(t))return Fc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=hge(t);let s=(o?uO(n.width):n.width)/r,a=(o?uO(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const mYe=Fc(0);function pge(e){const t=Vs(e);return!VV()||!t.visualViewport?mYe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gYe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vs(e)?!1:t}function $m(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=WV(e);let s=Fc(1);t&&(r?Fl(r)&&(s=oy(r)):s=oy(e));const a=gYe(o,n,r)?pge(o):Fc(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const f=Vs(o),h=r&&Fl(r)?Vs(r):r;let p=f,m=Uj(p);for(;m&&r&&h!==p;){const g=oy(m),v=m.getBoundingClientRect(),b=Bl(m),w=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,x=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=w,c+=x,p=Vs(m),m=Uj(p)}}return Qy({width:u,height:d,x:l,y:c})}function KR(e,t){const n=HR(e).scrollLeft;return t?t.left+n:$m(cu(e)).left+n}function mge(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-KR(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function vYe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=cu(r),a=t?WR(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Fc(1);const u=Fc(0),d=Ad(r);if((d||!d&&!o)&&((Jb(r)!=="body"||vS(s))&&(l=HR(r)),d)){const h=$m(r);c=oy(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=s&&!d&&!o?mge(s,l):Fc(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function yYe(e){return Array.from(e.getClientRects())}function bYe(e){const t=cu(e),n=HR(e),r=e.ownerDocument.body,i=po(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=po(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+KR(e);const a=-n.scrollTop;return Bl(r).direction==="rtl"&&(s+=po(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const $X=25;function wYe(e,t){const n=Vs(e),r=cu(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=VV();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=KR(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,p=Math.abs(r.clientWidth-d.clientWidth-h);p<=$X&&(o-=p)}else c<=$X&&(o+=c);return{width:o,height:s,x:a,y:l}}function xYe(e,t){const n=$m(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ad(e)?oy(e):Fc(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function FX(e,t,n){let r;if(t==="viewport")r=wYe(e,n);else if(t==="document")r=bYe(cu(e));else if(Fl(t))r=xYe(t,n);else{const i=pge(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Qy(r)}function gge(e,t){const n=gh(e);return n===t||!Fl(n)||Jy(n)?!1:Bl(n).position==="fixed"||gge(n,t)}function EYe(e,t){const n=t.get(e);if(n)return n;let r=KE(e,[],!1).filter(a=>Fl(a)&&Jb(a)!=="body"),i=null;const o=Bl(e).position==="fixed";let s=o?gh(e):e;for(;Fl(s)&&!Jy(s);){const a=Bl(s),l=UV(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||vS(s)&&!l&&gge(e,s))?r=r.filter(u=>u!==s):i=a,s=gh(s)}return t.set(e,r),r}function SYe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?WR(t)?[]:EYe(t,this._c):[].concat(n),r],a=FX(t,s[0],i);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let f=1;f<s.length;f++){const h=FX(t,s[f],i);
vendor: 4,813 bytes, line 940
940l=po(h.top,l),c=Ll(h.right,c),u=Ll(h.bottom,u),d=po(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function _Ye(e){const{width:t,height:n}=hge(e);return{width:t,height:n}}function kYe(e,t,n){const r=Ad(t),i=cu(t),o=n==="fixed",s=$m(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Fc(0);function c(){l.x=KR(i)}if(r||!r&&!o)if((Jb(t)!=="body"||vS(i))&&(a=HR(t)),r){const h=$m(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?mge(i,a):Fc(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function cL(e){return Bl(e).position==="static"}function BX(e,t){if(!Ad(e)||Bl(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cu(e)===n&&(n=n.ownerDocument.body),n}function vge(e,t){const n=Vs(e);if(WR(e))return n;if(!Ad(e)){let i=gh(e);for(;i&&!Jy(i);){if(Fl(i)&&!cL(i))return i;i=gh(i)}return n}let r=BX(e,t);for(;r&&dYe(r)&&cL(r);)r=BX(r,t);return r&&Jy(r)&&cL(r)&&!UV(r)?n:r||pYe(e)||n}const CYe=async function(e){const t=this.getOffsetParent||vge,n=this.getDimensions,r=await n(e.floating);return{reference:kYe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function TYe(e){return Bl(e).direction==="rtl"}const AYe={convertOffsetParentRelativeRectToViewportRelativeRect:vYe,getDocumentElement:cu,getClippingRect:SYe,getOffsetParent:vge,getElementRects:CYe,getClientRects:yYe,getDimensions:_Ye,getScale:oy,isElement:Fl,isRTL:TYe};function yge(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OYe(e,t){let n=null,r;const i=cu(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(a||t(),!f||!h)return;const p=Ak(d),m=Ak(i.clientWidth-(u+f)),g=Ak(i.clientHeight-(d+h)),v=Ak(u),w={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:po(0,Ll(1,l))||1};let x=!0;function E(S){const _=S[0].intersectionRatio;if(_!==l){if(!x)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!yge(c,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return s(!0),o}function PYe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=WV(e),u=i||o?[...c?KE(c):[],...t?KE(t):[]]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=c&&a?OYe(c,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let p,m=l?$m(e):null;l&&g();function g(){const v=$m(e);m&&!yge(m,v)&&n(),m=v,p=requestAnimationFrame(g)}return n(),()=>{var v;u.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),d==null||d(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const HV=aYe,bge=tYe,KV=lYe,qV=nYe,GV=uYe,YV=rYe,hO=JGe,wge=oYe,IYe=cYe,XV=(e,t,n)=>{const r=new Map,i={platform:AYe,...n},o={...i.platform,_c:r};return QGe(e,t,{...i,platform:o})};var RYe=typeof document<"u",MYe=function(){},_T=RYe?y.useLayoutEffect:MYe;function pO(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,i;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(!pO(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!pO(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function xge(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jX(e,t){const n=xge(e);return Math.round(t*n)/n}function uL(e){const t=y.useRef(e);return _T(()=>{t.current=e}),t}function NYe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=y.useState(r);pO(f,r)||h(r);const[p,m]=y.useState(null),[g,v]=y.useState(null),b=y.useCallback(M=>{M!==S.current&&(S.current=M,m(M))},[]),w=y.useCallback(M=>{M!==_.current&&(_.current=M,v(M))},[]),x=o||p,E=s||g,S=y.useRef(null),_=y.useRef(null),k=y.useRef(u),C=l!=null,T=uL(l),A=uL(i),O=uL(c),R=y.useCallback(()=>
vendor: 5,514 bytes, line 940
940{if(!S.current||!_.current)return;const M={placement:t,strategy:n,middleware:f};A.current&&(M.platform=A.current),XV(S.current,_.current,M).then(L=>{const P={...L,isPositioned:O.current!==!1};I.current&&!pO(k.current,P)&&(k.current=P,pr.flushSync(()=>{d(P)}))})},[f,t,n,A,O]);_T(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[c]);const I=y.useRef(!1);_T(()=>(I.current=!0,()=>{I.current=!1}),[]),_T(()=>{if(x&&(S.current=x),E&&(_.current=E),x&&E){if(T.current)return T.current(x,E,R);R()}},[x,E,R,T,C]);const F=y.useMemo(()=>({reference:S,floating:_,setReference:b,setFloating:w}),[b,w]),N=y.useMemo(()=>({reference:x,floating:E}),[x,E]),B=y.useMemo(()=>{const M={position:n,left:0,top:0};if(!N.floating)return M;const L=jX(N.floating,u.x),P=jX(N.floating,u.y);return a?{...M,transform:"translate("+L+"px, "+P+"px)",...xge(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:P}},[n,a,N.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:R,refs:F,elements:N,floatingStyles:B}),[u,R,F,N,B])}const DYe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hO({element:r.current,padding:i}).fn(n):{}:r?hO({element:r,padding:i}).fn(n):{}}}},LYe=(e,t)=>{const n=HV(e);return{name:n.name,fn:n.fn,options:[e,t]}},$Ye=(e,t)=>{const n=KV(e);return{name:n.name,fn:n.fn,options:[e,t]}},FYe=(e,t)=>({fn:IYe(e).fn,options:[e,t]}),BYe=(e,t)=>{const n=qV(e);return{name:n.name,fn:n.fn,options:[e,t]}},jYe=(e,t)=>{const n=GV(e);return{name:n.name,fn:n.fn,options:[e,t]}},zYe=(e,t)=>{const n=YV(e);return{name:n.name,fn:n.fn,options:[e,t]}},UYe=(e,t)=>{const n=DYe(e);return{name:n.name,fn:n.fn,options:[e,t]}};var VYe="Arrow",Ege=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return D.jsx(Qe.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ege.displayName=VYe;var WYe=Ege;function qR(e){const[t,n]=y.useState(void 0);return zr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ZV="Popper",[Sge,Fh]=Ri(ZV),[HYe,_ge]=Sge(ZV),kge=e=>{const{__scopePopper:t,children:n}=e,[r,i]=y.useState(null);return D.jsx(HYe,{scope:t,anchor:r,onAnchorChange:i,children:n})};kge.displayName=ZV;var Cge="PopperAnchor",Tge=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=_ge(Cge,n),s=y.useRef(null),a=xt(t,s),l=y.useRef(null);return y.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||s.current,c!==l.current&&o.onAnchorChange(l.current)}),r?null:D.jsx(Qe.div,{...i,ref:a})});Tge.displayName=Cge;var QV="PopperContent",[KYe,qYe]=Sge(QV),Age=y.forwardRef((e,t)=>{var ue,ce,Q,K,pe,X;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:p,...m}=e,g=_ge(QV,n),[v,b]=y.useState(null),w=xt(t,Ze=>b(Ze)),[x,E]=y.useState(null),S=qR(x),_=(S==null?void 0:S.width)??0,k=(S==null?void 0:S.height)??0,C=r+(o!=="center"?"-"+o:""),T=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},A=Array.isArray(c)?c:[c],O=A.length>0,R={padding:T,boundary:A.filter(YYe),altBoundary:O},{refs:I,floatingStyles:F,placement:N,isPositioned:B,middlewareData:M}=NYe({strategy:"fixed",placement:C,whileElementsMounted:(...Ze)=>PYe(...Ze,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[LYe({mainAxis:i+k,alignmentAxis:s}),l&&$Ye({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?FYe():void 0,...R}),l&&BYe({...R}),jYe({...R,apply:({elements:Ze,rects:Me,availableWidth:tt,availableHeight:Oe})=>{const{width:Pt,height:Le}=Me.reference,hn=Ze.floating.style;hn.setProperty("--radix-popper-available-width",`${tt}px`),hn.setProperty("--radix-popper-available-height",`${Oe}px`),hn.setProperty("--radix-popper-anchor-width",`${Pt}px`),hn.setProperty("--radix-popper-anchor-height",`${Le}px`)}}),x&&UYe({element:x,padding:a}),XYe({arrowWidth:_,arrowHeight:k}),f&&zYe({strategy:"referenceHidden",...R})]}),[L,P]=Ige(N),G=Vo(p);zr(()=>{B&&(G==null||G())},[B,G]);const Z=(ue=M.arrow)==null?void 0:ue.x,z=(ce=M.arrow)==null?void 0:ce.y,oe=((Q=M.arrow)==null?void 0:Q.centerOffset)!==0,[le,se]=y.useState();return zr(()=>{v&&se(window.getComputedStyle(v).zIndex)},[v]),D.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:B?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(K=M.transformOrigin)==null?void 0:K.x,(pe=M.transformOrigin)==null?void 0:pe.y].join(" "),...((X=M.hide)==null?void 0:X.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(KYe,{scope:n,placedSide:L,onArrowChange:E,arrowX:Z,arrowY:z,shouldHideArrow:oe,children:D.jsx(Qe.div,{"data-side":L,"data-align":P,...m,ref:w,style:{...m.style,animation:B?void 0:"none"}})})})});Age.displayName=QV;var Oge="PopperArrow",GYe={top:"bottom",right:"left",bottom:"top",left:"r
940ight"},Pge=y.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=qYe(Oge,r),s=GYe[o.placedSide];return D.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:D.jsx(WYe,{...i,ref:n,style:{...i.style,display:"block"}})})});Pge.displayName=Oge;function YYe(e){return e!==null}var XYe=e=>({name:"transformOrigin",options:e,fn(t){var g,v,b;const{placement:n,rects:r,middlewareData:i}=t,s=((g=i.arrow)==null?void 0:g.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=Ige(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=i.arrow)==null?void 0:v.x)??0)+a/2,h=(((b=i.arrow)==null?void 0:b.y)??0)+l/2;let p="",m="";return c==="bottom"?(p=s?d:`${f}px`,m=`${-l}px`):c==="top"?(p=s?d:`${f}px`,m=`${r.floating.height+l}px`):c==="right"?(p=`${-l}px`,m=s?d:`${h}px`):c==="left"&&(p=`${r.floating.width+l}px`,m=s?d:`${h}px`),{data:{x:p,y:m}}}});function Ige(e){const[t,n="center"]=e.split("-");return[t,n]}var GR=kge,yS=Tge,YR=Age,XR=Pge,dL="rovingFocusGroup.onEntryFocus",ZYe={bubbles:!1,cancelable:!0},bS="RovingFocusGroup",[Vj,Rge,QYe]=rS(bS),[JYe,e0]=Ri(bS,[QYe]),[eXe,tXe]=JYe(bS),Mge=y.forwardRef((e,t)=>D.jsx(Vj.Provider,{scope:e.__scopeRovingFocusGroup,children:D.jsx(Vj.Slot,{scope:e.__scopeRovingFocusGroup,children:D.jsx(nXe,{...e,ref:t})})}));Mge.displayName=bS;var nXe=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=y.useRef(null),h=xt(t,f),p=Qb(o),[m,g]=Wo({prop:s,defaultProp:a??null,onChange:l,caller:bS}),[v,b]=y.useState(!1),w=Vo(c),x=Rge(n),E=y.useRef(!1),[S,_]=y.useState(0);return y.useEffect(()=>{const k=f.current;if(k)return k.addEventListener(dL,w),()=>k.removeEventListener(dL,w)},[w]),D.jsx(eXe,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:m,onItemFocus:y.useCallback(k=>g(k),[g]),onItemShiftTab:y.useCallback(()=>b(!0),[]),onFocusableItemAdd:y.useCallback(()=>_(k=>k+1),[]),onFocusableItemRemove:y.useCallback(()=>_(k=>k-1),[]),children:D.jsx(Qe.div,{tabIndex:v||S===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{E.current=!0}),onFocus:Ee(e.onFocus,k=>{const C=!E.current;if(k.target===k.currentTarget&&C&&!v){const T=new CustomEvent(dL,ZYe);if(k.currentTarget.dispatchEvent(T),!T.defaultPrevented){const A=x().filter(N=>N.focusable),O=A.find(N=>N.active),R=A.find(N=>
940N.id===m),F=[O,R,...A].filter(Boolean).map(N=>N.ref.current);Lge(F,u)}}E.current=!1}),onBlur:Ee(e.onBlur,()=>b(!1))})})}),Nge="RovingFocusGroupItem",Dge=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:s,...a}=e,l=ys(),c=o||l,u=tXe(Nge,n),d=u.currentTabStopId===c,f=Rge(n),{onFocusableItemAdd:h,onFocusableItemRemove:p,currentTabStopId:m}=u;return y.useEffect(()=>{if(r)return h(),()=>p()},[r,h,p]),D.jsx(Vj.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:D.jsx(Qe.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:Ee(e.onMouseDown,g=>{r?u.onItemFocus(c):g.preventDefault()}),onFocus:Ee(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:Ee(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const v=oXe(g,u.orientation,u.dir);if(v!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=f().filter(x=>x.focusable).map(x=>x.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const x=w.indexOf(g.currentTarget);w=u.loop?sXe(w,x+1):w.slice(x+1)}setTimeout(()=>Lge(w))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})});Dge.displayName=Nge;var rXe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iXe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function oXe(e,t,n){const r=iXe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rXe[r]}function Lge(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function sXe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var JV=Mge,e6=Dge;function aXe(e){const t=lXe(e),n=y.forwardRef((r,i)=>{const{children:o,...s}=r,a=y.Children.toArray(o),l=a.find(uXe);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function lXe(e){const t=y.forwardRef((n,r)=>{const{children:i,...o}=n;if(y.isValidElement(i)){const s=fXe(i),a=dXe(o,i.props);return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cXe=Symbol("radix.slottable");function uXe(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cXe}function dXe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function fXe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wj=["Enter"," "],hXe=["ArrowDown","PageUp","Home"],$ge=["ArrowUp","PageDown","End"],pXe=[...hXe,...$ge],mXe={ltr:[...Wj,"ArrowRight"],rtl:[...Wj,"ArrowLeft"]},gXe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},wS="Menu",[qE,vXe,yXe]=rS(wS),[xg,Fge]=Ri(wS,[yXe,Fh,e0]),ZR=Fh(),Bge=e0(),[bXe,Eg]=xg(wS),[wXe,xS]=xg(wS),jge=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:s=!0}=e,a=ZR(t),[l,c]=y.useState(null),u=y.useRef(!1),d=Vo(o),f=Qb(i);return y.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),D.jsx(GR,{...a,children:D.jsx(bXe,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:D.jsx(wXe,{scope:t,onClose:y.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:s,children:r})})})};jge.displayName=wS;var xXe="MenuAnchor",t6=y.forwardRef((e,t)=>
940{const{__scopeMenu:n,...r}=e,i=ZR(n);return D.jsx(yS,{...i,...r,ref:t})});t6.displayName=xXe;var n6="MenuPortal",[EXe,zge]=xg(n6,{forceMount:void 0}),Uge=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=Eg(n6,t);return D.jsx(EXe,{scope:t,forceMount:n,children:D.jsx(no,{present:n||o.open,children:D.jsx(mg,{asChild:!0,container:i,children:r})})})};Uge.displayName=n6;var $a="MenuContent",[SXe,r6]=xg($a),Vge=y.forwardRef((e,t)=>{const n=zge($a,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=Eg($a,e.__scopeMenu),s=xS($a,e.__scopeMenu);return D.jsx(qE.Provider,{scope:e.__scopeMenu,children:D.jsx(no,{present:r||o.open,children:D.jsx(qE.Slot,{scope:e.__scopeMenu,children:s.modal?D.jsx(_Xe,{...i,ref:t}):D.jsx(kXe,{...i,ref:t})})})})}),_Xe=y.forwardRef((e,t)=>{const n=Eg($a,e.__scopeMenu),r=y.useRef(null),i=xt(t,r);return y.useEffect(()=>{const o=r.current;if(o)return zR(o)},[]),D.jsx(i6,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ee(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),kXe=y.forwardRef((e,t)=>{const n=Eg($a,e.__scopeMenu);return D.jsx(i6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),CXe=aXe("MenuContent.ScrollLock"),i6=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:p,...m}=e,g=Eg($a,n),v=xS($a,n),b=ZR(n),w=Bge(n),x=vXe(n),[E,S]=y.useState(null),_=y.useRef(null),k=xt(t,_,g.onContentChange),C=y.useRef(0),T=y.useRef(""),A=y.useRef(0),O=y.useRef(null),R=y.useRef("right"),I=y.useRef(0),F=p?gS:y.Fragment,N=p?{as:CXe,allowPinchZoom:!0}:void 0,B=L=>{var ue,ce;const P=T.current+L,G=x().filter(Q=>!Q.disabled),Z=document.activeElement,z=(ue=G.find(Q=>Q.ref.current===Z))==null?void 0:ue.textValue,oe=G.map(Q=>Q.textValue),le=FXe(oe,P,z),se=(ce=G.find(Q=>Q.textValue===le))==null?void 0:ce.ref.current;(function Q(K){T.current=K,window.clearTimeout(C.current),K!==""&&(C.current=window.setTimeout(()=>Q(""),1e3))})(P),se&&setTimeout(()=>se.focus())};y.useEffect(()=>()=>window.clearTimeout(C.current),[]),BR();const M=y.useCallback(L=>{var G,Z;return R.current===((G=O.current)==null?void 0:G.side)&&jXe(L,(Z=O.current)==null?void 0:Z.area)},[]);return D.jsx(SXe,{scope:n,searchRef:T,onItemEnter:y.useCallback(L=>{M(L)&&L.preventDefault()},[M]),onItemLeave:y.useCallback(L=>{var P;M(L)||((P=_.current)==null||P.focus(),S(null))},[M]),onTriggerLeave:y.useCallback(L=>{M(L)&&L.preventDefault()},[M]),pointerGraceTimerRef:A,onPointerGraceIntentChange:y.useCallback(L=>{O.current=L},[]),children:D.jsx(F,{...N,children:D.jsx(mS,{asChild:!0,trapped:i,onMountAutoFocus:Ee(o,L=>{var P;L.preventDefault(),(P=_.current)==null||P.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:D.jsx(pg,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:D.jsx(JV,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:S,onEntryFocus:Ee(l,L=>{v.isUsingKeyboardRef.current||L.preventDefault()}),preventScrollOnEntryFocus:!0,children:D.jsx(YR,{role:"menu","aria-orientation":"vertical","data-state":ove(g.open),"data-radix-menu-content":"",dir:v.dir,...b,...m,ref:k,style:{outline:"none",...m.style},onKeyDown:Ee(m.onKeyDown,L=>{const G=L.target.closest("[data-radix-menu-content]")===L.currentTarget,Z=L.ctrlKey||L.altKey||L.metaKey,z=L.key.length===1;G&&(L.key==="Tab"&&L.preventDefault(),!Z&&z&&B(L.key));const oe=_.current;if(L.target!==oe||!pXe.includes(L.key))return;L.preventDefault();const se=x().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);$ge.includes(L.key)&&se.reverse(),LXe(se)}),onBlur:Ee(e.onBlur,L=>{L.currentTarget.contains(L.target)||(window.clearTimeout(C.current),T.current="")}),onPointerMove:Ee(e.onPointerMove,GE(L=>{const P=L.target,G=I.current!==L.clientX;if(L.currentTarget.contains(P)&&G){const Z=L.clientX>I.current?"right":"left";R.current=Z,I.current=L.clientX}}))})})})})})})});Vge.displayName=$a;var TXe="MenuGroup",o6=y.forwardRef((e,t)=>
940{const{__scopeMenu:n,...r}=e;return D.jsx(Qe.div,{role:"group",...r,ref:t})});o6.displayName=TXe;var AXe="MenuLabel",Wge=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return D.jsx(Qe.div,{...r,ref:t})});Wge.displayName=AXe;var mO="MenuItem",zX="menu.itemSelect",QR=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=y.useRef(null),s=xS(mO,e.__scopeMenu),a=r6(mO,e.__scopeMenu),l=xt(t,o),c=y.useRef(!1),u=()=>{const d=o.current;if(!n&&d){const f=new CustomEvent(zX,{bubbles:!0,cancelable:!0});d.addEventListener(zX,h=>r==null?void 0:r(h),{once:!0}),O5(d,f),f.defaultPrevented?c.current=!1:s.onClose()}};return D.jsx(Hge,{...i,ref:l,disabled:n,onClick:Ee(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:Ee(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:Ee(e.onKeyDown,d=>{const f=a.searchRef.current!=="";n||f&&d.key===" "||Wj.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});QR.displayName=mO;var Hge=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,s=r6(mO,n),a=Bge(n),l=y.useRef(null),c=xt(t,l),[u,d]=y.useState(!1),[f,h]=y.useState("");return y.useEffect(()=>{const p=l.current;p&&h((p.textContent??"").trim())},[o.children]),D.jsx(qE.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:D.jsx(e6,{asChild:!0,...a,focusable:!r,children:D.jsx(Qe.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:c,onPointerMove:Ee(e.onPointerMove,GE(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ee(e.onPointerLeave,GE(p=>s.onItemLeave(p))),onFocus:Ee(e.onFocus,()=>d(!0)),onBlur:Ee(e.onBlur,()=>d(!1))})})})}),OXe="MenuCheckboxItem",Kge=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return D.jsx(Zge,{scope:e.__scopeMenu,checked:n,children:D.jsx(QR,{role:"menuitemcheckbox","aria-checked":gO(n)?"mixed":n,...i,ref:t,"data-state":a6(n),onSelect:Ee(i.onSelect,()=>r==null?void 0:r(gO(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Kge.displayName=OXe;var qge="MenuRadioGroup",[PXe,IXe]=xg(qge,{value:void 0,onValueChange:()=>{}}),Gge=y.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=Vo(r);return D.jsx(PXe,{scope:e.__scopeMenu,value:n,onValueChange:o,children:D.jsx(o6,{...i,ref:t})})});Gge.displayName=qge;var Yge="MenuRadioItem",Xge=y.forwardRef((e,t)=>{const{value:n,...r}=e,i=IXe(Yge,e.__scopeMenu),o=n===i.value;return D.jsx(Zge,{scope:e.__scopeMenu,checked:o,children:D.jsx(QR,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":a6(o),onSelect:Ee(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});Xge.displayName=Yge;var s6="MenuItemIndicator",[Zge,RXe]=xg(s6,{checked:!1}),Qge=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=RXe(s6,n);return D.jsx(no,{present:r||gO(o.checked)||o.checked===!0,children:D.jsx(Qe.span,{...i,ref:t,"data-state":a6(o.checked)})})});Qge.displayName=s6;var MXe="MenuSeparator",Jge=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return D.jsx(Qe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Jge.displayName=MXe;var NXe="MenuArrow",eve=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ZR(n);return D.jsx(XR,{...i,...r,ref:t})});eve.displayName=NXe;var DXe="MenuSub",[fnn,tve]=xg(DXe),ex="MenuSubTrigger",nve=y.forwardRef((e,t)=>{const n=Eg(ex,e.__scopeMenu),r=xS(ex,e.__scopeMenu),i=tve(ex,e.__scopeMenu),o=r6(ex,e.__scopeMenu),s=y.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=o,c={__scopeMenu:e.__scopeMenu},u=y.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return y.useEffect(()=>u,[u]),y.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),l(null)}},[a,l]),D.jsx(t6,{asChild:!0,...c,children:D.jsx(Hge,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":ove(n.open),...e,ref:lu(t,i.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focu
940s(),n.open||n.onOpenChange(!0))},onPointerMove:Ee(e.onPointerMove,GE(d=>{o.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Ee(e.onPointerLeave,GE(d=>{var h,p;u();const f=(h=n.content)==null?void 0:h.getBoundingClientRect();if(f){const m=(p=n.content)==null?void 0:p.dataset.side,g=m==="right",v=g?-5:5,b=f[g?"left":"right"],w=f[g?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:b,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x:b,y:f.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Ee(e.onKeyDown,d=>{var h;const f=o.searchRef.current!=="";e.disabled||f&&d.key===" "||mXe[r.dir].includes(d.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),d.preventDefault())})})})});nve.displayName=ex;var rve="MenuSubContent",ive=y.forwardRef((e,t)=>{const n=zge($a,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=Eg($a,e.__scopeMenu),s=xS($a,e.__scopeMenu),a=tve(rve,e.__scopeMenu),l=y.useRef(null),c=xt(t,l);return D.jsx(qE.Provider,{scope:e.__scopeMenu,children:D.jsx(no,{present:r||o.open,children:D.jsx(qE.Slot,{scope:e.__scopeMenu,children:D.jsx(i6,{id:a.contentId,"aria-labelledby":a.triggerId,...i,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;s.isUsingKeyboardRef.current&&((d=l.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Ee(e.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Ee(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:Ee(e.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),f=gXe[s.dir].includes(u.key);d&&f&&(o.onOpenChange(!1),(h=a.trigger)==null||h.focus(),u.preventDefault())})})})})})});ive.displayName=rve;function ove(e){return e?"open":"closed"}function gO(e){return e==="indeterminate"}function a6(e){return gO(e)?"indeterminate":e?"checked":"unchecked"}function LXe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $Xe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function FXe(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=$Xe(e,Math.max(o,0));i.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function BXe(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o],l=t[s],c=a.x,u=a.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(i=!i)}return i}function jXe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return BXe(n,t)}function GE(e){return t=>t.pointerType==="mouse"?e(t):void 0}var zXe=jge,UXe=t6,VXe=Uge,WXe=Vge,HXe=o6,KXe=Wge,qXe=QR,GXe=Kge,YXe=Gge,XXe=Xge,ZXe=Qge,QXe=Jge,JXe=eve,eZe=nve,tZe=ive,JR="DropdownMenu",[nZe]=Ri(JR,[Fge]),Zo=Fge(),[rZe,sve]=nZe(JR),ave=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=Zo(t),c=y.useRef(null),[u,d]=Wo({prop:i,defaultProp:o??!1,onChange:s,caller:JR});return D.jsx(rZe,{scope:t,triggerId:ys(),triggerRef:c,contentId:ys(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(f=>!f),[d]),modal:a,children:D.jsx(zXe,{...l,open:u,onOpenChange:d,dir:r,modal:a,children:n})})};ave.displayName=JR;var lve="DropdownMenuTrigger",cve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=sve(lve,n),s=Zo(n);return D.jsx(UXe,{asChild:!0,...s,children:D.jsx(Qe.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:lu(t,o.triggerRef),onPointerDown:Ee(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:Ee(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});cve.displayName=lve;var iZe="DropdownMenuPortal",uve=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Zo(t);return D.jsx(VXe,{...r,...n})};uve.displayName=iZe;var dve="DropdownMenuContent",fve=y.forwardRef((e,t)=>
940{const{__scopeDropdownMenu:n,...r}=e,i=sve(dve,n),o=Zo(n),s=y.useRef(!1);return D.jsx(WXe,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{var l;s.current||(l=i.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Ee(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(s.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)"}})});fve.displayName=dve;var oZe="DropdownMenuGroup",hve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(HXe,{...i,...r,ref:t})});hve.displayName=oZe;var sZe="DropdownMenuLabel",pve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(KXe,{...i,...r,ref:t})});pve.displayName=sZe;var aZe="DropdownMenuItem",mve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(qXe,{...i,...r,ref:t})});mve.displayName=aZe;var lZe="DropdownMenuCheckboxItem",gve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(GXe,{...i,...r,ref:t})});gve.displayName=lZe;var cZe="DropdownMenuRadioGroup",uZe=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(YXe,{...i,...r,ref:t})});uZe.displayName=cZe;var dZe="DropdownMenuRadioItem",vve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(XXe,{...i,...r,ref:t})});vve.displayName=dZe;var fZe="DropdownMenuItemIndicator",yve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(ZXe,{...i,...r,ref:t})});yve.displayName=fZe;var hZe="DropdownMenuSeparator",bve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(QXe,{...i,...r,ref:t})});bve.displayName=hZe;var pZe="DropdownMenuArrow",mZe=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(JXe,{...i,...r,ref:t})});mZe.displayName=pZe;var gZe="DropdownMenuSubTrigger",wve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(eZe,{...i,...r,ref:t})});wve.displayName=gZe;var vZe="DropdownMenuSubContent",xve=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Zo(n);return D.jsx(tZe,{...i,...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)"}})});xve.displayName=vZe;var hnn=ave,pnn=cve,mnn=uve,gnn=fve,vnn=hve,ynn=pve,bnn=mve,wnn=gve,xnn=vve,Enn=yve,Snn=bve,_nn=wve,knn=xve,kr={},l6={},ES={},SS={},Eve="Expected a function",UX=NaN,yZe="[object Symbol]",bZe=/^\s+|\s+$/g,wZe=/^[-+]0x[0-9a-f]+$/i,xZe=/^0b[01]+$/i,EZe=/^0o[0-7]+$/i,SZe=parseInt,_Ze=typeof zt=="object"&&zt&&zt.Object===Object&&zt,kZe=typeof self=="object"&&self&&self.Object===Object&&self,CZe=_Ze||kZe||Function("return this")(),TZe=Object.prototype,AZe=TZe.toString,OZe=Math.max,PZe=Math.min,fL=function(){return CZe.Date.now()};function IZe(e,t,n){var r,i,o,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Eve);t=VX(t)||0,vO(n)&&(u=!!n.leading,d="maxWait"in n,o=d?OZe(VX(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(S){var _=r,k=i;return r=i=void 0,c=S,s=e.apply(k,_),s}function p(S){return c=S,a=setTimeout(v,t),u?h(S):s}function m(S){var _=S-l,k=S-c,C=t-_;return d?PZe(C,o-k):C}function g(S){var _=S-l,k=S-c;return l===void 0||_>=t||_<0||d&&k>=o}function v(){var S=fL();if(g(S))return b(S);a=setTimeout(v,m(S))}function b(S){return a=void 0,f&&r?h(S):(r=i=void 0,s)}function w(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function x(){return a===void 0?s:b(fL())}function E(){var S=fL(),_=g(S);if(r=arguments,i=this,l=S,_){if(a===void 0)return p(l);if(d)return a=setTimeout(v,t),h(l)}return a===void 0&&(a=setTimeout(v,t)),s}return E.cancel=w,E.flush=x,E}function RZe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Eve);return vO(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),IZe(e,t,{leading:r,maxWait:t,trailing:i})}function vO(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function MZe(e){return!!e&&typeof e=="object"}function NZe(e){return typeof e=="symbol"||MZe(e)&&AZe.call(e)==yZe}function VX(e){if(typeof e=="number")return e;if(NZe(e))return UX;if(vO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(bZe,"");var n=xZe.test(e);return n||EZe.test(e)?SZe(e.slice(2),n?2:8):wZe.test(e)?UX:+e}var DZe=RZe,_S={};Object.defineProperty(_S,"__esModule",{value:!0});_S.addPassiveEventListener=function(t,n,r){var i=r.name;i||(i=n,console.warn("Listener must be a named function.")),kT.has(n)||kT.set(n,new Set);var o=kT.get(n);if(!o.has(i)){var s=function(){var a=!1;try{var l=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,l)}catch{}return a}();t.addEventListener(n,r,s?{passive:!0}:!1),o.add(i)}};_S.removePassiveEventListener=function(t,n,r){t.removeEventListener(n,r),kT.get(n).delete(r.name||n)};var kT=new Map;Object.defineProperty(SS,"__esModule",{value:!0});var LZe=DZe,$Ze=FZe(LZe),WX=_S;
940function FZe(e){return e&&e.__esModule?e:{default:e}}var BZe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,$Ze.default)(t,n)},ur={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,n){if(t){var r=BZe(function(i){ur.scrollHandler(t)},n);return ur.scrollSpyContainers.push(t),(0,WX.addPassiveEventListener)(t,"scroll",r),function(){(0,WX.removePassiveEventListener)(t,"scroll",r),ur.scrollSpyContainers.splice(ur.scrollSpyContainers.indexOf(t),1)}}return function(){}},isMounted:function(t){return ur.scrollSpyContainers.indexOf(t)!==-1},currentPositionX:function(t){if(t===document){var n=window.scrollY!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.scrollX:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return t.scrollLeft},currentPositionY:function(t){if(t===document){var n=window.scrollX!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.scrollY:r?document.documentElement.scrollTop:document.body.scrollTop}else return t.scrollTop},scrollHandler:function(t){var n=ur.scrollSpyContainers[ur.scrollSpyContainers.indexOf(t)].spyCallbacks||[];n.forEach(function(r){return r(ur.currentPositionX(t),ur.currentPositionY(t))})},addStateHandler:function(t){ur.spySetState.push(t)},addSpyHandler:function(t,n){var r=ur.scrollSpyContainers[ur.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(t)},updateStates:function(){ur.spySetState.forEach(function(t){return t()})},unmount:function(t,n){ur.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),ur.spySetState&&ur.spySetState.length&&ur.spySetState.indexOf(t)>-1&&ur.spySetState.splice(ur.spySetState.indexOf(t),1),document.removeEventListener("scroll",ur.scrollHandler)},update:function(){return ur.scrollSpyContainers.forEach(function(t){return ur.scrollHandler(t)})}};SS.default=ur;var t0={},kS={};Object.defineProperty(kS,"__esModule",{value:!0});var jZe=function(t,n){var r=t.indexOf("#")===0?t.substring(1):t,i=r?"#"+r:"",o=window&&window.location,s=i?o.pathname+o.search+i:o.pathname+o.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},zZe=function(){return window.location.hash.replace(/^#/,"")},UZe=function(t){return function(n){return t.contains?t!=n&&t.contains(n):!!(t.compareDocumentPosition(n)&16)}},VZe=function(t){return getComputedStyle(t).position!=="static"},hL=function(t,n){for(var r=t.offsetTop,i=t.offsetParent;i&&!n(i);)r+=i.offsetTop,i=i.offsetParent;return{offsetTop:r,offsetParent:i}},WZe=function(t,n,r){if(r)return t===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(t).position!=="static"?n.offsetLeft:n.offsetLeft-t.offsetLeft;if(t===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(VZe(t)){if(n.offsetParent!==t){var i=function(u){return u===t||u===document},o=hL(n,i),s=o.offsetTop,a=o.offsetParent;if(a!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===t.offsetParent)return n.offsetTop-t.offsetTop;var l=function(u){return u===document};return hL(n,l).offsetTop-hL(t,l).offsetTop};kS.default={updateHash:jZe,getHash:zZe,filterElementInContainer:UZe,scrollOffset:WZe};var eM={},c6={};Object.defineProperty(c6,"__esModule",{value:!0});c6.default={defaultEasing:function(t){return t<.5?Math.pow(t*2,2)/2:1-Math.pow((1-t)*2,2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};var u6={};Object.defineProperty(u6,"__esModule",{value:!0});var HZe=_S,KZe=["mousedown","wheel","touchmove","keydown"];u6.default={subscribe:function(t){return typeof document<"u"&&KZe.forEach(function(n){return(0,HZe.addPassiveEventListener)(document,n,t)}
940)}};var CS={};Object.defineProperty(CS,"__esModule",{value:!0});var Hj={registered:{},scrollEvent:{register:function(t,n){Hj.registered[t]=n},remove:function(t){Hj.registered[t]=null}}};CS.default=Hj;Object.defineProperty(eM,"__esModule",{value:!0});var qZe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GZe=kS;tM(GZe);var YZe=c6,HX=tM(YZe),XZe=u6,ZZe=tM(XZe),QZe=CS,mc=tM(QZe);function tM(e){return e&&e.__esModule?e:{default:e}}var Sve=function(t){return HX.default[t.smooth]||HX.default.defaultEasing},JZe=function(t){return typeof t=="function"?t:function(){return t}},eQe=function(){if(typeof window<"u")return window.requestAnimationFrame||window.webkitRequestAnimationFrame},Kj=function(){return eQe()||function(e,t,n){window.setTimeout(e,n||1e3/60,new Date().getTime())}}(),_ve=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},kve=function(t){var n=t.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollLeft;var r=window.pageXOffset!==void 0,i=(document.compatMode||"")==="CSS1Compat";return r?window.pageXOffset:i?document.documentElement.scrollLeft:document.body.scrollLeft},Cve=function(t){var n=t.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollTop;var r=window.pageXOffset!==void 0,i=(document.compatMode||"")==="CSS1Compat";return r?window.pageYOffset:i?document.documentElement.scrollTop:document.body.scrollTop},tQe=function(t){var n=t.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollWidth-n.offsetWidth;var r=document.body,i=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,i.clientWidth,i.scrollWidth,i.offsetWidth)},nQe=function(t){var n=t.data.containerElement;if(n&&n!==document&&n!==document.body)return n.scrollHeight-n.offsetHeight;var r=document.body,i=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)},rQe=function e(t,n,r){var i=n.data;if(!n.ignoreCancelEvents&&i.cancel){mc.default.registered.end&&mc.default.registered.end(i.to,i.target,i.currentPositionY);return}if(i.delta=Math.round(i.targetPosition-i.startPosition),i.start===null&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,n);Kj.call(window,o);return}mc.default.registered.end&&mc.default.registered.end(i.to,i.target,i.currentPosition)},d6=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},TS=function(t,n,r,i){n.data=n.data||_ve(),window.clearTimeout(n.data.delayTimeout);var o=function(){n.data.cancel=!0};if(ZZe.default.subscribe(o),d6(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?kve(n):Cve(n),n.data.targetPosition=n.absolute?t:t+n.data.startPosition,n.data.startPosition===n.data.targetPosition){m
940c.default.registered.end&&mc.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=JZe(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=i;var s=Sve(n),a=rQe.bind(null,s,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){mc.default.registered.begin&&mc.default.registered.begin(n.data.to,n.data.target),Kj.call(window,a)},n.delay);return}mc.default.registered.begin&&mc.default.registered.begin(n.data.to,n.data.target),Kj.call(window,a)},nM=function(t){return t=qZe({},t),t.data=t.data||_ve(),t.absolute=!0,t},iQe=function(t){TS(0,nM(t))},oQe=function(t,n){TS(t,nM(n))},sQe=function(t){t=nM(t),d6(t),TS(t.horizontal?tQe(t):nQe(t),t)},aQe=function(t,n){n=nM(n),d6(n);var r=n.horizontal?kve(n):Cve(n);TS(t+r,n)};eM.default={animateTopScroll:TS,getAnimationType:Sve,scrollToTop:iQe,scrollToBottom:sQe,scrollTo:oQe,scrollMore:aQe};Object.defineProperty(t0,"__esModule",{value:!0});var lQe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cQe=kS,uQe=f6(cQe),dQe=eM,fQe=f6(dQe),hQe=CS,Ok=f6(hQe);function f6(e){return e&&e.__esModule?e:{default:e}}var Pk={},KX=void 0;t0.default={unmount:function(){Pk={}},register:function(t,n){Pk[t]=n},unregister:function(t){delete Pk[t]},get:function(t){return Pk[t]||document.getElementById(t)||document.getElementsByName(t)[0]||document.getElementsByClassName(t)[0]},setActiveLink:function(t){return KX=t},getActiveLink:function(){return KX},scrollTo:function(t,n){var r=this.get(t);if(!r){console.warn("target Element not found");return}n=lQe({},n,{absolute:!1});var i=n.containerId,o=n.container,s=void 0;i?s=document.getElementById(i):o&&o.nodeType?s=o:s=document,n.absolute=!0;var a=n.horizontal,l=uQe.default.scrollOffset(s,r,a)+(n.offset||0);if(!n.smooth){Ok.default.registered.begin&&Ok.default.registered.begin(t,r),s===document?n.horizontal?window.scrollTo(l,0):window.scrollTo(0,l):s.scrollTop=l,Ok.default.registered.end&&Ok.default.registered.end(t,r);return}fQe.default.animateTopScroll(l,n,t,r)}};var Tve={exports:{}},pQe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mQe=pQe,gQe=mQe;function Ave(){}function Ove(){}Ove.resetWarningCache=Ave;var vQe=function(){function e(r,i,o,s,a,l){if(l!==gQe){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ove,resetWarningCache:Ave};return n.PropTypes=n,n};Tve.exports=vQe();var AS=Tve.exports;const Ce=yr(AS);var rM={};Object.defineProperty(rM,"__esModule",{value:!0});var yQe=kS,pL=bQe(yQe);function bQe(e){return e&&e.__esModule?e:{default:e}}var wQe={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(t){this.scroller=t,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(t,n){this.containers[t]=n},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var t=this,n=this.getHash();n?window.setTimeout(function(){t.scrollTo(n,!0),t.initialized=!0},10):this.initialized=!0},scrollTo:function(t,n){var r=this.scroller,i=r.get(t);if(i&&(n||t!==r.getActiveLink())){var o=this.containers[t]||document;r.scrollTo(t,{container:o})}},getHash:function(){return pL.default.getHash()},changeHash:function(t,n){this.isInitialized()&&pL.default.getHash()!==t&&pL.default.updateHash(t,n)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};rM.default=wQe;Object.defineProperty(ES,"__esModule",{value:!0});var Ik=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xQe=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),EQe=y,qX=OS(EQe),SQe=SS,Rk=OS(SQe),_Qe=t0,kQe=OS(_Qe),CQe=AS,er=OS(CQe),TQe=rM,Vd=OS(TQe);
940function OS(e){return e&&e.__esModule?e:{default:e}}function AQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OQe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function PQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var GX={to:er.default.string.isRequired,containerId:er.default.string,container:er.default.object,activeClass:er.default.string,activeStyle:er.default.object,spy:er.default.bool,horizontal:er.default.bool,smooth:er.default.oneOfType([er.default.bool,er.default.string]),offset:er.default.number,delay:er.default.number,isDynamic:er.default.bool,onClick:er.default.func,duration:er.default.oneOfType([er.default.number,er.default.func]),absolute:er.default.bool,onSetActive:er.default.func,onSetInactive:er.default.func,ignoreCancelEvents:er.default.bool,hashSpy:er.default.bool,saveHashHistory:er.default.bool,spyThrottle:er.default.number};ES.default=function(e,t){var n=t||kQe.default,r=function(o){PQe(s,o);function s(a){AQe(this,s);var l=OQe(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a));return i.call(l),l.state={active:!1},l.beforeUnmountCallbacks=[],l}return xQe(s,[{key:"getScrollSpyContainer",value:function(){var l=this.props.containerId,c=this.props.container;return l&&!c?document.getElementById(l):c&&c.nodeType?c:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var l=this.getScrollSpyContainer();if(!Rk.default.isMounted(l)){var c=Rk.default.mount(l,this.props.spyThrottle);this.beforeUnmountCallbacks.push(c)}this.props.hashSpy&&(Vd.default.isMounted()||Vd.default.mount(n),Vd.default.mapContainer(this.props.to,l)),Rk.default.addSpyHandler(this.spyHandler,l),this.setState({container:l})}}},{key:"componentWillUnmount",value:function(){Rk.default.unmount(this.stateHandler,this.spyHandler),this.beforeUnmountCallbacks.forEach(function(l){return l()})}},{key:"render",value:function(){var l="";this.state&&this.state.active?l=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():l=this.props.className;var c={};this.state&&this.state.active?c=Ik({},this.props.style,this.props.activeStyle):c=Ik({},this.props.style);var u=Ik({},this.props);for(var d in GX)u.hasOwnProperty(d)&&delete u[d];return u.className=l,u.style=c,u.onClick=this.handleClick,qX.default.createElement(e,u)}}]),s}(qX.default.PureComponent),i=function(){var s=this;this.scrollTo=function(a,l){n.scrollTo(a,Ik({},s.state,l))},this.handleClick=function(a){s.props.onClick&&s.props.onClick(a),a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault(),s.scrollTo(s.props.to,s.props)},this.spyHandler=function(a,l){var c=s.getScrollSpyContainer();if(!(Vd.default.isMounted()&&!Vd.default.isInitialized())){var u=s.props.horizontal,d=s.props.to,f=null,h=void 0,p=void 0;if(u){var m=0,g=0,v=0;if(c.getBoundingClientRect){var b=c.getBoundingClientRect();v=b.left}if(!f||s.props.isDynamic){if(f=n.get(d),!f)return;var w=f.getBoundingClientRect();m=w.left-v+a,g=m+w.width}var x=a-s.props.offset;h=x>=Math.floor(m)&&x<Math.floor(g),p=x<Math.floor(m)||x>=Math.floor(g)}else{var E=0,S=0,_=0;if(c.getBoundingClientRect){var k=c.getBoundingClientRect();_=k.top}if(!f||s.props.isDynamic){if(f=n.get(d),!f)return;var C=f.getBoundingClientRect();E=C.top-_+l,S=E+C.height}var T=l-s.props.offset;h=T>=Math.floor(E)&&T<Math.floor(S),p=T<Math.floor(E)||T>=Math.floor(S)}var A=n.getActiveLink();if(p){if(d===A&&n.setActiveLink(void 0),s.props.hashSpy&&Vd.default.getHash()===d){var O=s.props.saveHashHistory,R=O===void 0?!1:O;Vd.default.changeHash("",R)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(d,f))}
940if(h&&(A!==d||s.state.active===!1)){n.setActiveLink(d);var I=s.props.saveHashHistory,F=I===void 0?!1:I;s.props.hashSpy&&Vd.default.changeHash(d,F),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(d,f))}}}};return r.propTypes=GX,r.defaultProps={offset:0},r};Object.defineProperty(l6,"__esModule",{value:!0});var IQe=y,YX=Pve(IQe),RQe=ES,MQe=Pve(RQe);function Pve(e){return e&&e.__esModule?e:{default:e}}function NQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XX(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function DQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LQe=function(e){DQe(t,e);function t(){var n,r,i,o;NQe(this,t);for(var s=arguments.length,a=Array(s),l=0;l<s;l++)a[l]=arguments[l];return o=(r=(i=XX(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(a))),i),i.render=function(){return YX.default.createElement("a",i.props,i.props.children)},r),XX(i,o)}return t}(YX.default.Component);l6.default=(0,MQe.default)(LQe);var h6={};Object.defineProperty(h6,"__esModule",{value:!0});var $Qe=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),FQe=y,ZX=Ive(FQe),BQe=ES,jQe=Ive(BQe);function Ive(e){return e&&e.__esModule?e:{default:e}}function zQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UQe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WQe=function(e){VQe(t,e);function t(){return zQe(this,t),UQe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return $Qe(t,[{key:"render",value:function(){return ZX.default.createElement("button",this.props,this.props.children)}}]),t}(ZX.default.Component);h6.default=(0,jQe.default)(WQe);var p6={},iM={};Object.defineProperty(iM,"__esModule",{value:!0});var HQe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KQe=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),qQe=y,QX=oM(qQe),GQe=pr;oM(GQe);var YQe=t0,JX=oM(YQe),XQe=AS,eZ=oM(XQe);function oM(e){return e&&e.__esModule?e:{default:e}}function ZQe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QQe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function JQe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}iM.default=function(e){var t=function(n){JQe(r,n);function r(i){ZQe(this,r);var o=QQe(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i));return o.childBindings={domNode:null},o}
940return KQe(r,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(o){this.props.name!==o.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;JX.default.unregister(this.props.name)}},{key:"registerElems",value:function(o){JX.default.register(o,this.childBindings.domNode)}},{key:"render",value:function(){return QX.default.createElement(e,HQe({},this.props,{parentBindings:this.childBindings}))}}]),r}(QX.default.Component);return t.propTypes={name:eZ.default.string,id:eZ.default.string},t};Object.defineProperty(p6,"__esModule",{value:!0});var tZ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eJe=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),tJe=y,nZ=m6(tJe),nJe=iM,rJe=m6(nJe),iJe=AS,rZ=m6(iJe);function m6(e){return e&&e.__esModule?e:{default:e}}function oJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sJe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function aJe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Rve=function(e){aJe(t,e);function t(){return oJe(this,t),sJe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return eJe(t,[{key:"render",value:function(){var r=this,i=tZ({},this.props);return delete i.name,i.parentBindings&&delete i.parentBindings,nZ.default.createElement("div",tZ({},i,{ref:function(s){r.props.parentBindings.domNode=s}}),this.props.children)}}]),t}(nZ.default.Component);Rve.propTypes={name:rZ.default.string,id:rZ.default.string};p6.default=(0,rJe.default)(Rve);var mL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iZ=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function oZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sZ(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function aZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Mk=y,hp=SS,gL=t0,fr=AS,Wd=rM,lZ={to:fr.string.isRequired,containerId:fr.string,container:fr.object,activeClass:fr.string,spy:fr.bool,smooth:fr.oneOfType([fr.bool,fr.string]),offset:fr.number,delay:fr.number,isDynamic:fr.bool,onClick:fr.func,duration:fr.oneOfType([fr.number,fr.func]),absolute:fr.bool,onSetActive:fr.func,onSetInactive:fr.func,ignoreCancelEvents:fr.bool,hashSpy:fr.bool,spyThrottle:fr.number},lJe={Scroll:function(t,n){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=n||gL,i=function(s){aZ(a,s);function a(l){oZ(this,a);var c=sZ(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return o.call(c),c.state={active:!1},c}return iZ(a,[{key:"getScrollSpyContainer",value:function(){var c=this.props.containerId,u=this.props.container;return c?document.getElementById(c):u&&u.nodeType?u:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var c=this.getScrollSpyContainer();hp.isMounted(c)||hp.mount(c,this.props.spyThrottle),this.props.hashSpy&&(Wd.isMounted()||Wd.mount(r),Wd.mapContainer(this.props.to,c)),this.props.spy&&hp.addStateHandler(this.stateHandler),hp.addSpyHandler(this.spyHandler,c),this.setState({container:c})}}},{key:"componentWillUnmount",value:function(){hp.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var c="";this.state&&this.state.active?c=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():c=this.props.className;var u=mL({},this.props);for(var d in lZ)u.hasOwnProperty(d)&&delete u[d];return u.className=c,u.onClick=this.handleClick,Mk.createElement(t,u)}
940}]),a}(Mk.Component),o=function(){var a=this;this.scrollTo=function(l,c){r.scrollTo(l,mL({},a.state,c))},this.handleClick=function(l){a.props.onClick&&a.props.onClick(l),l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),a.scrollTo(a.props.to,a.props)},this.stateHandler=function(){r.getActiveLink()!==a.props.to&&(a.state!==null&&a.state.active&&a.props.onSetInactive&&a.props.onSetInactive(),a.setState({active:!1}))},this.spyHandler=function(l){var c=a.getScrollSpyContainer();if(!(Wd.isMounted()&&!Wd.isInitialized())){var u=a.props.to,d=null,f=0,h=0,p=0;if(c.getBoundingClientRect){var m=c.getBoundingClientRect();p=m.top}if(!d||a.props.isDynamic){if(d=r.get(u),!d)return;var g=d.getBoundingClientRect();f=g.top-p+l,h=f+g.height}var v=l-a.props.offset,b=v>=Math.floor(f)&&v<Math.floor(h),w=v<Math.floor(f)||v>=Math.floor(h),x=r.getActiveLink();if(w)return u===x&&r.setActiveLink(void 0),a.props.hashSpy&&Wd.getHash()===u&&Wd.changeHash(),a.props.spy&&a.state.active&&(a.setState({active:!1}),a.props.onSetInactive&&a.props.onSetInactive()),hp.updateStates();if(b&&x!==u)return r.setActiveLink(u),a.props.hashSpy&&Wd.changeHash(u),a.props.spy&&(a.setState({active:!0}),a.props.onSetActive&&a.props.onSetActive(u)),hp.updateStates()}}};return i.propTypes=lZ,i.defaultProps={offset:0},i},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){aZ(i,r);function i(o){oZ(this,i);var s=sZ(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,o));return s.childBindings={domNode:null},s}return iZ(i,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;gL.unregister(this.props.name)}},{key:"registerElems",value:function(s){gL.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return Mk.createElement(t,mL({},this.props,{parentBindings:this.childBindings}))}}]),i}(Mk.Component);return n.propTypes={name:fr.string,id:fr.string},n}},cJe=lJe;Object.defineProperty(kr,"__esModule",{value:!0});kr.Helpers=kr.ScrollElement=kr.ScrollLink=kr.animateScroll=kr.scrollSpy=kr.Events=kr.scroller=xJe=kr.Element=kr.Button=wJe=kr.Link=void 0;var uJe=l6,Mve=uu(uJe),dJe=h6,Nve=uu(dJe),fJe=p6,Dve=uu(fJe),hJe=t0,Lve=uu(hJe),pJe=CS,$ve=uu(pJe),mJe=SS,Fve=uu(mJe),gJe=eM,Bve=uu(gJe),vJe=ES,jve=uu(vJe),yJe=iM,zve=uu(yJe),bJe=cJe,Uve=uu(bJe);function uu(e){return e&&e.__esModule?e:{default:e}}var wJe=kr.Link=Mve.default;kr.Button=Nve.default;var xJe=kr.Element=Dve.default;kr.scroller=Lve.default;kr.Events=$ve.default;kr.scrollSpy=Fve.default;kr.animateScroll=Bve.default;kr.ScrollLink=jve.default;kr.ScrollElement=zve.default;kr.Helpers=Uve.default;kr.default={Link:Mve.default,Button:Nve.default,Element:Dve.default,scroller:Lve.default,Events:$ve.default,scrollSpy:Fve.default,animateScroll:Bve.default,ScrollLink:jve.default,ScrollElement:zve.default,Helpers:Uve.default};const g6=y.createContext({});function vh(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const EJe=typeof window<"u",sM=EJe?y.useLayoutEffect:y.useEffect,aM=y.createContext(null);function v6(e,t){e.indexOf(t)===-1&&e.push(t)}function yO(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jl=(e,t,n)=>n>t?t:n<e?e:n;let YE=()=>{};const yh={},Vve=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Wve(e){return typeof e=="object"&&e!==null}const Hve=e=>/^0[^.\s]+$/u.test(e);function Kve(e){let t;return()=>(t===void 0&&(t=e()),t)}const bs=e=>e,SJe=(e,t)=>n=>t(e(n)),PS=(...e)=>e.reduce(SJe),eb=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class y6{constructor(){this.subscriptions=[]}add(t){return v6(this.subscriptions,t),()=>yO(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ws=e=>
vendor: 14,402 bytes, line 940
940e*1e3,Pa=e=>e/1e3;function b6(e,t){return t?e*(1e3/t):0}const qve=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_Je=1e-7,kJe=12;function CJe(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=qve(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>_Je&&++a<kJe);return s}function IS(e,t,n,r){if(e===t&&n===r)return bs;const i=o=>CJe(o,0,1,e,n);return o=>o===0||o===1?o:qve(i(o),t,r)}const Gve=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yve=e=>t=>1-e(1-t),Xve=IS(.33,1.53,.69,.99),w6=Yve(Xve),Zve=Gve(w6),Qve=e=>e>=1?1:(e*=2)<1?.5*w6(e):.5*(2-Math.pow(2,-10*(e-1))),x6=e=>1-Math.sin(Math.acos(e)),Jve=Yve(x6),eye=Gve(x6),TJe=IS(.42,0,1,1),AJe=IS(0,0,.58,1),tye=IS(.42,0,.58,1),OJe=e=>Array.isArray(e)&&typeof e[0]!="number",nye=e=>Array.isArray(e)&&typeof e[0]=="number",PJe={linear:bs,easeIn:TJe,easeInOut:tye,easeOut:AJe,circIn:x6,circInOut:eye,circOut:Jve,backIn:w6,backInOut:Zve,backOut:Xve,anticipate:Qve},IJe=e=>typeof e=="string",cZ=e=>{if(nye(e)){YE(e.length===4);const[t,n,r,i]=e;return IS(t,n,r,i)}else if(IJe(e))return PJe[e];return e},Nk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function RJe(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&i?n:r;return d&&s.add(u),p.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0;const d=n;n=r,r=d,n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const MJe=40;function rye(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Nk.reduce((w,x)=>(w[x]=RJe(o),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:p}=s,m=()=>{const w=yh.useManualTiming,x=w?i.timestamp:performance.now();n=!1,w||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,MJe),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Nk.reduce((w,x)=>{const E=s[x];return w[x]=(S,_=!1,k=!1)=>(n||g(),E.schedule(S,_,k)),w},{}),cancel:w=>{for(let x=0;x<Nk.length;x++)s[Nk[x]].cancel(w)},state:i,steps:s}}const{schedule:Gt,cancel:Va,state:xi,steps:vL}=rye(typeof requestAnimationFrame<"u"?requestAnimationFrame:bs,!0);let CT;function NJe(){CT=void 0}const Do={now:()=>(CT===void 0&&Do.set(xi.isProcessing||yh.useManualTiming?xi.timestamp:performance.now()),CT),set:e=>{CT=e,queueMicrotask(NJe)}},iye=e=>t=>typeof t=="string"&&t.startsWith(e),oye=iye("--"),DJe=iye("var(--"),E6=e=>DJe(e)?LJe.test(e.split("/*")[0].trim()):!1,LJe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function uZ(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const n0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},XE={...n0,transform:e=>jl(0,1,e)},Dk={...n0,default:1},Fx=e=>Math.round(e*1e5)/1e5,S6=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $Je(e){return e==null}const FJe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_6=(e,t)=>n=>!!(typeof n=="string"&&FJe.test(n)&&n.startsWith(e)||t&&!$Je(n)&&Object.prototype.hasOwnProperty.call(n,t)),sye=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(S6);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},BJe=e=>jl(0,255,e),yL={...n0,transform:e=>Math.round(BJe(e))},jp={test:_6("rgb","red"),parse:sye("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yL.transform(e)+", "+yL.transform(t)+", "+yL.transform(n)+", "+Fx(XE.transform(r))+")"};function jJe(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const qj={test:_6("#"),parse:jJe,transform:jp.transform},RS=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qd=RS("deg"),Bc=RS("%"),He=RS("px"),zJe=RS("vh"),UJe=RS("vw"),dZ={...Bc,parse:e=>Bc.parse(e)/100,transform:e=>Bc.transform(e*100)},Fv={test:_6("hsl","hue"),parse:sye("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bc.transform(Fx(t))+", "+Bc.transform(Fx(n))+", "+Fx(XE.transform(r))+")"},Yr={test:e=>jp.test(e)||qj.test(e)||Fv.test(e),parse:e=>jp.test(e)?jp.parse(e):Fv.test(e)?Fv.parse(e):qj.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?jp.transform(e):Fv.transform(e),getAnimatableNone:e=>{const t=Yr.parse(e);return t.alpha=0,Yr.transform(t)}},VJe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WJe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(S6))==null?void 0:t.length)||0)+(((n=e.match(VJe))==null?void 0:n.length)||0)>0}const aye="number",lye="color",HJe="var",KJe="var(",fZ="${}",qJe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tb(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(qJe,l=>(Yr.test(l)?(r.color.push(o),i.push(lye),n.push(Yr.parse(l))):l.startsWith(KJe)?(r.var.push(o),i.push(HJe),n.push(l)):(r.number.push(o),i.push(aye),n.push(parseFloat(l))),++o,fZ)).split(fZ);return{values:n,split:a,indexes:r,types:i}}function GJe(e){return tb(e).values}function cye({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const s=t[o];s===aye?i+=Fx(r[o]):s===lye?i+=Yr.transform(r[o]):i+=r[o]}return i}}function YJe(e){return cye(tb(e))}const XJe=e=>typeof e=="number"?0:Yr.test(e)?Yr.getAnimatableNone(e):e,ZJe=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:XJe(e);function QJe(e){const t=tb(e);return cye(t)(t.values.map((r,i)=>ZJe(r,t.split[i])))}const Pl={test:WJe,parse:GJe,createTransformer:YJe,getAnimatableNone:QJe};function bL(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function JJe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=bL(l,a,e+1/3),o=bL(l,a,e),s=bL(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function bO(e,t){return n=>n>0?t:e}const Gn=(e,t,n)=>e+(t-e)*n,wL=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eet=[qj,jp,Fv],tet=e=>eet.find(t=>t.test(e));function hZ(e){const t=tet(e);if(!t)return!1;let n=t.parse(e);return t===Fv&&(n=JJe(n)),n}const pZ=(e,t)=>{const n=hZ(e),r=hZ(t);if(!n||!r)return bO(e,t);const i={...n};return o=>(i.red=wL(n.red,r.red,o),i.green=wL(n.green,r.green,o),i.blue=wL(n.blue,r.blue,o),i.alpha=Gn(n.alpha,r.alpha,o),jp.transform(i))},Gj=new Set(["none","hidden"]);function net(e,t){return Gj.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ret(e,t){return n=>Gn(e,t,n)}function k6(e){return typeof e=="number"?ret:typeof e=="string"?E6(e)?bO:Yr.test(e)?pZ:set:Array.isArray(e)?uye:typeof e=="object"?Yr.test(e)?pZ:iet:bO}function uye(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>k6(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function iet(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=k6(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function oet(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const set=(e,t)=>{const n=Pl.createTransformer(t),r=tb(e),i=tb(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Gj.has(e)&&!i.values.length||Gj.has(t)&&!r.values.length?net(e,t):PS(uye(oet(r,i),i.values),n):bO(e,t)};function dye(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Gn(e,t,n):k6(e)(e,t)}const aet=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Gt.update(t,n),stop:()=>Va(t),now:()=>xi.isProcessing?xi.timestamp:Do.now()}},fye=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},wO=2e4;function C6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<wO;)t+=n,r=e.next(t);return t>=wO?1/0:t}function cet(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(C6(r),wO);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Pa(i)}}const Cr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Yj(e,t){return e*Math.sqrt(1-t*t)}const uet=12;function det(e,t,n){let r=n;for(let i=1;i<uet;i++)r=r-e(r)/t(r);return r}const xL=.001;function fet({duration:e=Cr.duration,bounce:t=Cr.bounce,velocity:n=Cr.velocity,mass:r=Cr.mass}){let i,o,s=1-t;s=jl(Cr.minDamping,Cr.maxDamping,s),e=jl(Cr.minDuration,Cr.maxDuration,Pa(e)),s<1?(i=c=>{const u=c*s,d=u*e,f=u-n,h=Yj(c,s),p=Math.exp(-d);return xL-f/h*p},o=c=>{const d=c*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-d),m=Yj(Math.pow(c,2),s);return(-i(c)+xL>0?-1:1)*((f-h)*p)/m}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-xL+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=det(i,o,a);if(e=Ws(e),isNaN(l))return{stiffness:Cr.stiffness,damping:Cr.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const het=["duration","bounce"],pet=["stiffness","damping","mass"];function mZ(e,t){return t.some(n=>e[n]!==void 0)}function met(e){let t={velocity:Cr.velocity,stiffness:Cr.stiffness,damping:Cr.damping,mass:Cr.mass,isResolvedFromDuration:!1,...e};if(!mZ(e,pet)&&mZ(e,het))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*jl(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Cr.mass,stiffness:i,damping:o}}else{const n=fet({...e,velocity:0});t={...t,...n,mass:Cr.mass},t.isResolvedFromDuration=!0}return t}function xO(e=Cr.visualDuration,t=Cr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=met({...n,velocity:-Pa(n.velocity||0)}),p=f||0,m=c/(2*Math.sqrt(l*u)),g=s-o,v=Pa(Math.sqrt(l/u)),b=Math.abs(g)<5;r||(r=b?Cr.restSpeed.granular:Cr.restSpeed.default),i||(i=b?Cr.restDelta.granular:Cr.restDelta.default);let w,x,E,S,_,k;if(m<1)E=Yj(v,m),S=(p+m*v*g)/E,w=T=>{const A=Math.exp(-m*v*T);return s-A*(S*Math.sin(E*T)+g*Math.cos(E*T))},_=m*v*S+g*E,k=m*v*g-S*E,x=T=>Math.exp(-m*v*T)*(_*Math.sin(E*T)+k*Math.cos(E*T));else if(m===1){w=A=>s-Math.exp(-v*A)*(g+(p+v*g)*A);const T=p+v*g;x=A=>Math.exp(-v*A)*(v*T*A-p)}else{const T=v*Math.sqrt(m*m-1);w=I=>{const F=Math.exp(-m*v*I),N=Math.min(T*I,300);return s-F*((p+m*v*g)*Math.sinh(N)+T*g*Math.cosh(N))/T};const A=(p+m*v*g)/T,O=m*v*A-g*T,R=m*v*g-A*T;x=I=>{const F=Math.exp(-m*v*I),N=Math.min(T*I,300);return F*(O*Math.sinh(N)+R*Math.cosh(N))}}const C={calculatedDuration:h&&d||null,velocity:T=>Ws(x(T)),next:T=>{if(!h&&m<1){const O=Math.exp(-m*v*T),R=Math.sin(E*T),I=Math.cos(E*T),F=s-O*(S*R+g*I),N=Ws(O*(_*R+k*I));return a.done=Math.abs(N)<=r&&Math.abs(s-F)<=i,a.value=a.done?s:F,a}const A=w(T);if(h)a.done=T>=d;else{const O=Ws(x(T));a.done=Math.abs(O)<=r&&Math.abs(s-A)<=i}return a.value=a.done?s:A,a},toString:()=>{const T=Math.min(C6(C),wO),A=fye(O=>C.next(T*O).value,T,30);return T+"ms "+A},toTransition:()=>{}};return C}xO.applyToOptions=e=>{const t=cet(e,100,xO);return e.ease=t.ease,e.duration=Ws(t.duration),e.type="keyframes",e};const get=5;function hye(e,t,n){const r=Math.max(t-get,0);return b6(n-e(r),t-r)}function Xj({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=k=>a!==void 0&&k<a||l!==void 0&&k>l,p=k=>a===void 0?l:l===void 0||Math.abs(a-k)<Math.abs(l-k)?a:l;let m=n*t;const g=d+m,v=s===void 0?g:s(g);v!==g&&(m=v-d);const b=k=>-m*Math.exp(-k/r),w=k=>v+b(k),x=k=>{const C=b(k),T=w(k);f.done=Math.abs(C)<=c,f.value=f.done?v:T};let E,S;const _=k=>{h(f.value)&&(E=k,S=xO({keyframes:[f.value,p(f.value)],velocity:hye(w,k,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:k=>{let C=!1;return!S&&E===void 0&&(C=!0,x(k),_(k)),E!==void 0&&k>=E?S.next(k-E):(!C&&x(k),f)}}}function vet(e,t,n){const r=[],i=n||yh.mix||dye,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||bs:t;a=PS(l,a)}r.push(a)}return r}function T6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(YE(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=vet(t,r,i),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=eb(e[d],e[d+1],u);return a[d](f)};return n?u=>c(jl(e[0],e[o-1],u)):c}function yet(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=eb(0,t,r);e.push(Gn(n,1,i))}}function pye(e){const t=[0];return yet(t,e.length-1),t}function bet(e,t){return e.map(n=>n*t)}function wet(e,t){return e.map(()=>t||tye).splice(0,e.length-1)}function Bx({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=OJe(r)?r.map(cZ):cZ(r),o={done:!1,value:t[0]},s=bet(n&&n.length===t.length?n:pye(t),e),a=T6(s,t,{ease:Array.isArray(i)?i:wet(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const xet=e=>e!==null;function lM(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(xet),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}
940const Eet={decay:Xj,inertia:Xj,tween:Bx,keyframes:Bx,spring:xO};function mye(e){typeof e.type=="string"&&(e.type=Eet[e.type])}class A6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const _et=e=>e/100;class EO extends A6{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Do.now()&&this.tick(Do.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;mye(t);const{type:n=Bx,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Bx;l!==Bx&&typeof a[0]!="number"&&(this.mixKeyframes=PS(_et,dye(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=C6(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,x=r;if(d){const k=Math.min(this.currentTime,i)/a;let C=Math.floor(k),T=k%1;!T&&k>=1&&(T=1),T===1&&C--,C=Math.min(C,d+1),!!(C%2)&&(f==="reverse"?(T=1-T,h&&(T-=h/a)):f==="mirror"&&(x=s)),w=jl(0,1,T)*a}let E;b?(this.delayState.value=u[0],E=this.delayState):E=x.next(w),o&&!b&&(E.value=o(E.value));let{done:S}=E;!b&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return _&&p!==Xj&&(E.value=lM(u,this.options,g,this.speed)),m&&m(E.value),_&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Pa(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pa(t)}get time(){return Pa(this.currentTime)}set time(t){t=Ws(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return hye(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Do.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Pa(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=aet,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Do.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function ket(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const zp=e=>e*180/Math.PI,Zj=e=>{const t=zp(Math.atan2(e[1],e[0]));return Qj(t)},Cet={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zj,rotateZ:Zj,skewX:e=>zp(Math.atan(e[1])),skewY:e=>zp(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2}
940,Qj=e=>(e=e%360,e<0&&(e+=360),e),gZ=Zj,vZ=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yZ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Tet={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vZ,scaleY:yZ,scale:e=>(vZ(e)+yZ(e))/2,rotateX:e=>Qj(zp(Math.atan2(e[6],e[5]))),rotateY:e=>Qj(zp(Math.atan2(-e[2],e[0]))),rotateZ:gZ,rotate:gZ,skewX:e=>zp(Math.atan(e[4])),skewY:e=>zp(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jj(e){return e.includes("scale")?1:0}function e3(e,t){if(!e||e==="none")return Jj(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Tet,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Cet,i=a}if(!i)return Jj(t);const o=r[t],s=i[1].split(",").map(Oet);return typeof o=="function"?o(s):s[o]}const Aet=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return e3(n,t)};function Oet(e){return parseFloat(e.trim())}const r0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i0=new Set(r0),bZ=e=>e===n0||e===He,Pet=new Set(["x","y","z"]),Iet=r0.filter(e=>!Pet.has(e));function Ret(e){const t=[];return Iet.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Df={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>e3(t,"x"),y:(e,{transform:t})=>e3(t,"y")};Df.translateX=Df.x;Df.translateY=Df.y;const fm=new Set;let t3=!1,n3=!1,r3=!1;function gye(){if(n3){const e=Array.from(fm).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ret(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}n3=!1,t3=!1,fm.forEach(e=>e.complete(r3)),fm.clear()}function vye(){fm.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(n3=!0)})}function Met(){r3=!0,vye(),gye(),r3=!1}class O6{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(fm.add(this),t3||(t3=!0,Gt.read(vye),Gt.resolveKeyframes(gye))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}ket(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fm.delete(this)}cancel(){this.state==="scheduled"&&(fm.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Net=e=>e.startsWith("--");function yye(e,t,n){Net(t)?e.style.setProperty(t,n):e.style[t]=n}const Det={};function P6(e,t){const n=Kve(e);return()=>Det[t]??n()}const I6=P6(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bye=P6(()=>window.ViewTimeline!==void 0,"viewTimeline"),wye=P6(()=>{try{document.createElement("div").animate({opacity:0}
940,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tx=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,wZ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tx([0,.65,.55,1]),circOut:tx([.55,0,1,.45]),backIn:tx([.31,.01,.66,-.59]),backOut:tx([.33,1.53,.69,.99])};function xye(e,t){if(e)return typeof e=="function"?wye()?fye(e,t):"ease-out":nye(e)?tx(e):Array.isArray(e)?e.map(n=>xye(n,t)||wZ.easeOut):wZ[e]}function Let(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=xye(a,i);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function Eye(e){return typeof e=="function"&&"applyToOptions"in e}function $et({type:e,...t}){return Eye(e)&&wye()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Sye extends A6{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,YE(typeof t.type!="string");const c=$et(t);this.animation=Let(n,r,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=lM(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),yye(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Pa(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pa(t)}get time(){return Pa(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ws(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&I6()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),bs):i(this)}}const _ye={anticipate:Qve,backInOut:Zve,circInOut:eye};function Fet(e){return e in _ye}function Bet(e){typeof e.ease=="string"&&Fet(e.ease)&&(e.ease=_ye[e.ease])}const EL=10;class jet extends Sye{constructor(t){Bet(t),mye(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new EO({...s,autoplay:!1}),l=Math.max(EL,Do.now()-this.startTime),c=jl(0,EL,l-EL),u=a.sample(l).value,{name:d}=this.options;o&&d&&yye(o,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const xZ=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pl.test(e)||e==="0")&&!e.startsWith("url("));function zet(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Uet(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=xZ(i,t),a=xZ(o,t);return!s||!a?!1:zet(e)||(n==="spring"||Eye(n))&&r}function i3(e){e.duration=0,e.type="keyframes"}const kye=new Set(["opacity","clipPath","filter","transform"]),Vet=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Wet(e){for(let t=0;t<e.length;
940t++)if(typeof e[t]=="string"&&Vet.test(e[t]))return!0;return!1}const Het=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ket=Kve(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qet(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Ket()&&n&&(kye.has(n)||Het.has(n)&&Wet(a))&&(n!=="transform"||!u)&&!c&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const Get=40;class Yet extends A6{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var p;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Do.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:c,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||O6;this.keyframeResolver=new h(a,(m,g,v)=>this.onKeyframesResolved(m,g,f,!v),l,c,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){var v,b;this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Do.now();let d=!0;Uet(t,o,s,a)||(d=!1,(yh.instantAnimations||!l)&&(u==null||u(lM(t,r,n))),t[0]=t[t.length-1],i3(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Get?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=d&&!c&&qet(h),m=(b=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:b.current;let g;if(p)try{g=new jet({...h,element:m})}catch{g=new EO(h)}else g=new EO(h);g.finished.then(()=>{this.notifyFinished()}).catch(bs),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Met()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Cye(e,t,n,r=0,i=1){const o=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}const Xet=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zet(e){const t=Xet.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Tye(e,t,n=1){const[r,i]=Zet(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Vve(s)?parseFloat(s):s}return E6(i)?Tye(i,t,n+1):i}const Qet={type:"spring",stiffness:500,damping:25,restSpeed:10},Jet=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ett={type:"keyframes",duration:.8},ttt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ntt=(e,{keyframes:t})=>t.length>2?ett:i0.has(e)?e.startsWith("scale")?Jet(t[1]):Qet:ttt;function Aye(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function R6(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Aye(n,e):n}const rtt=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function itt(e){for(const t in e)if(!rtt.has(t))return!0;return!1}const M6=(e,t,n,r={},i,o)=>s=>{const a=R6(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ws(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};itt(a)||Object.assign(u,ntt(e,u)),u.duration&&(u.duration=Ws(u.duration)),u.repeatDelay&&(u.repeatDelay=Ws(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(i3(u),u.delay===0&&(
940d=!0)),(yh.instantAnimations||yh.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,i3(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&t.get()!==void 0){const f=lM(u.keyframes,a);if(f!==void 0){Gt.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new EO(u):new Yet(u)};function EZ(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function N6(e,t,n,r){if(typeof t=="function"){const[i,o]=EZ(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=EZ(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function hm(e,t,n){const r=e.getProps();return N6(r,t,n!==void 0?n:r.custom,e)}const Oye=new Set(["width","height","top","left","right","bottom",...r0]),SZ=30,ott=e=>!isNaN(parseFloat(e)),jx={current:void 0};class stt{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Do.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Do.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ott(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new y6);const r=this.events[t].add(n);return t==="change"?()=>{r(),Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return jx.current&&jx.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Do.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SZ)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SZ);return b6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function El(e,t){return new stt(e,t)}const o3=e=>Array.isArray(e);function att(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,El(n))}function ltt(e){return o3(e)?e[e.length-1]||0:e}function ctt(e,t){const n=hm(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=ltt(o[s]);att(e,s,a)}}const Xi=e=>!!(e&&e.getVelocity);function utt(e){return!!(Xi(e)&&e.add)}function s3(e,t){const n=e.getValue("willChange");if(utt(n))return n.add(t);if(!n&&yh.WillChange){const r=new yh.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function D6(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const dtt="framerAppearId",Pye="data-"+D6(dtt);function Iye(e){return e.props[Pye]}function ftt({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Rye(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();o=o?Aye(o,l):l;const c=o==null?void 0:o.reduceMotion;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const h=e.getValue(f,e.latestValues[f]??null),p=a[f];if(p===void 0||d&&ftt(d,f))continue;const m={delay:n,...R6(o||{},f)},g=h.get();if(g!==void 0&&!h.isAnimating()&&!Array.isArray(p)&&p===g&&!m.velocity){Gt.update(()=>h.set(p));continue}let v=!1;if(window.MotionHandoffAnimation){const x=Iye(e);if(x){const E=window.MotionHandoffAnimation(x,f,Gt);E!==null&&(m.startTime=E,v=!0)}}s3(e,f);const b=c??e.shouldReduceMotion;h.start(M6(f,h,p,b&&Oye.has(f)?{type:!1}:m,e,v));const w=h.animation;w&&u.push(w)}if(s){const f=()=>Gt.update(()=>{s&&ctt(e,s)});u.length?Promise.all(u).then(f):f()}return u}function a3(e,t,n={}){var l;const r=hm(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Rye(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return htt(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,s]:[s,o];return c().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function htt(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(a3(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Cye(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function ptt(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>a3(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=a3(e,t,n);else{const i=typeof t=="function"?hm(e,t,n.custom):t;r=Promise.all(Rye(e,i,n))}return r.then(()=>
vendor: 4,052 bytes, line 940
940{e.notify("AnimationComplete",t)})}const mtt={test:e=>e==="auto",parse:e=>e},Mye=e=>t=>t.test(e),Nye=[n0,He,Bc,Qd,UJe,zJe,mtt],_Z=e=>Nye.find(Mye(e));function gtt(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Hve(e):!0}const vtt=new Set(["brightness","contrast","saturate","opacity"]);function ytt(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(S6)||[];if(!r)return e;const i=n.replace(r,"");let o=vtt.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const btt=/\b([a-z-]*)\(.*?\)/gu,l3={...Pl,getAnimatableNone:e=>{const t=e.match(btt);return t?t.map(ytt).join(" "):e}},c3={...Pl,getAnimatableNone:e=>{const t=Pl.parse(e);return Pl.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},kZ={...n0,transform:Math.round},wtt={rotate:Qd,rotateX:Qd,rotateY:Qd,rotateZ:Qd,scale:Dk,scaleX:Dk,scaleY:Dk,scaleZ:Dk,skew:Qd,skewX:Qd,skewY:Qd,distance:He,translateX:He,translateY:He,translateZ:He,x:He,y:He,z:He,perspective:He,transformPerspective:He,opacity:XE,originX:dZ,originY:dZ,originZ:He},L6={borderWidth:He,borderTopWidth:He,borderRightWidth:He,borderBottomWidth:He,borderLeftWidth:He,borderRadius:He,borderTopLeftRadius:He,borderTopRightRadius:He,borderBottomRightRadius:He,borderBottomLeftRadius:He,width:He,maxWidth:He,height:He,maxHeight:He,top:He,right:He,bottom:He,left:He,inset:He,insetBlock:He,insetBlockStart:He,insetBlockEnd:He,insetInline:He,insetInlineStart:He,insetInlineEnd:He,padding:He,paddingTop:He,paddingRight:He,paddingBottom:He,paddingLeft:He,paddingBlock:He,paddingBlockStart:He,paddingBlockEnd:He,paddingInline:He,paddingInlineStart:He,paddingInlineEnd:He,margin:He,marginTop:He,marginRight:He,marginBottom:He,marginLeft:He,marginBlock:He,marginBlockStart:He,marginBlockEnd:He,marginInline:He,marginInlineStart:He,marginInlineEnd:He,fontSize:He,backgroundPositionX:He,backgroundPositionY:He,...wtt,zIndex:kZ,fillOpacity:XE,strokeOpacity:XE,numOctaves:kZ},xtt={...L6,color:Yr,backgroundColor:Yr,outlineColor:Yr,fill:Yr,stroke:Yr,borderColor:Yr,borderTopColor:Yr,borderRightColor:Yr,borderBottomColor:Yr,borderLeftColor:Yr,filter:l3,WebkitFilter:l3,mask:c3,WebkitMask:c3},Dye=e=>xtt[e],Ett=new Set([l3,c3]);function Lye(e,t){let n=Dye(e);return Ett.has(n)||(n=Pl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Stt=new Set(["auto","none","0"]);function _tt(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Stt.has(o)&&tb(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Lye(n,i)}class ktt extends O6{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),E6(d))){const f=Tye(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Oye.has(r)||t.length!==2)return;const[i,o]=t,s=_Z(i),a=_Z(o),l=uZ(i),c=uZ(o);if(l!==c&&Df[r]){this.needsMeasurement=!0;return}if(s!==a)if(bZ(s)&&bZ(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Df[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||gtt(t[i]))&&r.push(i);r.length&&_tt(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Df[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Df[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
940h(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function $ye(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Fye=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function zx(e){return Wve(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:$6}=rye(queueMicrotask,!1),rl={x:!1,y:!1};function Bye(){return rl.x||rl.y}function Ctt(e){return e==="x"||e==="y"?rl[e]?null:(rl[e]=!0,()=>{rl[e]=!1}):rl.x||rl.y?null:(rl.x=rl.y=!0,()=>{rl.x=rl.y=!1})}function jye(e,t){const n=$ye(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Ttt(e){return!(e.pointerType==="touch"||Bye())}function Att(e,t,n={}){const[r,i,o]=jye(e,n);return r.forEach(s=>{let a=!1,l=!1,c;const u=()=>{s.removeEventListener("pointerleave",p)},d=g=>{c&&(c(g),c=void 0),u()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(g))},h=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}d(g)}},m=g=>{if(!Ttt(g))return;l=!1;const v=t(s,g);typeof v=="function"&&(c=v,s.addEventListener("pointerleave",p,i))};s.addEventListener("pointerenter",m,i),s.addEventListener("pointerdown",h,i)}),o}const zye=(e,t)=>t?e===t?!0:zye(e,t.parentElement):!1,F6=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ott=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ptt(e){return Ott.has(e.tagName)||e.isContentEditable===!0}const Itt=new Set(["INPUT","SELECT","TEXTAREA"]);function Rtt(e){return Itt.has(e.tagName)||e.isContentEditable===!0}const TT=new WeakSet;function CZ(e){return t=>{t.key==="Enter"&&e(t)}}function SL(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Mtt=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=CZ(()=>{if(TT.has(n))return;SL(n,"down");const i=CZ(()=>{SL(n,"up")}),o=()=>SL(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function TZ(e){return F6(e)&&!Bye()}const AZ=new WeakSet;function Ntt(e,t,n={}){const[r,i,o]=jye(e,n),s=a=>{const l=a.currentTarget;if(!TZ(a)||AZ.has(a))return;TT.add(l),n.stopPropagation&&AZ.add(a);const c=t(l,a),u=(h,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),TT.has(l)&&TT.delete(l),TZ(h)&&typeof c=="function"&&c(h,{success:p})},d=h=>{u(h,l===window||l===document||n.useGlobalTarget||zye(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),zx(a)&&(a.addEventListener("focus",c=>Mtt(c,i)),!Ptt(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function B6(e){return Wve(e)&&"ownerSVGElement"in e}const AT=new WeakMap;let Jd;const Uye=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:B6(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Dtt=Uye("inline","width","offsetWidth"),Ltt=Uye("block","height","offsetHeight");function $tt({target:e,borderBoxSize:t}){var n;(n=AT.get(e))==null||n.forEach(r=>{r(e,{get width(){return Dtt(e,t)},get height(){return Ltt(e,t)}})})}function Ftt(e){e.forEach($tt)}function Btt(){typeof ResizeObserver>"u"||(Jd=new ResizeObserver(Ftt))}function jtt(e,t){Jd||Btt();const n=$ye(e);return n.forEach(r=>{let i=AT.get(r);i||(i=new Set,AT.set(r,i)),i.add(t),Jd==null||Jd.observe(r)}),()=>{n.forEach(r=>{const i=AT.get(r);i==null||i.delete(t),i!=null&&i.size||Jd==null||Jd.unobserve(r)})}}const OT=new Set;let Bv;function ztt(){Bv=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};OT.forEach(t=>t(e))},window.addEventListener("resize",Bv)}function Utt(e){return OT.add(e),Bv||ztt(),()=>{OT.delete(e),!OT.size&&typeof Bv=="function"&&(window.removeEventListener("resize",Bv),Bv=void 0)}}function u3(e,t){return typeof e=="function"?Utt(e):jtt(e,t)}function Vye(e,t){let n;const r=()=>{const{currentTime:i}=t,s=(i===null?0:i.value)/100;n!==s&&e(s),n=s};return Gt.preUpdate(r,!0),()=>Va(r)}function Vtt(e){return B6(e)&&e.tagName==="svg"}function Wtt(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=T6(i,o,s);return t?a(r):a}const Htt=[...Nye,Yr,Pl],Ktt=e=>Htt.find(Mye(e)),OZ=()=>({translate:0,scale:1,origin:0,originPoint:0}),jv=()=>({x:OZ(),y:OZ()}),PZ=()=>({min:0,max:0}),ai=()=>({x:PZ(),y:PZ()}),qtt=new WeakMap;function cM(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ZE(e){return typeof e=="string"||Array.isArray(e)}const j6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],z6=["initial",...j6];function uM(e){return cM(e.animate)||z6.some(t=>ZE(e[t]))}function Wye(e){return!!(uM(e)||e.variants)}function Gtt(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Xi(i))e.addValue(r,i);else if(Xi(o))e.addValue(r,El(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,El(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const d3={current:null},Hye={current:!1},Ytt=typeof window<"u";
vendor: 5,695 bytes, line 940
940function Xtt(){if(Hye.current=!0,!!Ytt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>d3.current=e.matches;e.addEventListener("change",t),t()}else d3.current=!1}const IZ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let SO={};function Kye(e){SO=e}function Ztt(){return SO}class Qtt{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=O6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Do.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Gt.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=uM(n),this.isVariantNode=Wye(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];c[h]!==void 0&&Xi(p)&&p.set(c[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,qtt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Hye.current||Xtt(),this.shouldReduceMotion=d3.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Va(this.notifyUpdate),Va(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&kye.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new Sye({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:Ws(u)}),f=s(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=i0.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in SO){const n=SO[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ai()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<IZ.length;r++){const i=IZ[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Gtt(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 19,120 bytes, line 940
940addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=El(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Vve(r)||Hve(r))?r=parseFloat(r):!Ktt(r)&&Pl.test(n)&&(r=Lye(t,n)),this.setBaseTarget(t,Xi(r)?r.get():r)),Xi(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=N6(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Xi(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new y6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$6.render(this.render)}}class qye extends Qtt{constructor(){super(...arguments),this.KeyframeResolver=ktt}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xi(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Bh{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gye({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jtt({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ent(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _L(e){return e===void 0||e===1}function f3({scale:e,scaleX:t,scaleY:n}){return!_L(e)||!_L(t)||!_L(n)}function kp(e){return f3(e)||Yye(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yye(e){return RZ(e.x)||RZ(e.y)}function RZ(e){return e&&e!=="0%"}function _O(e,t,n){const r=e-n,i=t*r;return n+i}function MZ(e,t,n,r,i){return i!==void 0&&(e=_O(e,i,r)),_O(e,n,r)+t}function h3(e,t=0,n=1,r,i){e.min=MZ(e.min,t,n,r,i),e.max=MZ(e.max,t,n,r,i)}function Xye(e,{x:t,y:n}){h3(e.x,t.translate,t.scale,t.originPoint),h3(e.y,n.translate,n.scale,n.originPoint)}const NZ=.999999999999,DZ=1.0000000000001;function tnt(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(gc(e.x,-o.scroll.offset.x),gc(e.y,-o.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Xye(e,s)),r&&kp(o.latestValues)&&PT(e,o.latestValues,(a=o.layout)==null?void 0:a.layoutBox))}t.x<DZ&&t.x>NZ&&(t.x=1),t.y<DZ&&t.y>NZ&&(t.y=1)}function gc(e,t){e.min+=t,e.max+=t}function LZ(e,t,n,r,i=.5){const o=Gn(e.min,e.max,i);h3(e,t,n,o,r)}function $Z(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function PT(e,t,n){const r=n??e;LZ(e.x,$Z(t.x,r.x),t.scaleX,t.scale,t.originX),LZ(e.y,$Z(t.y,r.y),t.scaleY,t.scale,t.originY)}function Zye(e,t){return Gye(ent(e.getBoundingClientRect(),t))}function nnt(e,t,n){const r=Zye(e,n),{scroll:i}=t;return i&&(gc(r.x,i.offset.x),gc(r.y,i.offset.y)),r}const rnt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},int=r0.length;function ont(e,t,n){let r="",i=!0;for(let o=0;o<int;o++){const s=r0[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(s.startsWith("scale")?1:0);else{const c=parseFloat(a);l=s.startsWith("scale")?c===1:c===0}if(!l||n){const c=Fye(a,L6[s]);if(!l){i=!1;const u=rnt[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function U6(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(i0.has(l)){s=!0;continue}else if(oye(l)){i[l]=c;continue}else{const u=Fye(c,L6[l]);l.startsWith("origin")?(a=!0,o[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=ont(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;r.transformOrigin=`${l} ${c} ${u}`}}function Qye(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function FZ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ow={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(He.test(e))e=parseFloat(e);else return e;const n=FZ(e,t.target.x),r=FZ(e,t.target.y);return`${n}% ${r}%`}},snt={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Pl.parse(e);if(i.length>5)return r;const o=Pl.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=Gn(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}},p3={borderRadius:{...ow,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ow,borderTopRightRadius:ow,borderBottomLeftRadius:ow,borderBottomRightRadius:ow,boxShadow:snt};function Jye(e,{layout:t,layoutId:n}){return i0.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!p3[e]||e==="opacity")}function V6(e,t,n){var s;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const a in r)(Xi(r[a])||i&&Xi(i[a])||Jye(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(o[a]=r[a]);return o}function ant(e){return window.getComputedStyle(e)}class lnt extends qye{constructor(){super(...arguments),this.type="html",this.renderInstance=Qye}readValueFromInstance(t,n){var r;if(i0.has(n))return(r=this.projection)!=null&&r.isProjecting?Jj(n):Aet(t,n);{const i=ant(t),o=(oye(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Zye(t,n)}build(t,n,r){U6(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return V6(t,n,r)}}const cnt={offset:"stroke-dashoffset",array:"stroke-dasharray"},unt={offset:"strokeDashoffset",array:"strokeDasharray"};function dnt(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?cnt:unt;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const fnt=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ebe(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,c,u){if(U6(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of fnt)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&dnt(d,i,o,s,!1)}const tbe=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),nbe=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hnt(e,t,n,r){Qye(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(tbe.has(i)?i:D6(i),t.attrs[i])}function rbe(e,t,n){const r=V6(e,t,n);for(const i in e)if(Xi(e[i])||Xi(t[i])){const o=r0.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class pnt extends qye{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ai}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(i0.has(n)){const r=Dye(n);return r&&r.default||0}return n=tbe.has(n)?n:D6(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return rbe(t,n,r)}build(t,n,r){ebe(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){hnt(t,n,r,i)}mount(t){this.isSVGTag=nbe(t.tagName),super.mount(t)}}const mnt=z6.length;function ibe(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ibe(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mnt;n++){const r=z6[n],i=e.props[r];(ZE(i)||i===!1)&&(t[r]=i)}return t}function obe(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const gnt=[...j6].reverse(),vnt=j6.length;function ynt(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ptt(e,n,r)))}function bnt(e){let t=ynt(e),n=BZ(),r=!0,i=!1;const o=c=>(u,d)=>{var h;const f=hm(e,d,c==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(f){const{transition:p,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function s(c){t=c(e)}function a(c){const{props:u}=e,d=ibe(e.parent)||{},f=[],h=new Set;let p={},m=1/0;for(let v=0;v<vnt;v++){const b=gnt[v],w=n[b],x=u[b]!==void 0?u[b]:d[b],E=ZE(x),S=b===c?w.isActive:null;S===!1&&(m=v);let _=x===d[b]&&x!==u[b]&&E;if(_&&(r||i)&&e.manuallyAnimateOnMount&&(_=!1),w.protectedKeys={...p},!w.isActive&&S===null||!x&&!w.prevProp||cM(x)||typeof x=="boolean")continue;if(b==="exit"&&w.isActive&&S!==!0){w.prevResolvedValues&&(p={...p,...w.prevResolvedValues});continue}const k=wnt(w.prevProp,x);let C=k||b===c&&w.isActive&&!_&&E||v>m&&E,T=!1;const A=Array.isArray(x)?x:[x];let O=A.reduce(o(b),{});S===!1&&(O={});const{prevResolvedValues:R={}}=w,I={...R,...O},F=M=>{C=!0,h.has(M)&&(T=!0,h.delete(M)),w.needsAnimating[M]=!0;const L=e.getValue(M);L&&(L.liveStyle=!1)};for(const M in I){const L=O[M],P=R[M];if(p.hasOwnProperty(M))continue;let G=!1;o3(L)&&o3(P)?G=!obe(L,P):G=L!==P,G?L!=null?F(M):h.add(M):L!==void 0&&h.has(M)?F(M):w.protectedKeys[M]=!0}w.prevProp=x,w.prevResolvedValues=O,w.isActive&&(p={...p,...O}),(r||i)&&e.blockInitialAnimation&&(C=!1);const N=_&&k;C&&(!N||T)&&f.push(...A.map(M=>{const L={type:b};if(typeof M=="string"&&(r||i)&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:P}=e,G=hm(P,M);if(P.enteringChildren&&G){const{delayChildren:Z}=G.transition||{};L.delay=Cye(P.enteringChildren,e,Z)}}return{animation:M,options:L}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const b=hm(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(v.transition=b.transition)}h.forEach(b=>{const w=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),v[b]=w??null}),f.push({animation:v})}let g=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,i=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=BZ(),i=!0}}}function wnt(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!obe(t,e):!1}function pp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function BZ(){return{animate:pp(!0),whileInView:pp(),whileHover:pp(),whileTap:pp(),whileDrag:pp(),whileFocus:pp(),exit:pp()}}function m3(e,t){e.min=t.min,e.max=t.max}function el(e,t){m3(e.x,t.x),m3(e.y,t.y)}function jZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const sbe=1e-4,xnt=1-sbe,Ent=1+sbe,abe=.01,Snt=0-abe,_nt=0+abe;function Lo(e){return e.max-e.min}function knt(e,t,n){return Math.abs(e-t)<=n}function zZ(e,t,n,r=.5){e.origin=r,e.originPoint=Gn(t.min,t.max,e.origin),e.scale=Lo(n)/Lo(t),e.translate=Gn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xnt&&e.scale<=Ent||isNaN(e.scale))&&(e.scale=1),(e.translate>=Snt&&e.translate<=_nt||isNaN(e.translate))&&(e.translate=0)}function Ux(e,t,n,r){zZ(e.x,t.x,n.x,r?r.originX:void 0),zZ(e.y,t.y,n.y,r?r.originY:void 0)}function UZ(e,t,n,r=0){const i=r?Gn(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Lo(t)}function Cnt(e,t,n,r){UZ(e.x,t.x,n.x,r==null?void 0:r.x),UZ(e.y,t.y,n.y,r==null?void 0:r.y)}function VZ(e,t,n,r=0){const i=r?Gn(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Lo(t)}function kO(e,t,n,r){VZ(e.x,t.x,n.x,r==null?void 0:r.x),VZ(e.y,t.y,n.y,r==null?void 0:r.y)}function WZ(e,t,n,r,i){return e-=t,e=_O(e,1/n,r),i!==void 0&&(e=_O(e,1/i,r)),e}function Tnt(e,t=0,n=1,r=.5,i,o=e,s=e){if(Bc.test(t)&&(t=parseFloat(t),t=Gn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Gn(o.min,o.max,r);e===o&&(a-=t),e.min=WZ(e.min,t,n,a,i),e.max=WZ(e.max,t,n,a,i)}function HZ(e,t,[n,r,i],o,s){Tnt(e,t[n],t[r],t[i],t.scale,o,s)}const Ant=["x","scaleX","originX"],Ont=["y","scaleY","originY"];function KZ(e,t,n,r){HZ(e.x,t,Ant,n?n.x:void 0,r?r.x:void 0),HZ(e.y,t,Ont,n?n.y:void 0,r?r.y:void 0)}function qZ(e){return e.translate===0&&e.scale===1}function lbe(e){return qZ(e.x)&&qZ(e.y)}function GZ(e,t){return e.min===t.min&&e.max===t.max}function Pnt(e,t){return GZ(e.x,t.x)&&GZ(e.y,t.y)}function YZ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cbe(e,t){return YZ(e.x,t.x)&&YZ(e.y,t.y)}function XZ(e){return Lo(e.x)/Lo(e.y)}function ZZ(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function lc(e){return[e("x"),e("y")]}function Int(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const ube=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Rnt=ube.length,QZ=e=>typeof e=="string"?parseFloat(e):e,JZ=e=>typeof e=="number"||He.test(e);function Mnt(e,t,n,r,i,o){i?(e.opacity=Gn(0,n.opacity??1,Nnt(r)),e.opacityExit=Gn(t.opacity??1,0,Dnt(r))):o&&(e.opacity=Gn(t.opacity??1,n.opacity??1,r));for(let s=0;s<Rnt;s++){const a=ube[s];let l=eQ(t,a),c=eQ(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||JZ(l)===JZ(c)?(e[a]=Math.max(Gn(QZ(l),QZ(c),r),0),(Bc.test(c)||Bc.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Gn(t.rotate||0,n.rotate||0,r))}function eQ(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Nnt=dbe(0,.5,Jve),Dnt=dbe(.5,.95,bs);function dbe(e,t,n){return r=>r<e?0:r>t?1:n(eb(e,t,r))}function Lnt(e,t,n){const r=Xi(e)?e:El(e);return r.start(M6("",r,t,n)),r.animation}function QE(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const $nt=(e,t)=>e.depth-t.depth;class Fnt{constructor(){this.children=[],this.isDirty=!1}add(t){v6(this.children,t),this.isDirty=!0}remove(t){yO(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($nt),this.isDirty=!1,this.children.forEach(t)}}function Bnt(e,t){const n=Do.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Va(r),e(o-t))};return Gt.setup(r,!0),()=>Va(r)}function IT(e){return Xi(e)?e.get():e}class jnt{constructor(){this.members=[]}add(t){v6(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(yO(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(yO(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,s;(r=(n=t.options).onExitComplete)==null||r.call(n),(s=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||s.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const RT={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kL=["","X","Y","Z"],znt=1e3;let Unt=0;function CL(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fbe(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Iye(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Gt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fbe(r)}function hbe({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Unt++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 4,161 bytes, line 940
940{this.projectionUpdateScheduled=!1,this.nodes.forEach(Hnt),this.nodes.forEach(Znt),this.nodes.forEach(Qnt),this.nodes.forEach(Knt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fnt)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new y6),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=B6(s)&&!Vtt(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;Gt.read(()=>{d=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=Bnt(f,250),RT.hasAnimatedSinceResize&&(RT.hasAnimatedSinceResize=!1,this.nodes.forEach(rQ)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||rrt,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=c.getProps(),v=!this.targetLayout||!cbe(this.targetLayout,h),b=!d&&f;if(this.options.layoutRoot||this.resumeFrom||b||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...R6(p,"layout"),onPlay:m,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,b)}else d||rQ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Va(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Jnt),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fbe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Gnt),this.nodes.forEach(tQ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(nQ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
940h(Ynt),this.nodes.forEach(Xnt),this.nodes.forEach(Vnt),this.nodes.forEach(Wnt)):this.nodes.forEach(nQ),this.clearAllSnapshots();const a=Do.now();xi.delta=jl(0,1e3/60,a-xi.timestamp),xi.timestamp=a,xi.isProcessing=!0,vL.update.process(xi),vL.preRender.process(xi),vL.render.process(xi),xi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qnt),this.sharedNodes.forEach(ert)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Lo(this.snapshot.measuredBox.x)&&!Lo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ai()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!lbe(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||kp(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),irt(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:s}=this.options;if(!s)return ai();const a=s.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(ort))){const{scroll:u}=this.root;u&&(gc(a.x,u.offset.x),gc(a.y,u.offset.y))}return a}removeElementScroll(s){var l;const a=ai();if(el(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&el(a,s),gc(a.x,d.offset.x),gc(a.y,d.offset.y))}return a}applyTransform(s,a=!1,l){var u,d;const c=l||ai();el(c,s);for(let f=0;f<this.path.length;f++){const h=this.path[f];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(gc(c.x,-h.scroll.offset.x),gc(c.y,-h.scroll.offset.y)),kp(h.latestValues)&&PT(c,h.latestValues,(u=h.layout)==null?void 0:u.layoutBox)}return kp(this.latestValues)&&PT(c,this.latestValues,(d=this.layout)==null?void 0:d.layoutBox),c}removeTransform(s){var l;const a=ai();el(a,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!kp(u.latestValues))continue;let d;u.instance&&(f3(u.latestValues)&&u.updateSnapshot(),d=ai(),el(d,u.measurePageBox())),KZ(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,d)}return kp(this.latestValues)&&KZ(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=xi.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ai(),this.targetWithTransforms=ai()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Cnt(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):el(this.target,this.layout.layoutBox),Xye(this.target,this.targetDelta)):el(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||f3(this.parent.latestValues)||Yye(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ai(),this.relativeTargetOrigin=ai(),kO(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),el(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&
vendor: 9,862 bytes, line 940
940(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===xi.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;el(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;tnt(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ai());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jZ(this.prevProjectionDelta.x,this.projectionDelta.x),jZ(this.prevProjectionDelta.y,this.projectionDelta.y)),Ux(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!ZZ(this.projectionDelta.x,this.prevProjectionDelta.x)||!ZZ(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=jv(),this.projectionDelta=jv(),this.projectionDeltaWithTransform=jv()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=jv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ai(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=h!==p,g=this.getStack(),v=!g||g.members.length<=1,b=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(nrt));this.animationProgress=0;let w;this.mixTargetDelta=x=>{const E=x/1e3;iQ(d.x,s.x,E),iQ(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kO(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),trt(this.relativeTarget,this.relativeTargetOrigin,f,E),w&&Pnt(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ai()),el(w,this.relativeTarget)),m&&(this.animationValues=u,Mnt(u,c,this.latestValues,E,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Va(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Gt.update(()=>{RT.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=El(0)),this.motionValue.jump(0,!1),this.currentAnimation=Lnt(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(znt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&pbe(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ai();const d=Lo(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Lo(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}el(a,l),PT(a,u),Ux(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new jnt),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&CL("z",s,c,this.animationValues);for(let u=0;u<kL.length;u++)CL(`rotate${kL[u]}`,s,c,this.animationValues),CL(`skew${kL[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=IT(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=IT(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!kp(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=Int(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),s.transform=d;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in p3){if(u[p]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:v}=p3[p],b=d==="none"?u[p]:m(u[p],c);if(g){const w=g.length;for(let x=0;x<w;x++)s[g[x]]=b}else v?this.options.visualElement.renderState.vars[p]=b:s[p]=b}this.options.layoutId&&(s.pointerEvents=c===this?IT(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(tQ),this.root.sharedNodes.clear()}}}function Vnt(e){e.updateLayout()}function Wnt(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")lc(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=Lo(f);f.min=r[d].min,f.max=f.min+h});else if(o==="x"||o==="y"){const d=o==="x"?"y":"x";m3(s?t.measuredBox[d]:t.layoutBox[d],r[d])}else pbe(o,t.layoutBox,r)&&lc(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=Lo(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=jv();Ux(a,r,t.layoutBox);const l=jv();s?Ux(l,e.applyTransform(i,!0),t.measuredBox):Ux(l,r,t.layoutBox);const c=!lbe(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=e.options.layoutAnchor||void 0,m=ai();kO(m,t.layoutBox,f.layoutBox,p);const g=ai();kO(g,r,h.layoutBox,p),cbe(m,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hnt(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Knt(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qnt(e){e.clearSnapshot()}function tQ(e){e.clearMeasurements()}function Gnt(e){e.isLayoutDirty=!0,e.updateLayout()}function nQ(e){e.isLayoutDirty=!1}function Ynt(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Xnt(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Znt(e){e.resolveTargetDelta()}function Qnt(e){e.calcProjection()}
940function Jnt(e){e.resetSkewAndRotation()}function ert(e){e.removeLeadSnapshot()}function iQ(e,t,n){e.translate=Gn(t.translate,0,n),e.scale=Gn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oQ(e,t,n,r){e.min=Gn(t.min,n.min,r),e.max=Gn(t.max,n.max,r)}function trt(e,t,n,r){oQ(e.x,t.x,n.x,r),oQ(e.y,t.y,n.y,r)}function nrt(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const rrt={duration:.45,ease:[.4,0,.1,1]},sQ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aQ=sQ("applewebkit/")&&!sQ("chrome/")?Math.round:bs;function lQ(e){e.min=aQ(e.min),e.max=aQ(e.max)}function irt(e){lQ(e.x),lQ(e.y)}function pbe(e,t,n){return e==="position"||e==="preserve-aspect"&&!knt(XZ(t),XZ(n),.2)}function ort(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const srt=hbe({attachResizeListener:(e,t)=>QE(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),TL={current:void 0},mbe=hbe({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!TL.current){const e=new srt({});e.mount(window),e.setOptions({layoutScroll:!0}),TL.current=e}return TL.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),dM=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function cQ(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function art(...e){return t=>{let n=!1;const r=e.map(i=>{const o=cQ(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():cQ(e[i],null)}}}}function lrt(...e){return y.useCallback(art(...e),e)}class crt extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(zx(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=zx(r)&&r.offsetWidth||0,o=zx(r)&&r.offsetHeight||0,s=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(s.height),a.width=parseFloat(s.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=o-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function urt({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){var f;const s=y.useId(),a=y.useRef(null),l=y.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=y.useContext(dM),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=lrt(a,u);return y.useInsertionEffect(()=>{const{width:h,height:p,top:m,left:g,right:v,bottom:b}=l.current;if(t||o===!1||!a.current||!h||!p)return;const w=n==="left"?`left: ${g}`:`right: ${v}`,x=r==="bottom"?`bottom: ${b}`:`top: ${m}`;a.current.dataset.motionPopId=s;const E=document.createElement("style");c&&(E.nonce=c);const S=i??document.head;return S.appendChild(E),E.sheet&&E.sheet.insertRule(` 941 [data-motion-pop-id="${s}"] { 942 position: absolute !important; 943 width: ${h}px !important; 944 height: ${p}px !important; 945 ${w}px !important; 946 ${x}px !important; 947 } 948 `),()=>{var _;(_=a.current)==null||_.removeAttribute("data-motion-pop-id"),S.contains(E)&&S.removeChild(E)}},[t]),D.jsx(crt,{isPresent:t,childRef:a,sizeRef:l,pop:o,children:o===!1?e:y.cloneElement(e,{ref:d})})}const drt=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,anchorY:l,root:c})=>{const u=vh(frt),d=y.useId();let f=!0,h=y.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:p=>{u.set(p,!0);for(const m of u.values())if(!m)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),[n,u,r]);return o&&f&&(h={...h}),y.useMemo(()=>{u.forEach((p,m)=>u.set(m,!1))},[n]),y.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=D.jsx(urt,{pop:s==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),D.jsx(aM.Provider,{value:h,children:e})};function frt(){return new Map}function gbe(e=!0){const t=y.useContext(aM);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=y.useId();y.useEffect(()=>{if(e)return i(o)},[e]);const s=y.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Lk=e=>e.key||"";function uQ(e){const t=[];
vendor: 7,790 bytes, line 948
948return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Tnn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,d]=gbe(s),f=y.useMemo(()=>uQ(e),[e]),h=s&&!u?[]:f.map(Lk),p=y.useRef(!0),m=y.useRef(f),g=vh(()=>new Map),v=y.useRef(new Set),[b,w]=y.useState(f),[x,E]=y.useState(f);sM(()=>{p.current=!1,m.current=f;for(let k=0;k<x.length;k++){const C=Lk(x[k]);h.includes(C)?(g.delete(C),v.current.delete(C)):g.get(C)!==!0&&g.set(C,!1)}},[x,h.length,h.join("-")]);const S=[];if(f!==b){let k=[...f];for(let C=0;C<x.length;C++){const T=x[C],A=Lk(T);h.includes(A)||(k.splice(C,0,T),S.push(T))}return o==="wait"&&S.length&&(k=S),E(uQ(k)),w(f),null}const{forceRender:_}=y.useContext(g6);return D.jsx(D.Fragment,{children:x.map(k=>{const C=Lk(k),T=s&&!u?!1:f===x||h.includes(C),A=()=>{if(v.current.has(C))return;if(g.has(C))v.current.add(C),g.set(C,!0);else return;let O=!0;g.forEach(R=>{R||(O=!1)}),O&&(_==null||_(),E(m.current),s&&(d==null||d()),r&&r())};return D.jsx(drt,{isPresent:T,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:T?void 0:A,anchorX:a,anchorY:l,children:k},C)})})},vbe=y.createContext({strict:!1}),dQ={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let fQ=!1;function hrt(){if(fQ)return;const e={};for(const t in dQ)e[t]={isEnabled:n=>dQ[t].some(r=>!!n[r])};Kye(e),fQ=!0}function ybe(){return hrt(),Ztt()}function prt(e){const t=ybe();for(const n in e)t[n]={...t[n],...e[n]};Kye(t)}const mrt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function CO(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mrt.has(e)}let bbe=e=>!CO(e);function grt(e){typeof e=="function"&&(bbe=t=>t.startsWith("on")?!CO(t):e(t))}try{grt(require("@emotion/is-prop-valid").default)}catch{}function vrt(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Xi(e[i])||(bbe(i)||n===!0&&CO(i)||!t&&!CO(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const fM=y.createContext({});function yrt(e,t){if(uM(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ZE(n)?n:void 0,animate:ZE(r)?r:void 0}}return e.inherit!==!1?t:{}}function brt(e){const{initial:t,animate:n}=yrt(e,y.useContext(fM));return y.useMemo(()=>({initial:t,animate:n}),[hQ(t),hQ(n)])}function hQ(e){return Array.isArray(e)?e.join(" "):e}const W6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wbe(e,t,n){for(const r in t)!Xi(t[r])&&!Jye(r,n)&&(e[r]=t[r])}function wrt({transformTemplate:e},t){return y.useMemo(()=>{const n=W6();return U6(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xrt(e,t){const n=e.style||{},r={};return wbe(r,n,e),Object.assign(r,wrt(e,t)),r}function Ert(e,t){const n={},r=xrt(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const xbe=()=>({...W6(),attrs:{}});function Srt(e,t,n,r){const i=y.useMemo(()=>{const o=xbe();return ebe(o,t,nbe(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};wbe(o,e.style,e),i.style={...o,...i.style}}return i}const _rt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function H6(e){return typeof e!="string"||e.includes("-")?!1:!!(_rt.indexOf(e)>-1||/[A-Z]/u.test(e))}function krt(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??H6(e)?Srt:Ert)(t,r,i,e),c=vrt(t,typeof e=="string",o),u=e!==y.Fragment?{...c,...l,ref:n}:{},{children:d}=t,f=y.useMemo(()=>Xi(d)?d.get():d,[d]);return y.createElement(e,{...u,children:f})}function Crt({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Trt(n,r,i,e),renderState:t()}}function Trt(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=IT(o[f]);let{initial:s,animate:a}=e;const l=uM(e),c=Wye(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!cM(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=N6(e,f[h]);if(p){const{transitionEnd:m,transition:g,...v}=p;for(const b in v){let w=v[b];if(Array.isArray(w)){const x=u?w.length-1:0;w=w[x]}w!==null&&(i[b]=w)}for(const b in m)i[b]=m[b]}}}return i}const Ebe=e=>(t,n)=>{const r=y.useContext(fM),i=y.useContext(aM),o=()=>Crt(e,t,r,i);return n?o():vh(o)},Art=Ebe({scrapeMotionValuesFromProps:V6,createRenderState:W6}),Ort=Ebe({scrapeMotionValuesFromProps:rbe,createRenderState:xbe}),Prt=Symbol.for("motionComponentSymbol");function Irt(e,t,n){const r=y.useRef(n);y.useInsertionEffect(()=>{r.current=n});const i=y.useRef(null);return y.useCallback(o=>{var a;o&&((a=e.onMount)==null||a.call(e,o));const s=r.current;if(typeof s=="function")if(o){const l=s(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):s(o);else s&&(s.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const Sbe=y.createContext({});function fv(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Rrt(e,t,n,r,i,o){var w,x;const{visualElement:s}=y.useContext(fM),a=y.useContext(vbe),l=y.useContext(aM),c=y.useContext(dM),u=c.reducedMotion,d=c.skipAnimations,f=y.useRef(null),h=y.useRef(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:o}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,m=y.useContext(Sbe);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Mrt(f.current,n,i,m);const g=y.useRef(!1);y.useInsertionEffect(()=>{p&&g.current&&p.update(n,l)});const v=n[Pye],b=y.useRef(!!v&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,v))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,v)));return sM(()=>{h.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),y.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,v)}),b.current=!1),p.enteringChildren=void 0)}),p}function Mrt(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_be(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&fv(a),visualElement:e,animationType:typeof o=="str
948ing"?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function _be(e){if(e)return e.options.allowProjection!==!1?e.projection:_be(e.parent)}function AL(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&prt(r);const o=n?n==="svg":H6(e),s=o?Ort:Art;function a(c,u){let d;const f={...y.useContext(dM),...c,layoutId:Nrt(c)},{isStatic:h}=f,p=brt(c),m=s(c,h);if(!h&&typeof window<"u"){Drt();const g=Lrt(f);d=g.MeasureLayout,p.visualElement=Rrt(e,m,f,i,g.ProjectionNode,o)}return D.jsxs(fM.Provider,{value:p,children:[d&&p.visualElement?D.jsx(d,{visualElement:p.visualElement,...f}):null,krt(e,c,Irt(m,p.visualElement,u),m,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=y.forwardRef(a);return l[Prt]=e,l}function Nrt({layoutId:e}){const t=y.useContext(g6).id;return t&&e!==void 0?t+"-"+e:e}function Drt(e,t){y.useContext(vbe).strict}function Lrt(e){const t=ybe(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function $rt(e,t){if(typeof Proxy>"u")return AL;const n=new Map,r=(o,s)=>AL(o,s,e,t),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,AL(s,void 0,e,t)),n.get(s))})}const Frt=(e,t)=>t.isSVG??H6(e)?new pnt(t):new lnt(t,{allowProjection:e!==y.Fragment});class Brt extends Bh{constructor(t){super(t),t.animationState||(t.animationState=bnt(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cM(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let jrt=0;class zrt extends Bh{constructor(){super(...arguments),this.id=jrt++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"){const l=hm(this.node,s,a);if(l){const{transition:c,transitionEnd:u,...d}=l;for(const f in d)(o=this.node.getValue(f))==null||o.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Urt={animation:{Feature:Brt},exit:{Feature:zrt}};function MS(e){return{point:{x:e.pageX,y:e.pageY}}}const Vrt=e=>t=>F6(t)&&e(t,MS(t));function Vx(e,t,n,r){return QE(e,t,Vrt(n),r)}const kbe=({current:e})=>e?e.ownerDocument.defaultView:null,pQ=(e,t)=>Math.abs(e-t);function Wrt(e,t){const n=pQ(e.x,t.x),r=pQ(e.y,t.y);return Math.sqrt(n**2+r**2)}const mQ=new Set(["auto","scroll"]);class Cbe{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=$k(this.lastRawMoveEventInfo,this.transformPagePoint));const h=OL(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=Wrt(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;const{point:g}=h,{timestamp:v}=xi;this.history.push({...g,timestamp:v});const{onStart:b,onMove:w}=this.handlers;p||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=$k(p,this.transformPagePoint),Gt.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=OL(h.type==="pointercancel"?this.lastMoveEventInfo:$k(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,b),g&&g(h,b)},!F6(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const l=MS(t),c=$k(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=xi;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,OL(c,this.history)),this.removeListeners=PS(Vx(this.contextWindow,"pointermove",this.handlePointerMove),Vx(this.contextWindow,"pointerup",this.handlePointerUp),Vx(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(mQ.has(r.overflowX)||mQ.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Va(this.updatePoint)}}function $k(e,t){return t?{point:t(e.point)}:e}function gQ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function OL({point:e},t){return{point:e,delta:gQ(e,Tbe(t)),offset:gQ(e,Hrt(t)),velocity:Krt(t,.1)}}function Hrt(e){return e[0]}function Tbe(e){return e[e.length-1]}function Krt(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Tbe(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ws(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ws(t)*2&&(r=e[1]);const o=Pa(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function qrt(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Gn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Gn(n,e,r.max):Math.min(e,n)),e}function vQ(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Grt(e,{top:t,left:n,bottom:r,right:i}){return{x:vQ(e.x,n,i),y:vQ(e.y,t,r)}}function yQ(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Yrt(e,t){return{x:yQ(e.x,t.x),y:yQ(e.y,t.y)}}function Xrt(e,t){let n=.5;const r=Lo(e),i=Lo(t);return i>r?n=eb(t.min,t.max-r,e.min):r>i&&(n=eb(e.min,e.max-i,t.min)),jl(0,1,n)}function Zrt(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const g3=.35;function Qrt(e=g3){return e===!1?e=0:e===!0&&(e=g3),{x:bQ(e,"left","right"),y:bQ(e,"to
948p","bottom")}}function bQ(e,t,n){return{min:wQ(e,t),max:wQ(e,n)}}function wQ(e,t){return typeof e=="number"?e:e[t]||0}const Jrt=new WeakMap;class eit{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ai(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{n&&this.snapToCursor(MS(d).point),this.stopAnimation()},s=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ctt(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lc(v=>{let b=this.getAxisMotionValue(v).get()||0;if(Bc.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[v];x&&(b=Lo(x)*(parseFloat(b)/100))}}this.originPoint[v]=b}),m&&Gt.update(()=>m(d,f),!1,!0),s3(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(p&&this.currentDirection===null){this.currentDirection=nit(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&Gt.update(()=>g(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Cbe(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:kbe(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Gt.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Fk(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=qrt(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&fv(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Grt(r.layoutBox,t):this.constraints=!1,this.elastic=Qrt(n),i!==this.constraints&&!fv(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&lc(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Zrt(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fv(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=nnt(r,i.root,this.visualElement.getTransformPagePoint());let s=Yrt(i.layout.layoutBox,o);if(n){const a=n(Jtt(s));this.hasMutatedConstraints=!!a,a&&(s=Gye(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=lc(u=>{if(!Fk(u,n,this.currentDirection))return;let d=l&&l[u]||{};(s===!0||s===u)&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return s3(this.visualElement,t),r.start(M6(t,r,0,n,this.visualElement,!1))}stopAnimation(){lc(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){lc(n=>{const{drag:r}=this.getProps();if(!Fk(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-Gn(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fv(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};lc(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=Xrt({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),lc(s=>{if(!Fk(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];
vendor: 4,502 bytes, line 948
948a.set(Gn(l,c,i[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Jrt.set(this.visualElement,this);const t=this.visualElement.current,n=Vx(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,h=f!==t&&Rtt(f);u&&d&&!h&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();fv(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=tit(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Gt.read(i);const a=QE(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(lc(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=g3,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function xQ(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function tit(e,t,n){const r=u3(e,xQ(n)),i=u3(t,xQ(n));return()=>{r(),i()}}function Fk(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function nit(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class rit extends Bh{constructor(t){super(t),this.removeGroupControls=bs,this.removeListeners=bs,this.controls=new eit(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bs}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const PL=e=>(t,n)=>{e&&Gt.update(()=>e(t,n),!1,!0)};class iit extends Bh{constructor(){super(...arguments),this.removePointerDownListener=bs}onPointerDown(t){this.session=new Cbe(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kbe(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:PL(t),onStart:PL(n),onMove:PL(r),onEnd:(o,s)=>{delete this.session,i&&Gt.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Vx(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let IL=!1;class oit extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),IL&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),RT.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),IL=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Gt.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),$6.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;IL=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Abe(e){const[t,n]=gbe(),r=y.useContext(g6);return D.jsx(oit,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(Sbe),isPresent:t,safeToRemove:n})}const sit={pan:{Feature:iit},drag:{Feature:rit,ProjectionNode:mbe,MeasureLayout:Abe}};
948function EQ(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Gt.postRender(()=>o(t,MS(t)))}class ait extends Bh{mount(){const{current:t}=this.node;t&&(this.unmount=Att(t,(n,r)=>(EQ(this.node,r,"Start"),i=>EQ(this.node,i,"End"))))}unmount(){}}class lit extends Bh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=PS(QE(this.node.current,"focus",()=>this.onFocus()),QE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function SQ(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Gt.postRender(()=>o(t,MS(t)))}class cit extends Bh{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Ntt(t,(i,o)=>(SQ(this.node,o,"Start"),(s,{success:a})=>SQ(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const v3=new WeakMap,RL=new WeakMap,uit=e=>{const t=v3.get(e.target);t&&t(e)},dit=e=>{e.forEach(uit)};function fit({root:e,...t}){const n=e||document;RL.has(n)||RL.set(n,{});const r=RL.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(dit,{root:e,...t})),r[i]}function hit(e,t,n){const r=fit(t);return v3.set(e,n),r.observe(e),()=>{v3.delete(e),r.unobserve(e)}}const pit={some:0,all:1};class mit extends Bh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:pit[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};this.stopObserver=hit(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(git(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function git({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vit={inView:{Feature:mit},tap:{Feature:cit},focus:{Feature:lit},hover:{Feature:ait}},yit={layout:{ProjectionNode:mbe,MeasureLayout:Abe}},bit={...Urt,...vit,...sit,...yit},Ann=$rt(bit,Frt);function TO(e){return typeof window>"u"?!1:e?bye():I6()}const wit=50,_Q=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),xit=()=>({time:0,x:_Q(),y:_Q()}),Eit={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function kQ(e,t,n,r){const i=n[t],{length:o,position:s}=Eit[t],a=i.current,l=n.time;i.current=Math.abs(e[`scroll${s}`]),i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=eb(0,i.scrollLength,i.current);const c=r-l;i.velocity=c>wit?0:b6(i.current-a,c)}function Sit(e,t,n){kQ(e,"x",t,n),kQ(e,"y",t,n),t.time=n}function _it(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(zx(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const o=r.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:o}=r.getBBox();n.x+=i,n.y+=o;let s=null,a=r.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=r.parentNode;r=s}else break;return n}const y3={start:0,center:.5,end:1};function CQ(e,t,n=0){let r=0;if(e in y3&&(e=y3[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const kit=[0,0];function Cit(e,t,n,r){let i=Array.isArray(e)?e:kit,o=0,s=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,y3[e]?e:"0"]),o=CQ(i[0],n,r),s=CQ(i[1],t),o-s}const nx={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Tit={x:0,y:0};function Ait(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Oit(e,t,n){const{offset:r=nx.All}=n,{target:i=e,axis:o="y"}=n,s=o==="y"?"height":"width",a=i!==e?_it(i,e):Tit,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:Ait(i),c={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let u=!t[o].interpolate;const d=r.length;for(let f=0;f<d;
vendor: 2,627 bytes, line 948
948f++){const h=Cit(r[f],c[s],l[s],a[o]);!u&&h!==t[o].interpolatorOffsets[f]&&(u=!0),t[o].offset[f]=h}u&&(t[o].interpolate=T6(t[o].offset,pye(r),{clamp:!1}),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=jl(0,1,t[o].interpolate(t[o].current))}function Pit(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Iit(e,t,n,r={}){return{measure:i=>{Pit(e,r.target,n),Sit(e,n,i),(r.offset||r.target)&&Oit(e,n,r)},notify:()=>t(n)}}const qg=new WeakMap,TQ=new WeakMap,ML=new WeakMap,AQ=new WeakMap,Bk=new WeakMap,OQ=e=>e===document.scrollingElement?window:e;function Obe(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return bs;let i=ML.get(t);i||(i=new Set,ML.set(t,i));const o=xit(),s=Iit(t,e,o,r);if(i.add(s),!qg.has(t)){const l=()=>{for(const f of i)f.measure(xi.timestamp);Gt.preUpdate(c)},c=()=>{for(const f of i)f.notify()},u=()=>Gt.read(l);qg.set(t,u);const d=OQ(t);window.addEventListener("resize",u),t!==document.documentElement&&TQ.set(t,u3(t,u)),d.addEventListener("scroll",u),u()}if(n&&!Bk.has(t)){const l=qg.get(t),c={width:t.scrollWidth,height:t.scrollHeight};AQ.set(t,c);const u=()=>{const f=t.scrollWidth,h=t.scrollHeight;(c.width!==f||c.height!==h)&&(l(),c.width=f,c.height=h)},d=Gt.read(u,!0);Bk.set(t,d)}const a=qg.get(t);return Gt.read(a,!1,!0),()=>{var d;Va(a);const l=ML.get(t);if(!l||(l.delete(s),l.size))return;const c=qg.get(t);qg.delete(t),c&&(OQ(t).removeEventListener("scroll",c),(d=TQ.get(t))==null||d(),window.removeEventListener("resize",c));const u=Bk.get(t);u&&(Va(u),Bk.delete(t)),AQ.delete(t)}}const Rit=[[nx.Enter,"entry"],[nx.Exit,"exit"],[nx.Any,"cover"],[nx.All,"contain"]],PQ={start:0,end:1};function Mit(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=PQ[t[0]],r=PQ[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function Nit(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=Mit(n);if(!r)return;t.push(r)}else return;return t}function Dit(e,t){const n=Nit(e);if(!n)return!1;for(let r=0;r<2;r++){const i=n[r],o=t[r];if(i[0]!==o[0]||i[1]!==o[1])return!1}return!0}function K6(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of Rit)if(Dit(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const IQ=new Map;function RQ(e){const t={value:0},n=Obe(r=>
948{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Pbe({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let i=IQ.get(t);i||(i=new Map,IQ.set(t,i));const o=n.target??"self";let s=i.get(o);s||(s={},i.set(o,s));const a=r+(n.offset??[]).join(",");return s[a]||(n.target&&TO(n.target)?K6(n.offset)?s[a]=new ViewTimeline({subject:n.target,axis:r}):s[a]=RQ({container:t,...n}):TO()?s[a]=new ScrollTimeline({source:t,axis:r}):s[a]=RQ({container:t,...n})),s[a]}function Lit(e,t){const n=Pbe(t),r=t.target?K6(t.offset):void 0,i=t.target?TO(t.target)&&!!r:TO();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:o=>(o.pause(),Vye(s=>{o.time=o.iterationDuration*s},n))})}function $it(e){return e.length===2}function Fit(e,t){return $it(e)?Obe(n=>{e(n[t.axis].progress,n)},t):Vye(e,Pbe(t))}function Ibe(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return bs;const i={axis:t,container:n,...r};return typeof e=="function"?Fit(e,i):Lit(e,i)}const Bit=()=>({scrollX:El(0),scrollY:El(0),scrollXProgress:El(0),scrollYProgress:El(0)}),jk=e=>e?!e.current:!1;function MQ(e,t,n,r){return{factory:i=>Ibe(i,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function jit(e,t){return typeof window>"u"?!1:e?bye()&&!!K6(t):I6()}function Onn({container:e,target:t,...n}={}){const r=vh(Bit);jit(t,n.offset)&&(r.scrollXProgress.accelerate=MQ("x",n,e,t),r.scrollYProgress.accelerate=MQ("y",n,e,t));const i=y.useRef(null),o=y.useRef(!1),s=y.useCallback(()=>(i.current=Ibe((a,{x:l,y:c})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[e,t,JSON.stringify(n.offset)]);return sM(()=>{if(o.current=!1,jk(e)||jk(t)){o.current=!0;return}else return s()},[s]),y.useEffect(()=>{if(o.current)return YE(!jk(e)),YE(!jk(t)),s()},[s]),r}function zit(e){const t=vh(()=>El(e)),{isStatic:n}=y.useContext(dM);if(n){const[,r]=y.useState(e);y.useEffect(()=>t.on("change",r),[])}return t}function Rbe(e,t){const n=zit(t()),r=()=>n.set(t());return r(),sM(()=>{const i=()=>Gt.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),Va(r)}}),n}function Uit(e){jx.current=[],e();const t=Rbe(jx.current,e);return jx.current=void 0,t}function Vit(e,t,n,r){if(typeof e=="function")return Uit(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return Wit(e,t,n,r);const s=typeof t=="function"?t:Wtt(t,n,r),a=Array.isArray(e)?NQ(e,s):NQ([e],([c])=>s(c)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),a}function NQ(e,t){const n=vh(()=>[]);return Rbe(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function Wit(e,t,n,r){const i=vh(()=>Object.keys(n)),o=vh(()=>({}));for(const s of i)o[s]=Vit(e,t,n[s],r);return o}var Hit=typeof Element<"u",Kit=typeof Map=="function",qit=typeof Set=="function",Git=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function MT(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!MT(e[r],t[r]))return!1;return!0}var o;if(Kit&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!MT(r.value[1],t.get(r.value[0])))return!1;return!0}if(qit&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Git&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Hit&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!MT(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Yit=function(t,n){try{return MT(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Xit=yr(Yit);var Zit=function(e,t,n,r,i,o,s,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,a],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Qit=Zit;const DQ=yr(Qit);var Jit=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;
948if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<s.length;c++){var u=s[c];if(!l(u))return!1;var d=t[u],f=n[u];if(o=r?r.call(i,d,f,u):void 0,o===!1||o===void 0&&d!==f)return!1}return!0};const eot=yr(Jit);var Mbe=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Mbe||{}),NL={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},LQ=Object.values(Mbe),q6={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},tot=Object.entries(q6).reduce((e,[t,n])=>(e[n]=t,e),{}),Sl="data-rh",sy={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ay=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},not=e=>{let t=ay(e,"title");const n=ay(e,sy.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=ay(e,sy.DEFAULT_TITLE);return t||r||void 0},rot=e=>ay(e,sy.ON_CHANGE_CLIENT_STATE)||(()=>{}),DL=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),iot=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const a=i[o].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),oot=e=>console&&typeof console.warn=="function"&&console.warn(e),sw=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&oot(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const s={};o.filter(l=>{let c;const u=Object.keys(l);for(let f=0;f<u.length;f+=1){const h=u[f],p=h.toLowerCase();t.indexOf(p)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(p==="rel"&&l[p].toLowerCase()==="stylesheet")&&(c=p),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(c=h)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),s[c]||(s[c]={}),r[c][d]?!1:(s[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const a=Object.keys(s);for(let l=0;l<a.length;l+=1){const c=a[l],u={...r[c],...s[c]};r[c]=u}return i},[]).reverse()},sot=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},aot=e=>({baseTag:iot(["href"],e),bodyAttributes:DL("bodyAttributes",e),defer:ay(e,sy.DEFER),encode:ay(e,sy.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:DL("htmlAttributes",e),linkTags:sw("link",["rel","href"],e),metaTags:sw("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:sw("noscript",["innerHTML"],e),onChangeClientState:rot(e),scriptTags:sw("script",["src","innerHTML"],e),styleTags:sw("style",["cssText"],e),title:not(e),titleAttributes:DL("titleAttributes",e),prioritizeSeoTags:sot(e,sy.PRIORITIZE_SEO_TAGS)}),Nbe=e=>Array.isArray(e)?e.join(""):e,lot=(e,t)=>
948{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},LL=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(lot(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},$Q=(e,t)=>({...e,[t]:void 0}),cot=["noscript","script","style"],b3=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Dbe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),uot=(e,t,n,r)=>{const i=Dbe(n),o=Nbe(t);return i?`<${e} ${Sl}="true" ${i}>${b3(o,r)}</${e}>`:`<${e} ${Sl}="true">${b3(o,r)}</${e}>`},dot=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,s=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${b3(o[u],n)}"`;return c?`${c} ${d}`:d},""),a=o.innerHTML||o.cssText||"",l=cot.indexOf(e)===-1;return`${r}<${e} ${Sl}="true" ${s}${l?"/>":`>${a}</${e}>`}`},""),Lbe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=q6[r];return n[i||r]=e[r],n},t),fot=(e,t,n)=>{const r={key:t,[Sl]:!0},i=Lbe(n,r);return[$.createElement("title",i,t)]},NT=(e,t)=>t.map((n,r)=>{const i={key:r,[Sl]:!0};return Object.keys(n).forEach(o=>{const a=q6[o]||o;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[o]}),$.createElement(e,i)}),ma=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>fot(e,t.title,t.titleAttributes),toString:()=>uot(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Lbe(t),toString:()=>Dbe(t)};default:return{toComponent:()=>NT(e,t),toString:()=>dot(e,t,n)}}},hot=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=LL(e,NL.meta),o=LL(t,NL.link),s=LL(n,NL.script);return{priorityMethods:{toComponent:()=>[...NT("meta",i.priority),...NT("link",o.priority),...NT("script",s.priority)],toString:()=>`${ma("meta",i.priority,r)} ${ma("link",o.priority,r)} ${ma("script",s.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:s.default}},pot=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:s,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:f}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:d,scriptTags:f}=hot(e)),{priority:h,base:ma("base",t,r),bodyAttributes:ma("bodyAttributes",n,r),htmlAttributes:ma("htmlAttributes",i,r),link:ma("link",u,r),meta:ma("meta",d,r),noscript:ma("noscript",o,r),script:ma("script",f,r),style:ma("style",s,r),title:ma("title",{title:a,titleAttributes:l},r)}},w3=pot,zk=[],$be=!!(typeof window<"u"&&window.document&&window.document.createElement),x3=class{constructor(e,t){Nt(this,"instances",[]);Nt(this,"canUseDOM",$be);Nt(this,"context");Nt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?zk:this.instances,add:e=>{(this.canUseDOM?zk:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?zk:this.instances).indexOf(e);(this.canUseDOM?zk:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=w3({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},mot={},Fbe=$.createContext(mot),Qp,got=(Qp=class extends y.Component{constructor(n){super(n);Nt(this,"helmetData");this.helmetData=new x3(this.props.context||{},Qp.canUseDOM)}render(){return $.createElement(Fbe.Provider,{value:this.helmetData.value},this.props.children)}},Nt(Qp,"canUseDOM",$be),Qp),Gg=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Sl}]`),i=[].slice.call(r),o=[];let s;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c))if(c==="innerHTML")l.innerHTML=a.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const u=c,d=typeof a[u]>
948"u"?"":a[u];l.setAttribute(c,d)}l.setAttribute(Sl,"true"),i.some((c,u)=>(s=u,l.isEqualNode(c)))?i.splice(s,1):o.push(l)}),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),o.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:o}},E3=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Sl),i=r?r.split(","):[],o=[...i],s=Object.keys(t);for(const a of s){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const c=o.indexOf(a);c!==-1&&o.splice(c,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);i.length===o.length?n.removeAttribute(Sl):n.getAttribute(Sl)!==s.join(",")&&n.setAttribute(Sl,s.join(","))},vot=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Nbe(e)),E3("title",t)},FQ=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:s,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;E3("body",r),E3("html",i),vot(d,f);const h={baseTag:Gg("base",n),linkTags:Gg("link",o),metaTags:Gg("meta",s),noscriptTags:Gg("noscript",a),scriptTags:Gg("script",c),styleTags:Gg("style",u)},p={},m={};Object.keys(h).forEach(g=>{const{newTags:v,oldTags:b}=h[g];v.length&&(p[g]=v),b.length&&(m[g]=h[g].oldTags)}),t&&t(),l(e,p,m)},aw=null,yot=e=>{aw&&cancelAnimationFrame(aw),e.defer?aw=requestAnimationFrame(()=>{FQ(e,()=>{aw=null})}):(FQ(e),aw=null)},bot=yot,BQ=class extends y.Component{constructor(){super(...arguments);Nt(this,"rendered",!1)}shouldComponentUpdate(t){return!eot(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=aot(t.get().map(o=>{const s={...o.props};return delete s.context,s}));got.canUseDOM?bot(i):w3&&(r=w3(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},_F,Pnn=(_F=class extends y.Component{shouldComponentUpdate(e){return!Xit($Q(this.props,"helmetData"),$Q(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return DQ(LQ.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${LQ.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),DQ(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return $.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,s=Object.keys(o).reduce((l,c)=>(l[tot[c]||c]=o[c],l),{});let{type:a}=r;
948switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,i);break;default:t=this.mapObjectTypeChildren(r,t,s,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof x3)){const i=r;r=new x3(i.context,!0),delete n.helmetData}return r?$.createElement(BQ,{...n,context:r.value}):$.createElement(Fbe.Consumer,null,i=>$.createElement(BQ,{...n,context:i}))}},Nt(_F,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),_F),o0=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(){}},Jp,bf,xy,Ple,wot=(Ple=class extends o0{constructor(){super();it(this,Jp);it(this,bf);it(this,xy);Ie(this,xy,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){W(this,bf)||this.setEventListener(W(this,xy))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,bf))==null||t.call(this),Ie(this,bf,void 0))}setEventListener(t){var n;Ie(this,xy,t),(n=W(this,bf))==null||n.call(this),Ie(this,bf,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){W(this,Jp)!==t&&(Ie(this,Jp,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof W(this,Jp)=="boolean"?W(this,Jp):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jp=new WeakMap,bf=new WeakMap,xy=new WeakMap,Ple),G6=new wot,xot={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},wf,AU,Ile,Eot=(Ile=class{constructor(){it(this,wf,xot);it(this,AU,!1)}setTimeoutProvider(e){Ie(this,wf,e)}setTimeout(e,t){return W(this,wf).setTimeout(e,t)}clearTimeout(e){W(this,wf).clearTimeout(e)}setInterval(e,t){return W(this,wf).setInterval(e,t)}clearInterval(e){W(this,wf).clearInterval(e)}},wf=new WeakMap,AU=new WeakMap,Ile),Up=new Eot;function Sot(e){setTimeout(e,0)}var _ot=typeof window>"u"||"Deno"in globalThis;function Io(){}function kot(e,t){return typeof e=="function"?e(t):e}function S3(e){return typeof e=="number"&&e>=0&&e!==1/0}function Bbe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eh(e,t){return typeof e=="function"?e(t):e}function wa(e,t){return typeof e=="function"?e(t):e}function jQ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Y6(s,t.options))return!1}else if(!JE(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function zQ(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Fm(t.options.mutationKey)!==Fm(o))return!1}else if(!JE(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Y6(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fm)(e)}function Fm(e){return JSON.stringify(e,(t,n)=>_3(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function JE(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>JE(e[n],t[n])):!1}var Cot=Object.prototype.hasOwnProperty;function jbe(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=UQ(e)&&UQ(t);if(!r&&!(_3(e)&&_3(t)))return t;const o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),a=s.length,l=r?new Array(a):{};let c=0;for(let u=0;u<a;u++){const d=r?u:s[u],f=e[d],h=t[d];if(f===h){l[d]=f,(r?u<o:Cot.call(e,d))&&c++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){l[d]=h;continue}const p=jbe(f,h,n+1);
948l[d]=p,p===f&&c++}return o===a&&c===o?e:l}function AO(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 UQ(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _3(e){if(!VQ(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!VQ(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function VQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tot(e){return new Promise(t=>{Up.setTimeout(t,e)})}function k3(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jbe(e,t):t}function Aot(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Oot(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var X6=Symbol();function zbe(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===X6?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Z6(e,t){return typeof e=="function"?e(...t):!!e}function Pot(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var e1=(()=>{let e=()=>_ot;return{isServer(){return e()},setIsServer(t){e=t}}})();function C3(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Iot=Sot;function Rot(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=Iot;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var di=Rot(),Ey,xf,Sy,Rle,Mot=(Rle=class extends o0{constructor(){super();it(this,Ey,!0);it(this,xf);it(this,Sy);Ie(this,Sy,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){W(this,xf)||this.setEventListener(W(this,Sy))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,xf))==null||t.call(this),Ie(this,xf,void 0))}setEventListener(t){var n;Ie(this,Sy,t),(n=W(this,xf))==null||n.call(this),Ie(this,xf,t(this.setOnline.bind(this)))}setOnline(t){W(this,Ey)!==t&&(Ie(this,Ey,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return W(this,Ey)}},Ey=new WeakMap,xf=new WeakMap,Sy=new WeakMap,Rle),OO=new Mot;function Not(e){return Math.min(1e3*2**e,3e4)}function Ube(e){return(e??"online")==="online"?OO.isOnline():!0}var T3=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vbe(e){let t=!1,n=0,r;const i=C3(),o=()=>i.status!=="pending",s=m=>{var g;if(!o()){const v=new T3(m);f(v),(g=e.onCancel)==null||g.call(e,v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>G6.isFocused()&&(e.networkMode==="always"||OO.isOnline())&&e.canRun(),u=()=>Ube(e.networkMode)&&e.canRun(),d=m=>{o()||(r==null||r(),i.resolve(m))},f=m=>{o()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var g;r=v=>{(o()||c())&&m(v)},(g=e.onPause)==null||g.call(e)}).then(()=>{var m;r=void 0,o()||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(o())return;let m;const g=n===0?e.initialPromise:void 0;try{m=g??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(d).catch(v=>{var S;if(o())return;const b=e.retry??(e1.isServer()?0:3),w=e.retryDelay??Not,x=typeof w=="function"?w(n,v):w,E=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,v);if(t||!E){f(v);return}n++,(S=e.onFail)==null||S.call(e,n,v),Tot(x).then(()=>c()?void 0:h()).then(()=>{t?f(v):p()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?p():h().then(p),i)}}var em,Mle,Wbe=(Mle=class{constructor(){it(this,em)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),S3(this.gcTime)&&Ie(this,em,Up.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(e1.isServer()?1/0:5*60*1e3))}clearGcTimeout(){W(this,em)!==void 0&&(Up.clearTimeout(W(this,em)),Ie(this,em,void 0))}},em=new WeakMap,Mle),tm,_y,va,nm,wi,q1,rm,Rs,Hbe,_u,Nle,Dot=(Nle=class extends Wbe{constructor(t){super();it(this,Rs);it(this,tm);it(this,_y);it(this,va);it(this,nm);it(this,wi);it(this,q1);it(this,rm);Ie(this,rm,!1),Ie(this,q1,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ie(this,nm,t.client),Ie(this,va,W(this,nm).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ie(this,tm,HQ(this.options)),this.state=t.state??W(this,tm),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=W(this,wi))==null?void 0:t.promise}setOptions(t){if(this.options={...W(this,q1),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=HQ(this.options);n.data!==void 0&&(this.setState(WQ(n.data,n.dataUpdatedAt)),Ie(this,tm,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,va).remove(this)}setData(t,n){const r=k3(this.state.data,t,this.options);return Ct(this,Rs,_u).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ct(this,Rs,_u).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=W(this,wi))==null?void 0:r.promise;return(i=W(this,wi))==null||i.cancel(t),n?n.then(Io).catch(Io):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return W(this,tm)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>wa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===X6||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
948Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>eh(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Bbe(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,wi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,wi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),W(this,va).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(W(this,wi)&&(W(this,rm)||Ct(this,Rs,Hbe).call(this)?W(this,wi).cancel({revert:!0}):W(this,wi).cancelRetry()),this.scheduleGc()),W(this,va).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ct(this,Rs,_u).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,f,h,p,m,g,v,b,w;if(this.state.fetchStatus!=="idle"&&((l=W(this,wi))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(W(this,wi))return W(this,wi).continueRetry(),W(this,wi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(E=>E.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(Ie(this,rm,!0),r.signal)})},o=()=>{const x=zbe(this.options,n),S=(()=>{const _={client:W(this,nm),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return Ie(this,rm,!1),this.options.persister?this.options.persister(x,S,this):x(S)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:W(this,nm),state:this.state,fetchFn:o};return i(x),x})();(c=this.options.behavior)==null||c.onFetch(a,this),Ie(this,_y,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Ct(this,Rs,_u).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),Ie(this,wi,Vbe({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:x=>{x instanceof T3&&x.revert&&this.setState({...W(this,_y),fetchStatus:"idle"}),r.abort()},onFail:(x,E)=>{Ct(this,Rs,_u).call(this,{type:"failed",failureCount:x,error:E})},onPause:()=>{Ct(this,Rs,_u).call(this,{type:"pause"})},onContinue:()=>{Ct(this,Rs,_u).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await W(this,wi).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(h=(f=W(this,va).config).onSuccess)==null||h.call(f,x,this),(m=(p=W(this,va).config).onSettled)==null||m.call(p,x,this.state.error,this),x}catch(x){if(x instanceof T3){if(x.silent)return W(this,wi).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw Ct(this,Rs,_u).call(this,{type:"error",error:x}),(v=(g=W(this,va).config).onError)==null||v.call(g,x,this),(w=(b=W(this,va).config).onSettled)==null||w.call(b,this.state.data,x,this),x}finally{this.scheduleGc()}}},tm=new WeakMap,_y=new WeakMap,va=new WeakMap,nm=new WeakMap,wi=new WeakMap,q1=new WeakMap,rm=new WeakMap,Rs=new WeakSet,Hbe=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},_u=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Kbe(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...WQ(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ie(this,_y,t.manual?i:void 0),i;case"error":const o=t.error;
948return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),di.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),W(this,va).notify({query:this,type:"updated",action:t})})},Nle);function Kbe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ube(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function WQ(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function HQ(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 ts,Bt,G1,To,im,ky,ju,Ef,Y1,Cy,Ty,om,sm,Sf,Ay,dn,rx,A3,O3,P3,I3,R3,M3,N3,qbe,Dle,Lot=(Dle=class extends o0{constructor(t,n){super();it(this,dn);it(this,ts);it(this,Bt);it(this,G1);it(this,To);it(this,im);it(this,ky);it(this,ju);it(this,Ef);it(this,Y1);it(this,Cy);it(this,Ty);it(this,om);it(this,sm);it(this,Sf);it(this,Ay,new Set);this.options=n,Ie(this,ts,t),Ie(this,Ef,null),Ie(this,ju,C3()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(W(this,Bt).addObserver(this),KQ(W(this,Bt),this.options)?Ct(this,dn,rx).call(this):this.updateResult(),Ct(this,dn,I3).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return D3(W(this,Bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return D3(W(this,Bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ct(this,dn,R3).call(this),Ct(this,dn,M3).call(this),W(this,Bt).removeObserver(this)}setOptions(t){const n=this.options,r=W(this,Bt);if(this.options=W(this,ts).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wa(this.options.enabled,W(this,Bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ct(this,dn,N3).call(this),W(this,Bt).setOptions(this.options),n._defaulted&&!AO(this.options,n)&&W(this,ts).getQueryCache().notify({type:"observerOptionsUpdated",query:W(this,Bt),observer:this});const i=this.hasListeners();i&&qQ(W(this,Bt),r,this.options,n)&&Ct(this,dn,rx).call(this),this.updateResult(),i&&(W(this,Bt)!==r||wa(this.options.enabled,W(this,Bt))!==wa(n.enabled,W(this,Bt))||eh(this.options.staleTime,W(this,Bt))!==eh(n.staleTime,W(this,Bt)))&&Ct(this,dn,A3).call(this);const o=Ct(this,dn,O3).call(this);i&&(W(this,Bt)!==r||wa(this.options.enabled,W(this,Bt))!==wa(n.enabled,W(this,Bt))||o!==W(this,Sf))&&Ct(this,dn,P3).call(this,o)}getOptimisticResult(t){const n=W(this,ts).getQueryCache().build(W(this,ts),t),r=this.createResult(n,t);return Fot(this,r)&&(Ie(this,To,r),Ie(this,ky,this.options),Ie(this,im,W(this,Bt).state)),r}getCurrentResult(){return W(this,To)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&W(this,ju).status==="pending"&&W(this,ju).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){W(this,Ay).add(t)}getCurrentQuery(){return W(this,Bt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=W(this,ts).defaultQueryOptions(t),r=W(this,ts).getQueryCache().build(W(this,ts),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ct(this,dn,rx).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),W(this,To)))}createResult(t,n){var C;const r=W(this,Bt),i=this.options,o=W(this,To),s=W(this,im),a=W(this,ky),c=t!==r?t.state:W(this,G1),{state:u}=t;let d={...u},f=!1,h;if(n._optimisticResults){const T=this.hasListeners(),A=!T&&KQ(t,n),O=T&&qQ(t,r,n,i);(A||O)&&(d={...d,...Kbe(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:g}=d;h=d.data;let v=!1;if(n.placeholderData!==void 0&&h===void 0&&g==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=o.data,v=!0):T=typeof n.placeholderData=="function"?n.placeholderData((C=W(this,Ty))==null?void 0:C.state.data,W(this,Ty)):n.placeholderData,T!==void 0&&(g="success",h=k3(o==null?void 0:o.data,T,n),f=!0)}
948if(n.select&&h!==void 0&&!v)if(o&&h===(s==null?void 0:s.data)&&n.select===W(this,Y1))h=W(this,Cy);else try{Ie(this,Y1,n.select),h=n.select(h),h=k3(o==null?void 0:o.data,h,n),Ie(this,Cy,h),Ie(this,Ef,null)}catch(T){Ie(this,Ef,T)}W(this,Ef)&&(p=W(this,Ef),h=W(this,Cy),m=Date.now(),g="error");const b=d.fetchStatus==="fetching",w=g==="pending",x=g==="error",E=w&&b,S=h!==void 0,k={status:g,fetchStatus:d.fetchStatus,isPending:w,isSuccess:g==="success",isError:x,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:x&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:x&&S,isStale:Q6(t,n),refetch:this.refetch,promise:W(this,ju),isEnabled:wa(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=k.data!==void 0,A=k.status==="error"&&!T,O=F=>{A?F.reject(k.error):T&&F.resolve(k.data)},R=()=>{const F=Ie(this,ju,k.promise=C3());O(F)},I=W(this,ju);switch(I.status){case"pending":t.queryHash===r.queryHash&&O(I);break;case"fulfilled":(A||k.data!==I.value)&&R();break;case"rejected":(!A||k.error!==I.reason)&&R();break}}return k}updateResult(){const t=W(this,To),n=this.createResult(W(this,Bt),this.options);if(Ie(this,im,W(this,Bt).state),Ie(this,ky,this.options),W(this,im).data!==void 0&&Ie(this,Ty,W(this,Bt)),AO(n,t))return;Ie(this,To,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!W(this,Ay).size)return!0;const s=new Set(o??W(this,Ay));return this.options.throwOnError&&s.add("error"),Object.keys(W(this,To)).some(a=>{const l=a;return W(this,To)[l]!==t[l]&&s.has(l)})};Ct(this,dn,qbe).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ct(this,dn,I3).call(this)}},ts=new WeakMap,Bt=new WeakMap,G1=new WeakMap,To=new WeakMap,im=new WeakMap,ky=new WeakMap,ju=new WeakMap,Ef=new WeakMap,Y1=new WeakMap,Cy=new WeakMap,Ty=new WeakMap,om=new WeakMap,sm=new WeakMap,Sf=new WeakMap,Ay=new WeakMap,dn=new WeakSet,rx=function(t){Ct(this,dn,N3).call(this);let n=W(this,Bt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Io)),n},A3=function(){Ct(this,dn,R3).call(this);const t=eh(this.options.staleTime,W(this,Bt));if(e1.isServer()||W(this,To).isStale||!S3(t))return;const r=Bbe(W(this,To).dataUpdatedAt,t)+1;Ie(this,om,Up.setTimeout(()=>{W(this,To).isStale||this.updateResult()},r))},O3=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(W(this,Bt)):this.options.refetchInterval)??!1},P3=function(t){Ct(this,dn,M3).call(this),Ie(this,Sf,t),!(e1.isServer()||wa(this.options.enabled,W(this,Bt))===!1||!S3(W(this,Sf))||W(this,Sf)===0)&&Ie(this,sm,Up.setInterval(()=>{(this.options.refetchIntervalInBackground||G6.isFocused())&&Ct(this,dn,rx).call(this)},W(this,Sf)))},I3=function(){Ct(this,dn,A3).call(this),Ct(this,dn,P3).call(this,Ct(this,dn,O3).call(this))},R3=function(){W(this,om)!==void 0&&(Up.clearTimeout(W(this,om)),Ie(this,om,void 0))},M3=function(){W(this,sm)!==void 0&&(Up.clearInterval(W(this,sm)),Ie(this,sm,void 0))},N3=function(){const t=W(this,ts).getQueryCache().build(W(this,ts),this.options);if(t===W(this,Bt))return;const n=W(this,Bt);Ie(this,Bt,t),Ie(this,G1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},qbe=function(t){di.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(W(this,To))}),W(this,ts).getQueryCache().notify({query:W(this,Bt),type:"observerResultsUpdated"})})},Dle);function $ot(e,t){return wa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function KQ(e,t){return $ot(e,t)||e.state.data!==void 0&&D3(e,t,t.refetchOnMount)}function D3(e,t,n){if(wa(t.enabled,e)!==!1&&eh(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Q6(e,t)}return!1}function qQ(e,t,n,r){return(e!==t||wa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Q6(e,n)}function Q6(e,t){return wa(t.enabled,e)!==!1&&e.isStaleByTime(eh(t.staleTime,e))}function Fot(e,t){return!AO(e.getCurrentResult(),t)}function GQ(e){return{onFetch:(t,n)=>{var u,d,f,h,p;const r=t.options,i=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],s=((p=t.state.data)==null?void 0:p.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const g=w=>{Pot(w,()=>t.signal,()=>m=!0)},v=zbe(t.options,t.fetchOptions),b=async(w,x,E)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);const _=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:x,direction:E?"backward":"forward",meta:t.options.meta};return g(A),A})(),k=await v(_),{maxPages:C}=t.options,T=E?Oot:Aot;return{pages:T(w.pages,k,C),pageParams:T(w.pageParams,x,C)}};if(i&&o.length){const w=i==="backward",x=w?Bot:YQ,E={pages:o,pageParams:s},S=x(r,E);a=await b(E,S,w)}else{const w=e??o.length;do{const x=l===0?s[0]??r.initialPageParam:YQ(r,a);if(l>0&&x==null)break;a=await b(a,x),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function YQ(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 Bot(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var X1,fc,lo,am,hc,ef,Lle,jot=(Lle=class extends Wbe{constructor(t){super();it(this,hc);it(this,X1);it(this,fc);it(this,lo);it(this,am);Ie(this,X1,t.client),this.mutationId=t.mutationId,Ie(this,lo,t.mutationCache),Ie(this,fc,[]),this.state=t.state||Gbe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){W(this,fc).includes(t)||(W(this,fc).push(t),this.clearGcTimeout(),W(this,lo).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ie(this,fc,W(this,fc).filter(n=>n!==t)),this.scheduleGc(),W(this,lo).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){W(this,fc).length||(this.state.status==="pending"?this.scheduleGc():W(this,lo).remove(this))}continue(){var t;return((t=W(this,am))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,c,u,d,f,h,p,m,g,v,b,w,x,E,S,_;const n=()=>{Ct(this,hc,ef).call(this,{type:"continue"})},r={client:W(this,X1),meta:this.options.meta,mutationKey:this.options.mutationKey};Ie(this,am,Vbe({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(k,C)=>{Ct(this,hc,ef).call(this,{type:"failed",failureCount:k,error:C})},onPause:()=>{Ct(this,hc,ef).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,lo).canRun(this)}));const i=this.state.status==="pending",o=!W(this,am).canStart();try{if(i)n();else{Ct(this,hc,ef).call(this,{type:"pending",variables:t,isPaused:o}),W(this,lo).config.onMutate&&await W(this,lo).config.onMutate(t,this,r);const C=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t,r));C!==this.state.context&&Ct(this,hc,ef).call(this,{type:"pending",context:C,variables:t,isPaused:o})}const k=await W(this,am).start();return await((c=(l=W(this,lo).config).onSuccess)==null?void 0:c.call(l,k,t,this.state.context,this,r)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context,r)),await((h=(f=W(this,lo).config).onSettled)==null?void 0:h.call(f,k,null,this.state.variables,this.state.context,this,r)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,k,null,t,this.state.context,r)),Ct(this,hc,ef).call(this,{type:"success",data:k}),k}catch(k){try{await((v=(g=W(this,lo).config).onError)==null?void 0:v.call(g,k,t,this.state.context,this,r))}catch(C){Promise.reject(C)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,k,t,this.state.context,r))}catch(C){Promise.reject(C)}
948try{await((E=(x=W(this,lo).config).onSettled)==null?void 0:E.call(x,void 0,k,this.state.variables,this.state.context,this,r))}catch(C){Promise.reject(C)}try{await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,k,t,this.state.context,r))}catch(C){Promise.reject(C)}throw Ct(this,hc,ef).call(this,{type:"error",error:k}),k}finally{W(this,lo).runNext(this)}}},X1=new WeakMap,fc=new WeakMap,lo=new WeakMap,am=new WeakMap,hc=new WeakSet,ef=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),di.batch(()=>{W(this,fc).forEach(r=>{r.onMutationUpdate(t)}),W(this,lo).notify({mutation:this,type:"updated",action:t})})},Lle);function Gbe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zu,ll,Z1,$le,zot=($le=class extends o0{constructor(t={}){super();it(this,zu);it(this,ll);it(this,Z1);this.config=t,Ie(this,zu,new Set),Ie(this,ll,new Map),Ie(this,Z1,0)}build(t,n,r){const i=new jot({client:t,mutationCache:this,mutationId:++$_(this,Z1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){W(this,zu).add(t);const n=Uk(t);if(typeof n=="string"){const r=W(this,ll).get(n);r?r.push(t):W(this,ll).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(W(this,zu).delete(t)){const n=Uk(t);if(typeof n=="string"){const r=W(this,ll).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&W(this,ll).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Uk(t);if(typeof n=="string"){const r=W(this,ll).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Uk(t);if(typeof n=="string"){const i=(r=W(this,ll).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){di.batch(()=>{W(this,zu).forEach(t=>{this.notify({type:"removed",mutation:t})}),W(this,zu).clear(),W(this,ll).clear()})}getAll(){return Array.from(W(this,zu))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>zQ(n,r))}findAll(t={}){return this.getAll().filter(n=>zQ(t,n))}notify(t){di.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return di.batch(()=>Promise.all(t.map(n=>n.continue().catch(Io))))}},zu=new WeakMap,ll=new WeakMap,Z1=new WeakMap,$le);function Uk(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Uu,_f,ns,Vu,dd,DT,L3,Fle,Uot=(Fle=class extends o0{constructor(n,r){super();it(this,dd);it(this,Uu);it(this,_f);it(this,ns);it(this,Vu);Ie(this,Uu,n),this.setOptions(r),this.bindMethods(),Ct(this,dd,DT).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=W(this,Uu).defaultMutationOptions(n),AO(this.options,r)||W(this,Uu).getMutationCache().notify({type:"observerOptionsUpdated",mutation:W(this,ns),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Fm(r.mutationKey)!==Fm(this.options.mutationKey)?this.reset():((i=W(this,ns))==null?void 0:i.state.status)==="pending"&&W(this,ns).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=W(this,ns))==null||n.removeObserver(this)}onMutationUpdate(n){Ct(this,dd,DT).call(this),Ct(this,dd,L3).call(this,n)}getCurrentResult(){return W(this,_f)}reset(){var n;(n=W(this,ns))==null||n.removeObserver(this),Ie(this,ns,void 0),Ct(this,dd,DT).call(this),Ct(this,dd,L3).call(this)}mutate(n,r){var i;return Ie(this,Vu,r),(i=W(this,ns))==null||i.removeObserver(this),Ie(this,ns,W(this,Uu).getMutationCache().build(W(this,Uu),this.options)),W(this,ns).addObserver(this),W(this,ns).execute(n)}},Uu=new WeakMap,_f=new WeakMap,ns=new WeakMap,Vu=new WeakMap,dd=new WeakSet,DT=function(){var r;const n=((r=W(this,ns))==null?void 0:r.state)??Gbe();Ie(this,_f,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},L3=function(n){di.batch(()=>{var r,i,o,s,a,l,c,u;if(W(this,Vu)&&this.hasListeners()){const d=W(this,_f).variables,f=W(this,_f).context,h={client:W(this,Uu),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=W(this,Vu)).onSuccess)==null||i.call(r,n.data,d,f,h)}catch(p){Promise.reject(p)}try{(s=(o=W(this,Vu)).onSettled)==null||s.call(o,n.data,null,d,f,h)}catch(p){Promise.reject(p)}}else if((n==null?void 0:n.type)==="error"){try{(l=(a=W(this,Vu)).onError)==null||l.call(a,n.error,d,f,h)}catch(p){Promise.reject(p)}try{(u=(c=W(this,Vu)).onSettled)==null||u.call(c,void 0,n.error,d,f,h)}catch(p){Promise.reject(p)}}}
948this.listeners.forEach(d=>{d(W(this,_f))})})},Fle),pc,Ble,Vot=(Ble=class extends o0{constructor(t={}){super();it(this,pc);this.config=t,Ie(this,pc,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Y6(i,n);let s=this.get(o);return s||(s=new Dot({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){W(this,pc).has(t.queryHash)||(W(this,pc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=W(this,pc).get(t.queryHash);n&&(t.destroy(),n===t&&W(this,pc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){di.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return W(this,pc).get(t)}getAll(){return[...W(this,pc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jQ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>jQ(t,r)):n}notify(t){di.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){di.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){di.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},pc=new WeakMap,Ble),Er,kf,Cf,Oy,Py,Tf,Iy,Ry,jle,Rnn=(jle=class{constructor(e={}){it(this,Er);it(this,kf);it(this,Cf);it(this,Oy);it(this,Py);it(this,Tf);it(this,Iy);it(this,Ry);Ie(this,Er,e.queryCache||new Vot),Ie(this,kf,e.mutationCache||new zot),Ie(this,Cf,e.defaultOptions||{}),Ie(this,Oy,new Map),Ie(this,Py,new Map),Ie(this,Tf,0)}mount(){$_(this,Tf)._++,W(this,Tf)===1&&(Ie(this,Iy,G6.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,Er).onFocus())})),Ie(this,Ry,OO.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,Er).onOnline())})))}unmount(){var e,t;$_(this,Tf)._--,W(this,Tf)===0&&((e=W(this,Iy))==null||e.call(this),Ie(this,Iy,void 0),(t=W(this,Ry))==null||t.call(this),Ie(this,Ry,void 0))}isFetching(e){return W(this,Er).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return W(this,kf).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,Er).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=W(this,Er).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(eh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return W(this,Er).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=W(this,Er).get(r.queryHash),o=i==null?void 0:i.state.data,s=kot(t,o);if(s!==void 0)return W(this,Er).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return di.batch(()=>W(this,Er).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,Er).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=W(this,Er);di.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=W(this,Er);return di.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=di.batch(()=>W(this,Er).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Io).catch(Io)}invalidateQueries(e,t={}){return di.batch(()=>(W(this,Er).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=di.batch(()=>W(this,Er).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Io)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Io)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=W(this,Er).build(this,t);return n.isStaleByTime(eh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Io).catch(Io)}fetchInfiniteQuery(e){return e.behavior=GQ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Io).catch(Io)}ensureInfiniteQueryData(e){return e.behavior=GQ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return OO.isOnline()?W(this,kf).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,Er)}getMutationCache(){return W(this,kf)}getDefaultOptions(){return W(this,Cf)}setDefaultOptions(e){Ie(this,Cf,e)}setQueryDefaults(e,t){W(this,Oy).set(Fm(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...W(this,Oy).values()],n={};return t.forEach(r=>{JE(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){W(this,Py).set(Fm(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...W(this,Py).values()],n={};return t.forEach(r=>{JE(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...W(this,Cf).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Y6(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===X6&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...W(this,Cf).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){W(this,Er).clear(),W(this,kf).clear()}},Er=new WeakMap,kf=new WeakMap,Cf=new WeakMap,Oy=new WeakMap,Py=new WeakMap,Tf=new WeakMap,Iy=new WeakMap,Ry=new WeakMap,jle),Ybe=y.createContext(void 0),Xbe=e=>{const t=y.useContext(Ybe);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mnn=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(Ybe.Provider,{value:e,children:t})),Zbe=y.createContext(!1),Wot=()=>y.useContext(Zbe);Zbe.Provider;function Hot(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
948var Kot=y.createContext(Hot()),qot=()=>y.useContext(Kot),Got=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Z6(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Yot=e=>{y.useEffect(()=>{e.clearReset()},[e])},Xot=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Z6(n,[e.error,r])),Zot=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Qot=(e,t)=>e.isLoading&&e.isFetching&&!t,Jot=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,XQ=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function est(e,t,n){var f,h,p,m;const r=Wot(),i=qot(),o=Xbe(),s=o.defaultQueryOptions(e);(h=(f=o.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,s);const a=o.getQueryCache().get(s.queryHash);s._optimisticResults=r?"isRestoring":"optimistic",Zot(s),Got(s,i,a),Yot(i);const l=!o.getQueryCache().get(s.queryHash),[c]=y.useState(()=>new t(o,s)),u=c.getOptimisticResult(s),d=!r&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(g=>{const v=d?c.subscribe(di.batchCalls(g)):Io;return c.updateResult(),v},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),y.useEffect(()=>{c.setOptions(s)},[s,c]),Jot(s,u))throw XQ(s,c,i);if(Xot({result:u,errorResetBoundary:i,throwOnError:s.throwOnError,query:a,suspense:s.suspense}))throw u.error;if((m=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,s,u),s.experimental_prefetchInRender&&!e1.isServer()&&Qot(u,r)){const g=l?XQ(s,c,i):a==null?void 0:a.promise;g==null||g.catch(Io).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?u:c.trackResult(u)}function Nnn(e,t){return est(e,Lot)}function Dnn(e,t){const n=Xbe(),[r]=y.useState(()=>new Uot(n,e));y.useEffect(()=>{r.setOptions(e)},[r,e]);const i=y.useSyncExternalStore(y.useCallback(s=>r.subscribe(di.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=y.useCallback((s,a)=>{r.mutate(s,a).catch(Io)},[r]);if(i.error&&Z6(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}const tst=new _he(new Ehe(lS)),Lnn={configure(e,t){const n=Yde(e),r=new eUe({sameSite:"lax"}),i=t!=null&&t.ssr?r:lS,o=t!=null&&t.ssr?new _he(new Ehe(r)):tst;if(!n.Auth){bt.configure(n,t);return}if(t!=null&&t.Auth){bt.configure(n,t);return}if(!bt.libraryOptions.Auth){qw.setAuthConfig(n.Auth),qw.setKeyValueStorage(i),bt.configure(n,{...t,Auth:{tokenProvider:qw,credentialsProvider:o}});return}if(t){const s=bt.libraryOptions.Auth;t.ssr!==void 0&&(qw.setKeyValueStorage(i),s.credentialsProvider=o),bt.configure(n,{Auth:s,...t});return}bt.configure(n)},getConfig(){return bt.getConfig()}};var nst=Symbol("radix.slottable");function rst(e){const t=({children:n})=>D.jsx(D.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=nst,t}var[hM]=Ri("Tooltip",[Fh]),pM=Fh(),Qbe="TooltipProvider",ist=700,$3="tooltip.open",[ost,J6]=hM(Qbe),Jbe=e=>{const{__scopeTooltip:t,delayDuration:n=ist,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,s=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),D.jsx(ost,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(c=>{a.current=c},[]),disableHoverableContent:i,children:o})};Jbe.displayName=Qbe;var t1="Tooltip",[sst,NS]=hM(t1),e0e=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:a}=e,l=J6(t1,e.__scopeTooltip),c=pM(t),[u,d]=y.useState(null),f=ys(),h=y.useRef(0),p=s??l.disableHoverableContent,m=a??l.delayDuration,g=y.useRef(!1),[v,b]=Wo({prop:r,defaultProp:i??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent($3))):l.onClose(),o==null||o(_)},caller:t1}),w=y.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),x=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)},[b]),E=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),S=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,b(!0),h.current=0},m)},[m,b]);return y.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),D.jsx(GR,{...c,children:D.jsx(sst,{scope:t,contentId:f,open:v,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?S():x()},[l.isOpenDelayedRef,S,x]),onTriggerLeave:y.useCallback(()=>{p?E():(window.clearTimeout(h.current),h.current=0)},[E,p]),onOpen:x,onClose:E,disableHoverableContent:p,children:n})})};e0e.displayName=t1;var F3="TooltipTrigger",t0e=y.forwardRef((e,t)=>
vendor: 5,718 bytes, line 948
948{const{__scopeTooltip:n,...r}=e,i=NS(F3,n),o=J6(F3,n),s=pM(n),a=y.useRef(null),l=xt(t,a,i.onTriggerChange),c=y.useRef(!1),u=y.useRef(!1),d=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),D.jsx(yS,{asChild:!0,...s,children:D.jsx(Qe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Ee(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Ee(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Ee(e.onBlur,i.onClose),onClick:Ee(e.onClick,i.onClose)})})});t0e.displayName=F3;var eW="TooltipPortal",[ast,lst]=hM(eW,{forceMount:void 0}),n0e=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=NS(eW,t);return D.jsx(ast,{scope:t,forceMount:n,children:D.jsx(no,{present:n||o.open,children:D.jsx(mg,{asChild:!0,container:i,children:r})})})};n0e.displayName=eW;var nb="TooltipContent",r0e=y.forwardRef((e,t)=>{const n=lst(nb,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,s=NS(nb,e.__scopeTooltip);return D.jsx(no,{present:r||s.open,children:s.disableHoverableContent?D.jsx(i0e,{side:i,...o,ref:t}):D.jsx(cst,{side:i,...o,ref:t})})}),cst=y.forwardRef((e,t)=>{const n=NS(nb,e.__scopeTooltip),r=J6(nb,e.__scopeTooltip),i=y.useRef(null),o=xt(t,i),[s,a]=y.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:d}=r,f=y.useCallback(()=>{a(null),d(!1)},[d]),h=y.useCallback((p,m)=>{const g=p.currentTarget,v={x:p.clientX,y:p.clientY},b=pst(v,g.getBoundingClientRect()),w=mst(v,b),x=gst(m.getBoundingClientRect()),E=yst([...w,...x]);a(E),d(!0)},[d]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(l&&u){const p=g=>h(g,u),m=g=>h(g,l);return l.addEventListener("pointerleave",p),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",p),u.removeEventListener("pointerleave",m)}}},[l,u,h,f]),y.useEffect(()=>{if(s){const p=m=>{const g=m.target,v={x:m.clientX,y:m.clientY},b=(l==null?void 0:l.contains(g))||(u==null?void 0:u.contains(g)),w=!vst(v,s);b?f():w&&(f(),c())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,u,s,c,f]),D.jsx(i0e,{...e,ref:o})}),[ust,dst]=hM(t1,{isInside:!1}),fst=rst("TooltipContent"),i0e=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,l=NS(nb,n),c=pM(n),{onClose:u}=l;return y.useEffect(()=>(document.addEventListener($3,u),()=>document.removeEventListener($3,u)),[u]),y.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),D.jsx(pg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:D.jsxs(YR,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[D.jsx(fst,{children:r}),D.jsx(ust,{scope:n,isInside:!0,children:D.jsx(B$e,{id:l.contentId,role:"tooltip",children:i||r})})]})})});r0e.displayName=nb;var o0e="TooltipArrow",hst=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pM(n);return dst(o0e,n).isInside?null:D.jsx(XR,{...i,...r,ref:t})});hst.displayName=o0e;function pst(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function mst(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function gst(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function vst(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o],l=t[s],c=a.x,u=a.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(i=!i)}return i}function yst(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),bst(t)}function bst(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $nn=Jbe,Fnn=e0e,Bnn=t0e,jnn=n0e,znn=r0e,wst=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
948ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function tW(e){if(typeof e!="string")return!1;var t=wst;return t.includes(e)}var xst=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Est=new Set(xst);function s0e(e){return typeof e!="string"?!1:Est.has(e)}function a0e(e){return typeof e=="string"&&e.startsWith("data-")}function Ho(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s0e(n)||a0e(n))&&(t[n]=e[n]);return t}function Bm(e){if(e==null)return null;if(y.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ho(t)}return typeof e=="object"&&!Array.isArray(e)?Ho(e):null}function xo(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s0e(n)||a0e(n)||tW(n))&&(t[n]=e[n]);return t}function Sst(e){return e==null?null:y.isValidElement(e)?xo(e.props):typeof e=="object"&&!Array.isArray(e)?xo(e):null}var _st=["children","width","height","viewBox","className","style","title","desc"];function B3(){return B3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B3.apply(null,arguments)}function kst(e,t){if(e==null)return{};var n,r,i=Cst(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cst(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var nW=y.forwardRef((e,t)=>
948{var{children:n,width:r,height:i,viewBox:o,className:s,style:a,title:l,desc:c}=e,u=kst(e,_st),d=o||{width:r,height:i,x:0,y:0},f=Wt("recharts-surface",s);return y.createElement("svg",B3({},xo(u),{className:f,width:r,height:i,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),y.createElement("title",null,l),y.createElement("desc",null,c),n)}),Tst=["children","className"];function j3(){return j3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j3.apply(null,arguments)}function Ast(e,t){if(e==null)return{};var n,r,i=Ost(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ost(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var vr=y.forwardRef((e,t)=>{var{children:n,className:r}=e,i=Ast(e,Tst),o=Wt("recharts-layer",r);return y.createElement("g",j3({className:o},xo(i),{ref:t}),n)}),l0e=y.createContext(null),Pst=()=>y.useContext(l0e);function Mn(e){return function(){return e}}const c0e=Math.cos,PO=Math.sin,Hl=Math.sqrt,IO=Math.PI,mM=2*IO,z3=Math.PI,U3=2*z3,Cp=1e-6,Ist=U3-Cp;function u0e(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Rst(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return u0e;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Mst{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?u0e:Rst(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-t,c=i-n,u=s-t,d=a-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Cp)if(!(Math.abs(d*l-c*u)>Cp)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-s,p=i-a,m=l*l+c*c,g=h*h+p*p,v=Math.sqrt(m),b=Math.sqrt(f),w=o*Math.tan((z3-Math.acos((m+f-g)/(2*v*b)))/2),x=w/b,E=w/v;Math.abs(x-1)>Cp&&this._append`L${t+x*u},${n+x*d}`,this._append`A${o},${o},0,0,${+(d*h>u*p)},${this._x1=t+E*l},${this._y1=n+E*c}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=t+a,u=n+l,d=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Cp||Math.abs(this._y1-u)>Cp)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%U3+U3),f>Ist?this._append`A${r},${r},0,1,${d},${t-a},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Cp&&this._append`A${r},${r},0,${+(f>=z3)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function rW(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Mst(t)}function iW(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function d0e(e){this._context=e}d0e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gM(e){return new d0e(e)}function f0e(e){return e[0]}function h0e(e){return e[1]}function p0e(e,t){var n=Mn(!0),r=null,i=gM,o=null,s=rW(a);e=typeof e=="function"?e:e===void 0?f0e:Mn(e),t=typeof t=="function"?t:t===void 0?h0e:Mn(t);function a(l){var c,u=(l=iW(l)).length,d,f=!1,h;for(r==null&&(o=i(h=s())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:Mn(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:Mn(+l),a):t},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Mn(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function Vk(e,t,n){var r=null,i=Mn(!0),o=null,s=gM,a=null,l=rW(c);e=typeof e=="function"?e:e===void 0?f0e:Mn(+e),t=typeof t=="function"?t:Mn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?h0e:Mn(+n);function c(d){var f,h,p,m=(d=iW(d)).length,g,v=!1,b,w=new Array(m),x=new Array(m);for(o==null&&(a=s(b=l())),f=0;f<=m;++f){if(!(f<m&&i(g=d[f],f,d))===v)if(v=!v)h=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),p=f-1;p>=h;--p)a.point(w[p],x[p]);a.lineEnd(),a.areaEnd()}v&&(w[f]=+e(g,f,d),x[f]=+t(g,f,d),a.point(r?+r(g,f,d):w[f],n?+n(g,f,d):x[f]))}if(b)return a=null,b+""||null}
vendor: 6,546 bytes, line 948
948function u(){return p0e().defined(i).curve(s).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Mn(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Mn(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Mn(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Mn(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Mn(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Mn(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Mn(!!d),c):i},c.curve=function(d){return arguments.length?(s=d,o!=null&&(a=s(o)),c):s},c.context=function(d){return arguments.length?(d==null?o=a=null:a=s(o=d),c):o},c}class m0e{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Nst(e){return new m0e(e,!0)}function Dst(e){return new m0e(e,!1)}const oW={draw(e,t){const n=Hl(t/IO);e.moveTo(n,0),e.arc(0,0,n,0,mM)}},Lst={draw(e,t){const n=Hl(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},g0e=Hl(1/3),$st=g0e*2,Fst={draw(e,t){const n=Hl(t/$st),r=n*g0e;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Bst={draw(e,t){const n=Hl(t),r=-n/2;e.rect(r,r,n,n)}},jst=.8908130915292852,v0e=PO(IO/10)/PO(7*IO/10),zst=PO(mM/10)*v0e,Ust=-c0e(mM/10)*v0e,Vst={draw(e,t){const n=Hl(t*jst),r=zst*n,i=Ust*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=mM*o/5,a=c0e(s),l=PO(s);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*i,l*r+a*i)}e.closePath()}},$L=Hl(3),Wst={draw(e,t){const n=-Hl(t/($L*3));e.moveTo(0,n*2),e.lineTo(-$L*n,-n),e.lineTo($L*n,-n),e.closePath()}},ca=-.5,ua=Hl(3)/2,V3=1/Hl(12),Hst=(V3/2+1)*3,Kst={draw(e,t){const n=Hl(t/Hst),r=n/2,i=n*V3,o=r,s=n*V3+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(ca*r-ua*i,ua*r+ca*i),e.lineTo(ca*o-ua*s,ua*o+ca*s),e.lineTo(ca*a-ua*l,ua*a+ca*l),e.lineTo(ca*r+ua*i,ca*i-ua*r),e.lineTo(ca*o+ua*s,ca*s-ua*o),e.lineTo(ca*a+ua*l,ca*l-ua*a),e.closePath()}};function qst(e,t){let n=null,r=rW(i);e=typeof e=="function"?e:Mn(e||oW),t=typeof t=="function"?t:Mn(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Mn(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Mn(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function RO(){}function MO(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function y0e(e){this._context=e}y0e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:MO(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:MO(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gst(e){return new y0e(e)}function b0e(e){this._context=e}b0e.prototype={areaStart:RO,areaEnd:RO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:MO(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Yst(e){return new b0e(e)}function w0e(e){this._context=e}w0e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:MO(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xst(e){return new w0e(e)}function x0e(e){this._context=e}x0e.prototype={areaStart:RO,areaEnd:RO,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Zst(e){return new x0e(e)}function ZQ(e){return e<0?-1:1}function QQ(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(ZQ(o)+ZQ(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a)
948)||0}function JQ(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function FL(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function NO(e){this._context=e}NO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:FL(this,this._t0,JQ(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,FL(this,JQ(this,n=QQ(this,e,t)),n);break;default:FL(this,this._t0,n=QQ(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function E0e(e){this._context=new S0e(e)}(E0e.prototype=Object.create(NO.prototype)).point=function(e,t){NO.prototype.point.call(this,t,e)};function S0e(e){this._context=e}S0e.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Qst(e){return new NO(e)}function Jst(e){return new E0e(e)}function _0e(e){this._context=e}_0e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=eJ(e),i=eJ(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function eJ(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function eat(e){return new _0e(e)}function vM(e,t){this._context=e,this._t=t}vM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function tat(e){return new vM(e,.5)}function nat(e){return new vM(e,0)}function rat(e){return new vM(e,1)}function jm(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,a=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<a;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function W3(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function iat(e,t){return e[t]}function oat(e){const t=[];return t.key=e,t}function sat(){var e=Mn([]),t=W3,n=jm,r=iat;function i(o){var s=Array.from(e.apply(this,arguments),oat),a,l=s.length,c=-1,u;for(const d of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(d,s[a].key,c,o)]).data=d;for(a=0,u=iW(t(s));a<l;++a)s[u[a]].index=a;return n(s,u),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Mn(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Mn(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?W3:typeof o=="function"?o:Mn(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??jm,i):n},i}function aat(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}jm(e,t)}}function lat(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,a=0;s<i;++s)a+=e[s][n][1]||0;r[n][1]+=r[n][0]=-a/2}jm(e,t)}}function cat(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var a=0,l=0,c=0;a<s;++a){for(var u=e[t[a]],d=u[r][1]||0,f=u[r-1][1]||0,h=(d-f)/2,p=0;p<a;++p){var m=e[t[p]],g=m[r][1]||0,v=m[r-1][1]||0;h+=g-v}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,jm(e,t)}}var yM={},k0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(k0e);var sW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(sW);var bM={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(bM);var wM={},C0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(C0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=C0e,n=bM;function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const o=[],s=i.length;if(s===0)return o;let a=0,l="",c="",u=!1;for(i.charCodeAt(0)===46&&(o.push(""),a++);a<s;){const d=i[a];c?d==="\\"&&a+1<s?(a++,l+=i[a]):d===c?c="":l+=d:u?d==='"'||d==="'"?c=d:d==="]"?(u=!1,o.push(l),l=""):l+=d:d==="["?(u=!0,l&&(o.push(l),l="")):d==="."?l&&(o.push(l),l=""):l+=d,a++}return l&&o.push(l),o}e.toPath=r})(wM);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k0e,n=sW,r=bM,i=wM;function o(a,l,c){if(a==null)return c;
948switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=a[l];return u===void 0?n.isDeepKey(l)?o(a,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=a[l];return u===void 0?c:u}default:{if(Array.isArray(l))return s(a,l,c);if(Object.is(l==null?void 0:l.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=a[l];return u===void 0?c:u}}}function s(a,l,c){if(l.length===0)return c;let u=a;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=o})(yM);var uat=yM.get;const zm=yr(uat);var dat=4;function Lf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dat,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Tr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,o,s)=>{var a=n[s-1];return typeof a=="string"?i+a+o:a!==void 0?i+Lf(a)+o:i+o},"")}var Ai=e=>e===0?0:e>0?1:-1,zl=e=>typeof e=="number"&&e!=+e,Um=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Re=e=>(typeof e=="number"||e instanceof Number)&&!zl(e),Xc=e=>Re(e)||typeof e=="string",fat=0,n1=e=>{var t=++fat;return"".concat(e||"").concat(t)},yo=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Re(t)&&typeof t!="string")return r;var o;if(Um(t)){if(n==null)return r;var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return zl(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},T0e=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function un(e,t,n){return Re(e)&&Re(t)?Lf(e+n*(t-e)):t}function A0e(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):zm(r,t))===n)}var Zn=e=>e===null||typeof e>"u",DS=e=>Zn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function ds(e){return e!=null}function jh(){}var hat=["type","size","sizeType"];function H3(){return H3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H3.apply(null,arguments)}function tJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tJ(Object(n),!0).forEach(function(r){pat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pat(e,t,n){return(t=mat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mat(e){var t=gat(e,"string");return typeof t=="symbol"?t:t+""}function gat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vat(e,t){if(e==null)return{};var n,r,i=yat(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yat(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var O0e={symbolCircle:oW,symbolCross:Lst,symbolDiamond:Fst,symbolSquare:Bst,symbolStar:Vst,symbolTriangle:Wst,symbolWye:Kst},bat=Math.PI/180,wat=e=>{var t="symbol".concat(DS(e));return O0e[t]||oW}
948,xat=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*bat;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Eat=(e,t)=>{O0e["symbol".concat(DS(e))]=t},aW=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=vat(e,hat),o=nJ(nJ({},i),{},{type:t,size:n,sizeType:r}),s="circle";typeof t=="string"&&(s=t);var a=()=>{var f=wat(s),h=qst().type(f).size(xat(n,r,s)),p=h();if(p!==null)return p},{className:l,cx:c,cy:u}=o,d=xo(o);return Re(c)&&Re(u)&&Re(n)?y.createElement("path",H3({},d,{className:Wt("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:a()})):null};aW.registerSymbol=Eat;var P0e=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,lW=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(y.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{tW(i)&&typeof n[i]=="function"&&(r[i]=o=>n[i](n,o))}),r},Sat=(e,t,n)=>r=>(e(t,n,r),null),LS=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];tW(i)&&typeof o=="function"&&(r||(r={}),r[i]=Sat(o,t,n))}),r};function rJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _at(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rJ(Object(n),!0).forEach(function(r){kat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kat(e,t,n){return(t=Cat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cat(e){var t=Tat(e,"string");return typeof t=="symbol"?t:t+""}function Tat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vr(e,t){var n=_at({},e),r=t,i=Object.keys(t),o=i.reduce((s,a)=>(s[a]===void 0&&r[a]!==void 0&&(s[a]=r[a]),s),n);return o}function DO(){return DO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DO.apply(null,arguments)}function iJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iJ(Object(n),!0).forEach(function(r){Aat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aat(e,t,n){return(t=Oat(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oat(e){var t=Pat(e,"string");return typeof t=="symbol"?t:t+""}function Pat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ha=32,Iat={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function Rat(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Mat(e){var{data:t,iconType:n,inactiveColor:r}=e,i=ha/2,o=ha/6,s=ha/3,a=t.inactive?r:t.color,l=n??t.type;if(l==="none")return null;if(l==="plainline")return y.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:Rat(t.payload),x1:0,y1:i,x2:ha,y2:i,
948className:"recharts-legend-icon"});if(l==="line")return y.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(i,"h").concat(s,` 949 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,` 950 H`).concat(ha,"M").concat(2*s,",").concat(i,` 951 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(l==="rect")return y.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(ha/8,"h").concat(ha,"v").concat(ha*3/4,"h").concat(-ha,"z"),className:"recharts-legend-icon"});if(y.isValidElement(t.legendIcon)){var c=I0e({},t);return delete c.legendIcon,y.cloneElement(t.legendIcon,c)}return y.createElement(aW,{fill:a,cx:i,cy:i,size:ha,sizeType:"diameter",type:l})}function Nat(e){var{payload:t,iconSize:n,layout:r,formatter:i,inactiveColor:o,iconType:s,labelStyle:a}=e,l={x:0,y:0,width:ha,height:ha},c={display:r==="horizontal"?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((d,f)=>{var h=d.formatter||i,p=Wt({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:d.inactive});if(d.type==="none")return null;var m=typeof a=="object"?I0e({},a):{};m.color=d.inactive?o:m.color||d.color;var g=h?h(d.value,d,f):d.value;return y.createElement("li",DO({className:p,style:c,key:"legend-item-".concat(f)},LS(e,d,f)),y.createElement(nW,{width:n,height:n,viewBox:l,style:u,"aria-label":"".concat(d.value," legend icon")},y.createElement(Mat,{data:d,iconType:s,inactiveColor:o})),y.createElement("span",{className:"recharts-legend-item-text",style:m},g))})}var Dat=e=>{var t=Vr(e,Iat),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:r==="horizontal"?i:"left"};return y.createElement("ul",{className:"recharts-default-legend",style:o},y.createElement(Nat,DO({},t,{payload:n})))},R0e={},M0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const s=n[o],a=r(s,o,n);i.has(a)||i.set(a,s)}return Array.from(i.values())}e.uniqBy=t})(M0e);var N0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(N0e);var cW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(cW);var D0e={},uW={},L0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(L0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L0e;function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(uW);var $0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})($0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uW,n=$0e;function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(D0e);var F0e={},B0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yM;function n(r){return function(i){return t.get(i,r)}}e.property=n})(B0e);var j0e={},dW={},z0e={},fW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(fW);var hW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(hW);var pW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(pW);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fW,n=hW,r=pW;function i(u,d,f){return typeof f!="function"?i(u,d,()=>{}):o(u,d,function h(p,m,g,v,b,w){const x=f(p,m,g,v,b,w);return x!==void 0?!!x:o(p,m,h,w)},new Map)}function o(u,d,f,h){if(d===u)return!0;switch(typeof d){case"object":return s(u,d,f,h);case"function":return Object.keys(d).length>0?o(u,{...d},f,h):r.isEqualsSameValueZero(u,d);
951default:return t.isObject(u)?typeof d=="string"?d==="":!0:r.isEqualsSameValueZero(u,d)}}function s(u,d,f,h){if(d==null)return!0;if(Array.isArray(d))return l(u,d,f,h);if(d instanceof Map)return a(u,d,f,h);if(d instanceof Set)return c(u,d,f,h);const p=Object.keys(d);if(u==null||n.isPrimitive(u))return p.length===0;if(p.length===0)return!0;if(h!=null&&h.has(d))return h.get(d)===u;h==null||h.set(d,u);try{for(let m=0;m<p.length;m++){const g=p[m];if(!n.isPrimitive(u)&&!(g in u)||d[g]===void 0&&u[g]!==void 0||d[g]===null&&u[g]!==null||!f(u[g],d[g],g,u,d,h))return!1}return!0}finally{h==null||h.delete(d)}}function a(u,d,f,h){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[p,m]of d.entries()){const g=u.get(p);if(f(g,m,p,u,d,h)===!1)return!1}return!0}function l(u,d,f,h){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const p=new Set;for(let m=0;m<d.length;m++){const g=d[m];let v=!1;for(let b=0;b<u.length;b++){if(p.has(b))continue;const w=u[b];let x=!1;if(f(w,g,m,u,d,h)&&(x=!0),x){p.add(b),v=!0;break}}if(!v)return!1}return!0}function c(u,d,f,h){return d.size===0?!0:u instanceof Set?l([...u],[...d],f,h):!1}e.isMatchWith=i,e.isSetMatch=c})(z0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z0e;function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(dW);var U0e={},mW={},V0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(V0e);var xM={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(xM);var gW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",s="[object Symbol]",a="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",f="[object ArrayBuffer]",h="[object Object]",p="[object Error]",m="[object DataView]",g="[object Uint8Array]",v="[object Uint8ClampedArray]",b="[object Uint16Array]",w="[object Uint32Array]",x="[object BigUint64Array]",E="[object Int8Array]",S="[object Int16Array]",_="[object Int32Array]",k="[object BigInt64Array]",C="[object Float32Array]",T="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=f,e.arrayTag=u,e.bigInt64ArrayTag=k,e.bigUint64ArrayTag=x,e.booleanTag=i,e.dataViewTag=m,e.dateTag=a,e.errorTag=p,e.float32ArrayTag=C,e.float64ArrayTag=T,e.functionTag=d,e.int16ArrayTag=S,e.int32ArrayTag=_,e.int8ArrayTag=E,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=s,e.uint16ArrayTag=b,e.uint32ArrayTag=w,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=v})(gW);var W0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(W0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=V0e,n=xM,r=gW,i=hW,o=W0e;function s(u,d){return a(u,void 0,u,new Map,d)}function a(u,d,f,h=new Map,p=void 0){const m=p==null?void 0:p(u,d,f,h);if(m!==void 0)return m;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const g=new Array(u.length);h.set(u,g);for(let v=0;v<u.length;v++)g[v]=a(u[v],v,f,h,p);return Object.hasOwn(u,"index")&&(g.index=u.index),Object.hasOwn(u,"input")&&(g.input=u.input),g}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const g=new RegExp(u.source,u.flags);return g.lastIndex=u.lastIndex,g}if(u instanceof Map){const g=new Map;h.set(u,g);for(const[v,b]of u)g.set(v,a(b,v,f,h,p));return g}if(u instanceof Set){const g=new Set;h.set(u,g);for(const v of u)g.add(a(v,void 0,f,h,p));return g}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(o.isTypedArray(u)){const g=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,g);for(let v=0;v<u.length;v++)g[v]=a(u[v],v,f,h,p);return g}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const g=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,g),l(g,u,f,h,p),g}if(typeof File<"u"&&u instanceof File){const g=new File([u],u.name,{type:u.type});return h.set(u,g),l(g,u,f,h,p),g}if(typeof Blob<"u"&&u instanceof Blob){const g=new Blob([u],{type:u.type});return h.set(u,g),l(g,u,f,h,p),g}if(u instanceof Error){const g=structuredClone(u);return h.set(u,g),g.message=u.message,g.name=u.name,g.stack=u.stack,g.cause=u.cause,g.constructor=u.constructor,l(g,u,f,h,p),g}if(u instanceof Boolean){const g=new Boolean(u.valueOf());return h.set(u,g),l(g,u,f,h,p),g}if(u instanceof Number){const g=new Number(u.valueOf());return h.set(u,g),l(g,u,f,h,p),g}if(u instanceof String){const g=new String(u.valueOf());return h.set(u,g),l(g,u,f,h,p),g}if(typeof u=="object"&&c(u)){const g=Object.create(Object.getPrototypeOf(u));return h.set(u,g),l(g,u,f,h,p),g}return u}function l(u,d,f=u,h,p){const m=[...Object.keys(d),...t.getSymbols(d)];for(let g=0;g<m.length;g++){const v=m[g],b=Object.getOwnPropertyDescriptor(u,v);(b==null||b.writable)&&(u[v]=a(d[v],v,f,h,p))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=a,e.copyProperties=l})(mW);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mW;function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(U0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dW,n=U0e;function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r})(j0e);var H0e={},K0e={},q0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mW,n=xM,r=gW;function i(o,s){return t.cloneDeepWith(o,(a,l,c,u)=>{const d=s==null?void 0:s(a,l,c,u);if(d!==void 0)return d;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const f={};return u.set(o,f),t.copyProperties(f,o,c,u),f}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(f,o),f}case r.argumentsTag:{const f={};return t.copyProperties(f,o),f.length=o.length,f[Symbol.iterator]=o[Symbol.iterator],f}default:return}}})}e.cloneDeepWith=i})(q0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q0e;function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(K0e);var G0e={},vW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(vW);var Y0e={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xM;function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Y0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sW,n=vW,r=Y0e,i=wM;function o(s,a){let l;
951if(Array.isArray(a)?l=a:typeof a=="string"&&t.isDeepKey(a)&&(s==null?void 0:s[a])==null?l=i.toPath(a):l=[a],l.length===0)return!1;let c=s;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=o})(G0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dW,n=bM,r=K0e,i=yM,o=G0e;function s(a,l){switch(typeof a){case"object":{Object.is(a==null?void 0:a.valueOf(),-0)&&(a="-0");break}case"number":{a=n.toKey(a);break}}return l=r.cloneDeep(l),function(c){const u=i.get(c,a);return u===void 0?o.has(c,a):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=s})(H0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cW,n=B0e,r=j0e,i=H0e;function o(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):r.matches(s);case"string":case"symbol":case"number":return n.property(s)}}e.iteratee=o})(F0e);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M0e,n=N0e,r=cW,i=D0e,o=F0e;function s(a,l=r.identity){return i.isArrayLikeObject(a)?t.uniqBy(Array.from(a),n.ary(o.iteratee(l),1)):[]}e.uniqBy=s})(R0e);var Lat=R0e.uniqBy;const oJ=yr(Lat);function X0e(e,t,n){return t===!0?oJ(e,n):typeof t=="function"?oJ(e,t):e}var Z0e={exports:{}},Q0e={},J0e={exports:{}},ewe={};/** 952 * @license React 953 * use-sync-external-store-shim.production.js 954 * 955 * Copyright (c) Meta Platforms, Inc. and affiliates. 956 * 957 * This source code is licensed under the MIT license found in the 958 * LICENSE file in the root directory of this source tree. 959 */var rb=y;function $at(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fat=typeof Object.is=="function"?Object.is:$at,Bat=rb.useState,jat=rb.useEffect,zat=rb.useLayoutEffect,Uat=rb.useDebugValue;function Vat(e,t){var n=t(),r=Bat({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return zat(function(){i.value=n,i.getSnapshot=t,BL(i)&&o({inst:i})},[e,n,t]),jat(function(){return BL(i)&&o({inst:i}),e(function(){BL(i)&&o({inst:i})})},[e]),Uat(n),n}function BL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fat(e,n)}catch{return!0}}function Wat(e,t){return t()}var Hat=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wat:Vat;ewe.useSyncExternalStore=rb.useSyncExternalStore!==void 0?rb.useSyncExternalStore:Hat;J0e.exports=ewe;var EM=J0e.exports;/** 960 * @license React 961 * use-sync-external-store-shim/with-selector.production.js 962 * 963 * Copyright (c) Meta Platforms, Inc. and affiliates. 964 * 965 * This source code is licensed under the MIT license found in the 966 * LICENSE file in the root directory of this source tree. 967 */var SM=y,Kat=EM;function qat(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gat=typeof Object.is=="function"?Object.is:qat,Yat=Kat.useSyncExternalStore,Xat=SM.useRef,Zat=SM.useEffect,Qat=SM.useMemo,Jat=SM.useDebugValue;Q0e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Xat(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Qat(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,Gat(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?(u=h,p):(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=Yat(e,o[0],o[1]);return Zat(function(){s.hasValue=!0,s.value=a},[a]),Jat(a),a};Z0e.exports=Q0e;var twe=Z0e.exports,yW=y.createContext(null),elt=e=>e,_n=()=>{var e=y.useContext(yW);return e?e.store.dispatch:elt},LT=()=>{},tlt=()=>LT,nlt=(e,t)=>e===t;function Be(e){var t=y.useContext(yW),n=y.useMemo(()=>t?r=>{if(r!=null)return e(r)}:LT,[t,e]);return twe.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:tlt,t?t.store.getState:LT,t?t.store.getState:LT,n,nlt)}function rlt(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ilt(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function olt(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var sJ=e=>Array.isArray(e)?e:[e];function slt(e){const t=Array.isArray(e[0])?e[0]:e;return olt(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function alt(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var llt=class{constructor(e){this.value=e}deref(){return this.value}},clt=typeof WeakRef<"u"?WeakRef:llt,ult=0,aJ=1;function Wk(){return{s:ult,v:void 0,o:null,p:null}}function nwe(e,t={}){let n=Wk();const{resultEqualityCheck:r}=t;let i,o=0;function s(){var d;let a=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const p=arguments[f];if(typeof p=="function"||typeof p=="object"&&p!==null){let m=a.o;m===null&&(a.o=m=new WeakMap);const g=m.get(p);g===void 0?(a=Wk(),m.set(p,a)):a=g}else{let m=a.p;m===null&&(a.p=m=new Map);const g=m.get(p);g===void 0?(a=Wk(),m.set(p,a)):a=g}}const c=a;let u;if(a.s===aJ)u=a.v;else if(u=e.apply(null,arguments),o++,r){const f=((d=i==null?void 0:i.deref)==null?void 0:d.call(i))??i;f!=null&&r(f,u)&&(u=f,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new clt(u):u}return c.s=aJ,c.v=u,u}return s.clearCache=()=>{n=Wk(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function dlt(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),rlt(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=nwe,argsMemoizeOptions:p=[]}=u,m=sJ(f),g=sJ(p),v=slt(i),b=d(function(){return o++,c.apply(null,arguments)},...m),w=h(function(){s++;const E=alt(v,arguments);return a=b.apply(null,E),a},...g);return Object.assign(w,{resultFunc:c,memoizedResultFunc:b,dependencies:v,depen
967dencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var q=dlt(nwe),flt=Object.assign((e,t=q)=>{ilt(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>flt}),rwe={},iwe={},owe={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const s=t(r),a=t(i);if(s===a&&s===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?a-s:s-a}return 0};e.compareValues=n})(owe);var swe={},bW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(bW);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bW,n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||s!=null&&Object.hasOwn(s,o)}e.isKey=i})(swe);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=owe,n=swe,r=wM;function i(o,s,a,l){if(o==null)return[];a=l?void 0:a,Array.isArray(o)||(o=Object.values(o)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(h=>String(h));const c=(h,p)=>{let m=h;for(let g=0;g<p.length&&m!=null;++g)m=m[p[g]];return m},u=(h,p)=>p==null||h==null?p:typeof h=="object"&&"key"in h?Object.hasOwn(p,h.key)?p[h.key]:c(p,h.path):typeof h=="function"?h(p):Array.isArray(h)?c(p,h):typeof p=="object"?p[h]:p,d=s.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||n.isKey(h)?h:{key:h,path:r.toPath(h)}));return o.map(h=>({original:h,criteria:d.map(p=>u(p,h))})).slice().sort((h,p)=>{for(let m=0;m<d.length;m++){const g=t.compareValues(h.criteria[m],p.criteria[m],a[m]);if(g!==0)return g}return 0}).map(h=>h.original)}e.orderBy=i})(iwe);var awe={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),s=(a,l)=>{for(let c=0;c<a.length;c++){const u=a[c];Array.isArray(u)&&l<o?s(u,l+1):i.push(u)}};return s(n,0),i}e.flatten=t})(awe);var wW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vW,n=uW,r=fW,i=pW;function o(s,a,l){return r.isObject(l)&&(typeof a=="number"&&n.isArrayLike(l)&&t.isIndex(a)&&a<l.length||typeof a=="string"&&a in l)?i.isEqualsSameValueZero(l[a],s):!1}e.isIterateeCall=o})(wW);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iwe,n=awe,r=wW;function i(o,...s){const a=s.length;return a>1&&r.isIterateeCall(o,s[0],s[1])?s=[]:a>2&&r.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(o,n.flatten(s),["asc"])}e.sortBy=i})(rwe);var hlt=rwe.sortBy;const _M=yr(hlt);var lwe=e=>e.legend.settings,plt=e=>e.legend.size,mlt=e=>e.legend.payload,glt=q([mlt,lwe],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?_M(r,n):r});function vlt(){return Be(glt)}var Hk=1;function cwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=y.useState({height:0,left:0,top:0,width:0}),r=y.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),s={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(s.height-t.height)>Hk||Math.abs(s.left-t.left)>Hk||Math.abs(s.top-t.top)>Hk||Math.abs(s.width-t.width)>Hk)&&n({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Ui(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ylt=typeof Symbol=="function"&&Symbol.observable||"@@observable",lJ=ylt,jL=()=>Math.random().toString(36).substring(7).split("").join("."),blt={INIT:`@@redux/INIT${jL()}`,REPLACE:`@@redux/REPLACE${jL()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jL()}`},LO=blt;function xW(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function uwe(e,t,n){if(typeof e!="function")throw new Error(Ui(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ui(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ui(1));return n(uwe)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((g,v)=>{s.set(v,g)}))}function u(){if(l)throw new Error(Ui(3));return i}function d(g){if(typeof g!="function")throw new Error(Ui(4));if(l)throw new Error(Ui(5));let v=!0;c();const b=a++;return s.set(b,g),function(){if(v){if(l)throw new Error(Ui(6));v=!1,c(),s.delete(b),o=null}}}function f(g){if(!xW(g))throw new Error(Ui(7));if(typeof g.type>"u")throw new Error(Ui(8));if(typeof g.type!="string")throw new Error(Ui(17));if(l)throw new Error(Ui(9));try{l=!0,i=r(i,g)}finally{l=!1}
967return(o=s).forEach(b=>{b()}),g}function h(g){if(typeof g!="function")throw new Error(Ui(10));r=g,f({type:LO.REPLACE})}function p(){const g=d;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Ui(11));function b(){const x=v;x.next&&x.next(u())}return b(),{unsubscribe:g(b)}},[lJ](){return this}}}return f({type:LO.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:h,[lJ]:p}}function wlt(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:LO.INIT})>"u")throw new Error(Ui(12));if(typeof n(void 0,{type:LO.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ui(13))})}function dwe(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{wlt(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let u=0;u<r.length;u++){const d=r[u],f=n[d],h=s[d],p=f(h,a);if(typeof p>"u")throw a&&a.type,new Error(Ui(14));c[d]=p,l=l||p!==h}return l=l||r.length!==Object.keys(s).length,l?c:s}}function $O(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function xlt(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Ui(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=$O(...a)(i.dispatch),{...i,dispatch:o}}}function fwe(e){return xW(e)&&"type"in e&&typeof e.type=="string"}var hwe=Symbol.for("immer-nothing"),cJ=Symbol.for("immer-draftable"),Ko=Symbol.for("immer-state");function gl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bs=Object,ib=Bs.getPrototypeOf,FO="constructor",kM="prototype",K3="configurable",BO="enumerable",$T="writable",r1="value",yd=e=>!!e&&!!e[Ko];function Ul(e){var t;return e?pwe(e)||TM(e)||!!e[cJ]||!!((t=e[FO])!=null&&t[cJ])||AM(e)||OM(e):!1}var Elt=Bs[kM][FO].toString(),uJ=new WeakMap;function pwe(e){if(!e||!EW(e))return!1;const t=ib(e);if(t===null||t===Bs[kM])return!0;const n=Bs.hasOwnProperty.call(t,FO)&&t[FO];if(n===Object)return!0;if(!hv(n))return!1;let r=uJ.get(n);return r===void 0&&(r=Function.toString.call(n),uJ.set(n,r)),r===Elt}function CM(e,t,n=!0){$S(e)===0?(n?Reflect.ownKeys(e):Bs.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function $S(e){const t=e[Ko];return t?t.type_:TM(e)?1:AM(e)?2:OM(e)?3:0}var dJ=(e,t,n=$S(e))=>n===2?e.has(t):Bs[kM].hasOwnProperty.call(e,t),q3=(e,t,n=$S(e))=>n===2?e.get(t):e[t],jO=(e,t,n,r=$S(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Slt(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var TM=Array.isArray,AM=e=>e instanceof Map,OM=e=>e instanceof Set,EW=e=>typeof e=="object",hv=e=>typeof e=="function",zL=e=>typeof e=="boolean";function _lt(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Fu=e=>e.copy_||e.base_,SW=e=>e.modified_?e.copy_:e.base_;function G3(e,t){if(AM(e))return new Map(e);if(OM(e))return new Set(e);if(TM(e))return Array[kM].slice.call(e);const n=pwe(e);if(t===!0||t==="class_only"&&!n){const r=Bs.getOwnPropertyDescriptors(e);delete r[Ko];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[$T]===!1&&(a[$T]=!0,a[K3]=!0),(a.get||a.set)&&(r[s]={[K3]:!0,[$T]:!0,[BO]:a[BO],[r1]:e[s]})}return Bs.create(ib(e),r)}else{const r=ib(e);if(r!==null&&n)return{...e};const i=Bs.create(r);return Bs.assign(i,e)}}function _W(e,t=!1){return PM(e)||yd(e)||!Ul(e)||($S(e)>1&&Bs.defineProperties(e,{set:Kk,add:Kk,clear:Kk,delete:Kk}),Bs.freeze(e),t&&CM(e,(n,r)=>{_W(r,!0)},!1)),e}function klt(){gl(2)}var Kk={[r1]:klt};function PM(e){return e===null||!EW(e)?!0:Bs.isFrozen(e)}var zO="MapSet",Y3="Patches",fJ="ArrayMethods",mwe={};function Vm(e){const t=mwe[e];return t||gl(0,e),t}var hJ=e=>!!mwe[e],i1,gwe=()=>i1,Clt=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:hJ(zO)?Vm(zO):void 0,arrayMethodsPlugin_:hJ(fJ)?Vm(fJ):void 0});function pJ(e,t){t&&(e.patchPlugin_=Vm(Y3),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function X3(e){Z3(e),e.drafts_.forEach(Tlt),e.drafts_=null}function Z3(e){e===i1&&(i1=e.parent_)}var mJ=e=>i1=Clt(i1,e);function Tlt(e){const t=e[Ko];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function gJ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Ko].modified_&&(X3(t),gl(4)),Ul(e)&&(e=vJ(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Ko].base_,e,t)}else e=vJ(t,n);return Alt(t,e,!0),X3(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hwe?e:void 0}function vJ(e,t){if(PM(t))return t;const n=t[Ko];if(!n)return UO(t,e.handledSet_,e);if(!IM(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);bwe(n,e)}return n.copy_}function Alt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_W(t,n)}function vwe(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var IM=(e,t)=>e.scope_===t,Olt=[];function ywe(e,t,n,r){const i=Fu(e),o=e.type_;if(r!==void 0&&q3(i,r,o)===t){jO(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;CM(i,(l,c)=>{if(yd(c)){const u=a.get(c)||[];u.push(l),a.set(c,u)}})}const s=e.draftLocations_.get(t)??Olt;for(const a of s)jO(i,a,n,o)}function Plt(e,t,n){e.callbacks_.push(function(i){var a;const o=t;if(!o||!IM(o,i))return;(a=i.mapSetPlugin_)==null||a.fixSetContents(o);const s=SW(o);ywe(e,o.draft_??o,s,n),bwe(o,i)})}function bwe(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const o=i.getPath(e);o&&i.generatePatches_(e,o,t)}vwe(e)}}function Ilt(e,t,n){const{scope_:r}=e;if(yd(n)){const i=n[Ko];IM(i,r)&&i.callbacks_.push(function(){FT(e);const s=SW(i);ywe(e,n,s,t)})}else Ul(n)&&e.callbacks_.push(function(){const o=Fu(e);e.type_===3?o.has(n)&&UO(n,r.handledSet_,r):q3(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&UO(q3(e.copy_,t,e.type_),r.handledSet_,r)})}function UO(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||yd(e)||t.has(e)||!Ul(e)||PM(e)||(t.add(e),CM(e,(r,i)=>{if(yd(i)){const o=i[Ko];
967if(IM(o,n)){const s=SW(o);jO(e,r,s,e.type_),vwe(o)}}else Ul(i)&&UO(i,t,n)})),e}function Rlt(e,t){const n=TM(e),r={type_:n?1:0,scope_:t?t.scope_:gwe(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=VO;n&&(i=[r],o=o1);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var VO={get(e,t){if(t===Ko)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Fu(e);if(!dJ(i,t,e.type_))return Mlt(e,i,t);const o=i[t];if(e.finalized_||!Ul(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&_lt(t))return o;if(o===UL(e.base_,t)){FT(e);const s=e.type_===1?+t:t,a=J3(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in Fu(e)},ownKeys(e){return Reflect.ownKeys(Fu(e))},set(e,t,n){const r=wwe(Fu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=UL(Fu(e),t),o=i==null?void 0:i[Ko];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Slt(n,i)&&(n!==void 0||dJ(e.base_,t,e.type_)))return!0;FT(e),Q3(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Ilt(e,t,n)),!0},deleteProperty(e,t){return FT(e),UL(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Q3(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[$T]:!0,[K3]:e.type_!==1||t!=="length",[BO]:r[BO],[r1]:n[t]}},defineProperty(){gl(11)},getPrototypeOf(e){return ib(e.base_)},setPrototypeOf(){gl(12)}},o1={};for(let e in VO){let t=VO[e];o1[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}o1.deleteProperty=function(e,t){return o1.set.call(this,e,t,void 0)};o1.set=function(e,t,n){return VO.set.call(this,e[0],t,n,e[0])};function UL(e,t){const n=e[Ko];return(n?Fu(n):e)[t]}function Mlt(e,t,n){var i;const r=wwe(t,n);return r?r1 in r?r[r1]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function wwe(e,t){if(!(t in e))return;let n=ib(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ib(n)}}function Q3(e){e.modified_||(e.modified_=!0,e.parent_&&Q3(e.parent_))}function FT(e){e.copy_||(e.assigned_=new Map,e.copy_=G3(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Nlt=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(hv(n)&&!hv(r)){const s=r;r=n;const a=this;return function(c=s,...u){return a.produce(c,d=>r.call(this,d,...u))}}hv(r)||gl(6),i!==void 0&&!hv(i)&&gl(7);let o;if(Ul(n)){const s=mJ(this),a=J3(s,n,void 0);let l=!0;try{o=r(a),l=!1}finally{l?X3(s):Z3(s)}return pJ(s,i),gJ(o,s)}else if(!n||!EW(n)){if(o=r(n),o===void 0&&(o=n),o===hwe&&(o=void 0),this.autoFreeze_&&_W(o,!0),i){const s=[],a=[];Vm(Y3).generateReplacementPatches_(n,o,{patches_:s,inversePatches_:a}),i(s,a)}return o}else gl(1,n)},this.produceWithPatches=(n,r)=>{if(hv(n))return(a,...l)=>this.produceWithPatches(a,c=>n(c,...l));let i,o;return[this.produce(n,r,(a,l)=>{i=a,o=l}),i,o]},zL(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),zL(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),zL(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ul(t)||gl(8),yd(t)&&(t=Ia(t));const n=mJ(this),r=J3(n,t,void 0);return r[Ko].isManual_=!0,Z3(n),r}finishDraft(t,n){const r=t&&t[Ko];(!r||!r.isManual_)&&gl(9);const{scope_:i}=r;return pJ(i,n),gJ(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const i=Vm(Y3).applyPatches_;return yd(t)?i(t,n):this.produce(t,o=>i(o,n))}};function J3(e,t,n,r){const[i,o]=AM(t)?Vm(zO).proxyMap_(t,n):OM(t)?Vm(zO).proxySet_(t,n):Rlt(t,n);return((n==null?void 0:n.scope_)??gwe()).drafts_.push(i),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?Plt(n,o,r):o.callbacks_.push(function(l){var u;(u=l.mapSetPlugin_)==null||u.fixSetContents(o);const{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Ia(e){return yd(e)||gl(10,e),xwe(e)}function xwe(e){if(!Ul(e)||PM(e))return e;const t=e[Ko];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=G3(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=G3(e,!0);return CM(n,(i,o)=>{jO(n,i,xwe(o))},r),t&&(t.finalized_=!1),n}var Dlt=new Nlt,Ewe=Dlt.produce;function Swe(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Llt=Swe(),$lt=Swe,Flt=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$O:$O.apply(null,arguments)};function ea(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Hs(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>fwe(r)&&r.type===e,n}var _we=class ix extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ix.prototype)}static get[Symbol.species](){return ix}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ix(...t[0].concat(this)):new ix(...t.concat(this))}};function yJ(e){return Ul(e)?Ewe(e,()=>{}):e}function qk(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Blt(e){return typeof e=="boolean"}var jlt=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new _we;return n&&(Blt(n)?s.push(Llt):s.push($lt(n.extraArgument))),s},kwe="RTK_autoBatch",Hn=()=>e=>({payload:e,meta:{[kwe]:!0}}),bJ=e=>t=>{setTimeout(t,e)},Cwe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bJ(10):e.type==="callback"?e.queueNotification:bJ(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>i&&u(),f=r.subscribe(d);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){var d;
967try{return i=!((d=u==null?void 0:u.meta)!=null&&d[kwe]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},zlt=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new _we(e);return r&&i.push(Cwe(typeof r=="object"?r:void 0)),i};function Ult(e){const t=jlt(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(xW(n))a=dwe(n);else throw new Error(Hs(1));let l;typeof r=="function"?l=r(t):l=t();let c=$O;i&&(c=Flt({trace:!1,...typeof i=="object"&&i}));const u=xlt(...l),d=zlt(u);let f=typeof s=="function"?s(d):d();const h=c(...f);return uwe(a,o,h)}function Twe(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Hs(28));if(a in t)throw new Error(Hs(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Vlt(e){return typeof e=="function"}function Wlt(e,t){let[n,r,i]=Twe(t),o;if(Vlt(e))o=()=>yJ(e());else{const a=yJ(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(yd(u)){const h=d(u,l);return h===void 0?u:h}else{if(Ul(u))return Ewe(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return s.getInitialState=o,s}var Hlt="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Klt=(e=21)=>{let t="",n=e;for(;n--;)t+=Hlt[Math.random()*64|0];return t},qlt=Symbol.for("rtk-slice-createasyncthunk");function Glt(e,t){return`${e}/${t}`}function Ylt({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[qlt];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Hs(11));const a=(typeof i.reducers=="function"?i.reducers(Zlt()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(x,E){const S=typeof x=="string"?x:x.type;if(!S)throw new Error(Hs(12));if(S in c.sliceCaseReducersByType)throw new Error(Hs(13));return c.sliceCaseReducersByType[S]=E,u},addMatcher(x,E){return c.sliceMatchers.push({matcher:x,reducer:E}),u},exposeAction(x,E){return c.actionCreators[x]=E,u},exposeCaseReducer(x,E){return c.sliceCaseReducersByName[x]=E,u}};l.forEach(x=>{const E=a[x],S={reducerName:x,type:Glt(o,x),createNotation:typeof i.reducers=="function"};Jlt(E)?tct(S,E,u,t):Qlt(S,E,u)});function d(){const[x={},E=[],S=void 0]=typeof i.extraReducers=="function"?Twe(i.extraReducers):[i.extraReducers],_={...x,...c.sliceCaseReducersByType};return Wlt(i.initialState,k=>{for(let C in _)k.addCase(C,_[C]);for(let C of c.sliceMatchers)k.addMatcher(C.matcher,C.reducer);for(let C of E)k.addMatcher(C.matcher,C.reducer);S&&k.addDefaultCase(S)})}const f=x=>x,h=new Map,p=new WeakMap;let m;function g(x,E){return m||(m=d()),m(x,E)}function v(){return m||(m=d()),m.getInitialState()}function b(x,E=!1){function S(k){let C=k[x];return typeof C>"u"&&E&&(C=qk(p,S,v)),C}function _(k=f){const C=qk(h,E,()=>new WeakMap);return qk(C,k,()=>{const T={};for(const[A,O]of Object.entries(i.selectors??{}))T[A]=Xlt(O,k,()=>qk(p,k,v),E);return T})}return{reducerPath:x,getSelectors:_,get selectors(){return _(S)},selectSlice:S}}const w={name:o,reducer:g,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:v,...b(s),injectInto(x,{reducerPath:E,...S}={}){const _=E??s;return x.inject({reducerPath:_,reducer:g},S),{...w,...b(_,!0)}}};return w}}function Xlt(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var So=Ylt();function Zlt(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Qlt({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!ect(r))throw new Error(Hs(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ea(e,s):ea(e))}function Jlt(e){return e._reducerDefinitionType==="asyncThunk"}function ect(e){return e._reducerDefinitionType==="reducerWithPrepare"}function tct({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Hs(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=n,d=i(e,o,u);r.exposeAction(t,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),
967c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:s||Gk,pending:a||Gk,rejected:l||Gk,settled:c||Gk})}function Gk(){}var nct="task",Awe="listener",Owe="completed",kW="cancelled",rct=`task-${kW}`,ict=`task-${Owe}`,ez=`${Awe}-${kW}`,oct=`${Awe}-${Owe}`,RM=class{constructor(e){Nt(this,"name","TaskAbortError");Nt(this,"message");this.code=e,this.message=`${nct} ${kW} (reason: ${e})`}},CW=(e,t)=>{if(typeof e!="function")throw new TypeError(Hs(32))},WO=()=>{},Pwe=(e,t=WO)=>(e.catch(t),e),Iwe=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),pm=e=>{if(e.aborted)throw new RM(e.reason)};function Rwe(e,t){let n=WO;return new Promise((r,i)=>{const o=()=>i(new RM(e.reason));if(e.aborted){o();return}n=Iwe(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=WO})}var sct=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof RM?"cancelled":"rejected",error:n}}finally{t==null||t()}},HO=e=>t=>Pwe(Rwe(e,t).then(n=>(pm(e),n))),Mwe=e=>{const t=HO(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:ly}=Object,wJ={},MM="listenerMiddleware",act=(e,t)=>{const n=r=>Iwe(e,()=>r.abort(e.reason));return(r,i)=>{CW(r);const o=new AbortController;n(o);const s=sct(async()=>{pm(e),pm(o.signal);const a=await r({pause:HO(o.signal),delay:Mwe(o.signal),signal:o.signal});return pm(o.signal),a},()=>o.abort(ict));return i!=null&&i.autoJoin&&t.push(s.catch(WO)),{result:HO(e)(s),cancel(){o.abort(rct)}}}},lct=(e,t)=>{const n=async(r,i)=>{pm(t);let o=()=>{};const a=[new Promise((l,c)=>{let u=e({predicate:r,effect:(d,f)=>{f.unsubscribe(),l([d,f.getState(),f.getOriginalState()])}});o=()=>{u(),c()}})];i!=null&&a.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Rwe(t,Promise.race(a));return pm(t),l}finally{o()}};return(r,i)=>Pwe(n(r,i))},Nwe=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=ea(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Hs(21));return CW(o),{predicate:i,type:t,effect:o}},Dwe=ly(e=>{const{type:t,predicate:n,effect:r}=Nwe(e);return{id:Klt(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Hs(22))}}},{withTypes:()=>Dwe}),xJ=(e,t)=>{const{type:n,effect:r,predicate:i}=Nwe(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},tz=e=>{e.pending.forEach(t=>{t.abort(ez)})},cct=(e,t)=>()=>{for(const n of t.keys())tz(n);e.clear()},EJ=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},Lwe=ly(ea(`${MM}/add`),{withTypes:()=>Lwe}),uct=ea(`${MM}/removeAll`),$we=ly(ea(`${MM}/remove`),{withTypes:()=>$we}),dct=(...e)=>{console.error(`${MM}/error`,...e)},FS=(e={})=>{const t=new Map,n=new Map,r=h=>{const p=n.get(h)??0;n.set(h,p+1)},i=h=>{const p=n.get(h)??1;p===1?n.delete(h):n.set(h,p-1)},{extra:o,onError:s=dct}=e;CW(s);const a=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),p=>{h.unsubscribe(),p!=null&&p.cancelActive&&tz(h)}),l=h=>{const p=xJ(t,h)??Dwe(h);return a(p)};ly(l,{withTypes:()=>l});const c=h=>{const p=xJ(t,h);return p&&(p.unsubscribe(),h.cancelActive&&tz(p)),!!p};ly(c,{withTypes:()=>c});const u=async(h,p,m,g)=>{const v=new AbortController,b=lct(l,v.signal),w=[];try{h.pending.add(v),r(h),await Promise.resolve(h.effect(p,ly({},m,{getOriginalState:g,condition:(x,E)=>b(x,E).then(Boolean),take:b,delay:Mwe(v.signal),pause:HO(v.signal),extra:o,signal:v.signal,fork:act(v.signal,w),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((x,E,S)=>{x!==v&&(x.abort(ez),S.delete(x))})},cancel:()=>{v.abort(ez),h.pending.delete(v)},throwIfCancelled:()=>{pm(v.signal)}})))}catch(x){x instanceof RM||EJ(s,x,{raisedBy:"effect"})}finally{await Promise.all(w),v.abort(oct),i(h),h.pending.delete(v)}},d=cct(t,n);return{middleware:h=>p=>m=>{if(!fwe(m))return p(m);if(Lwe.match(m))return l(m.payload);if(uct.match(m)){d();return}if($we.match(m))return c(m.payload);let g=h.getState();const v=()=>{if(g===wJ)throw new Error(Hs(23));return g};let b;try{if(b=p(m),t.size>0){const w=h.getState(),x=Array.from(t.values());for(const E of x){let S=!1;try{S=E.predicate(m,w,g)}catch(_){S=!1,EJ(s,_,{raisedBy:"predicate"})}S&&u(E,m,h,v)}}}finally{g=wJ}return b},startListening:l,stopListening:c,clearListeners:d}};function Hs(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fct={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Fwe=So({name:"chartLayout",initialState:fct,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left
967=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:hct,setLayout:pct,setChartSize:mct,setScale:gct}=Fwe.actions,vct=Fwe.reducer;function Bwe(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Rt(e){return Number.isFinite(e)}function Zc(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function SJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SJ(Object(n),!0).forEach(function(r){yct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yct(e,t,n){return(t=bct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bct(e){var t=wct(e,"string");return typeof t=="symbol"?t:t+""}function wct(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zt(e,t,n){return Zn(e)||Zn(t)?n:Xc(t)?zm(e,t,n):typeof t=="function"?t(e):n}var xct=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:s,layout:a}=t;if((a==="vertical"||a==="horizontal"&&s==="middle")&&o!=="center"&&Re(e[o]))return zv(zv({},e),{},{[o]:e[o]+(r||0)});if((a==="horizontal"||a==="vertical"&&o==="center")&&s!=="middle"&&Re(e[s]))return zv(zv({},e),{},{[s]:e[s]+(i||0)})}return e},Kl=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",jwe=(e,t,n,r)=>{if(r)return e.map(a=>a.coordinate);var i,o,s=e.map(a=>(a.coordinate===t&&(i=!0),a.coordinate===n&&(o=!0),a.coordinate));return i||s.push(t),o||s.push(n),s},zwe=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:s,realScaleType:a,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:f,axisType:h}=e;if(!s)return null;var p=a==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,m=i==="category"&&s.bandwidth?s.bandwidth()/p:0;if(m=h==="angleAxis"&&o&&o.length>=2?Ai(o[0]-o[1])*2*m:m,d||f){var g=(d||f||[]).map((v,b)=>{var w=r?r.indexOf(v):v,x=s.map(w);return Rt(x)?{coordinate:x+m,value:v,offset:m,index:b}:null}).filter(ds);return g}return l&&c?c.map((v,b)=>{var w=s.map(v);return Rt(w)?{coordinate:w+m,value:v,index:b,offset:m}:null}).filter(ds):s.ticks&&u!=null?s.ticks(u).map((v,b)=>{var w=s.map(v);return Rt(w)?{coordinate:w+m,value:v,index:b,offset:m}:null}).filter(ds):s.domain().map((v,b)=>{var w=s.map(v);return Rt(w)?{coordinate:w+m,value:r?r[v]:v,index:b,offset:m}:null}).filter(ds)},Ect=(e,t)=>{if(!t||t.length!==2||!Re(t[0])||!Re(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Re(e[0])||e[0]<n)&&(i[0]=n),(!Re(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Sct=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,s=0,a=0;a<n;++a){var l=e[a],c=l==null?void 0:l[i];if(c!=null){var u=c[1],d=c[0],f=zl(u)?d:u;f>=0?(c[0]=o,o+=f,c[1]=o):(c[0]=s,s+=f,c[1]=s)}}}},_ct=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var o=0,s=0;s<n;++s){var a=e[s],l=a==null?void 0:a[i];if(l!=null){var c=zl(l[1])?l[0]:l[1];c>=0?(l[0]=o,o+=c,l[1]=o):(l[0]=0,l[1]=0)}}}},kct={sign:Sct,expand:aat,none:jm,silhouette:lat,wiggle:cat,positive:_ct},Cct=(e,t,n)=>{var r,i=(r=kct[n])!==null&&r!==void 0?r:jm,o=sat().keys(t).value((a,l)=>Number(Zt(a,l,0))).order(W3).offset(i),s=o(e);return s.forEach((a,l)=>{a.forEach((c,u)=>{var d=Zt(e[u],t[l],0);Array.isArray(d)&&d.length===2&&Re(d[0])&&Re(d[1])&&(c[0]=d[0],c[1]=d[1])})}),s};function Uwe(e){return e==null?void 0:String(e)}function KO(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Zn(i[t.dataKey])){var a=A0e(n,"value",i[t.dataKey]);if(a)return a.coordinate+r/2}return n!=null&&n[o]?n[o].coordinate+r/2:null}var l=Zt(i,Zn(s)?t.dataKey:s),c=t.scale.map(l);return Re(c)?c:null}var _J=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:s}=e;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var a=Zt(o,t.dataKey,t.scale.domain()[s]);if(Zn(a))return null;var l=t.scale.map(a);return Re(l)?l-i/2+r:null},Tct=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Act=e=>{var t=e.flat(2).filter(Re);return[Math.min(...t),Math.max(...t)]},Oct=e=>
967[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Pct=(e,t,n)=>{if(e!=null)return Oct(Object.keys(e).reduce((r,i)=>{var o=e[i];if(!o)return r;var{stackedData:s}=o,a=s.reduce((l,c)=>{var u=Bwe(c,t,n),d=Act(u);return!Rt(d[0])||!Rt(d[1])?l:[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]))},kJ=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,CJ=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bh=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=_M(t,u=>u.coordinate),o=1/0,s=1,a=i.length;s<a;s++){var l=i[s],c=i[s-1];o=Math.min(((l==null?void 0:l.coordinate)||0)-((c==null?void 0:c.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function TJ(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return zv(zv({},t),{},{dataKey:n,payload:r,value:i,name:o})}function zh(e,t){if(e)return String(e);if(typeof t=="string")return t}var Ict=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Rct=(e,t)=>t==="centric"?e.angle:e.radius,Od=e=>e.layout.width,Pd=e=>e.layout.height,Mct=e=>e.layout.scale,Vwe=e=>e.layout.margin,NM=q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),DM=q(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Wwe="data-recharts-item-index",Hwe="data-recharts-item-id",BS=60;function AJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AJ(Object(n),!0).forEach(function(r){Nct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nct(e,t,n){return(t=Dct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dct(e){var t=Lct(e,"string");return typeof t=="symbol"?t:t+""}function Lct(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ct=e=>e.brush.height;function Fct(e){var t=DM(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:BS;return n+i}return n},0)}function Bct(e){var t=DM(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:BS;return n+i}return n},0)}function jct(e){var t=NM(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function zct(e){var t=NM(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var gi=q([Od,Pd,Vwe,$ct,Fct,Bct,jct,zct,lwe,plt],(e,t,n,r,i,o,s,a,l,c)=>{var u={left:(n.left||0)+i,right:(n.right||0)+o},d={top:(n.top||0)+s,bottom:(n.bottom||0)+a},f=Yk(Yk({},d),u),h=f.bottom;f.bottom+=r,f=xct(f,l,c);var p=e-f.left-f.right,m=t-f.top-f.bottom;return Yk(Yk({brushBottom:h},f),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Uct=q(gi,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),TW=q(Od,Pd,(e,t)=>({x:0,y:0,width:e,height:t})),Vct=y.createContext(null),Ni=()=>y.useContext(Vct)!=null,LM=e=>e.brush,$M=q([LM,gi,Vwe],(e,t,n)=>({height:e.height,x:Re(e.x)?e.x:t.left,y:Re(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:Re(e.width)?e.width:t.width})),Kwe={},qwe={},Gwe={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let s,a=null;const l=o!=null&&o.includes("leading"),c=o==null||o.includes("trailing"),u=()=>{a!==null&&(n.apply(s,a),s=void 0,a=null)},d=()=>{c&&u(),m()};let f=null;const h=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,d()},r)},p=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{p(),s=void 0,a=null},g=()=>{u()},v=function(...b){if(i!=null&&i.aborted)return;s=this,a=b;const w=f==null;h(),l&&w&&u()};return v.schedule=h,v.cancel=m,v.flush=g,i==null||i.addEventListener("abort",m,{once:!0}),v}e.debounce=t})(Gwe);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gwe;function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:s=!1,trailing:a=!0,maxWait:l}=o,c=Array(2);s&&(c[0]="leading"),a&&(c[1]="trailing");let u,d=null;const f=t.debounce(function(...m){u=r.apply(this,m),d=null},i,{edges:c}),h=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=r.apply(this,m),d=Date.now(),f.cancel(),f.schedule(),u):(f.apply(this,m),u)},p=()=>(f.flush(),u);return h.cancel=f.cancel,h.flush=p,h}e.debounce=n})(qwe);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qwe;function n(r,i=0,o={}){const{leading:s=!0,trailing:a=!0}=o;return t.debounce(r,i,{leading:s,maxWait:i,trailing:a})}e.throttle=n})(Kwe);var Wct=Kwe.throttle;const Hct=yr(Wct);var qO=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;console.warn(n.replace(/%s/g,()=>i[s++]))}},Ic={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Ywe=(e,t,n)=>{var{width:r=Ic.width,height:i=Ic.height,aspect:o,maxHeight:s}=n,a=Um(r)?e:Number(r),l=Um(i)?t:Number(i);return o&&o>0&&(a?l=a/o:l&&(a=l*o),s&&l!=null&&l>s&&(l=s)),{calculatedWidth:a,calculatedHeight:l}},Kct={width:0,height:0,overflow:"visible"},qct={width:0,overflowX:"visible"},Gct={height:0,overflowY:"visible"},Yct={},Xct=e=>{var{width:t,height:n}=e,r=Um(t),i=Um(n);return r&&i?Kct:r?qct:i?Gct:Yct};function Zct(e){var{width:t,height:n,aspect:r}=e,i=t,o=n;return i===void 0&&o===void 0?(i=Ic.width,o=Ic.height):i===void 0?i=r&&r>0?void 0:Ic.width:o===void 0&&(o=r&&r>0?void 0:Ic.height),{width:i,height:o}}function nz(){return nz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nz.apply(null,arguments)}function OJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
967t%2?OJ(Object(n),!0).forEach(function(r){Qct(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qct(e,t,n){return(t=Jct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jct(e){var t=eut(e,"string");return typeof t=="symbol"?t:t+""}function eut(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xwe=y.createContext(Ic.initialDimension);function tut(e){return Zc(e.width)&&Zc(e.height)}function Zwe(e){var{children:t,width:n,height:r}=e,i=y.useMemo(()=>({width:n,height:r}),[n,r]);return tut(i)?y.createElement(Xwe.Provider,{value:i},t):null}var AW=()=>y.useContext(Xwe),nut=y.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=Ic.initialDimension,width:i,height:o,minWidth:s=Ic.minWidth,minHeight:a,maxHeight:l,children:c,debounce:u=Ic.debounce,id:d,className:f,onResize:h,style:p={}}=e,m=y.useRef(null),g=y.useRef();g.current=h,y.useImperativeHandle(t,()=>m.current);var[v,b]=y.useState({containerWidth:r.width,containerHeight:r.height}),w=y.useCallback((k,C)=>{b(T=>{var A=Math.round(k),O=Math.round(C);return T.containerWidth===A&&T.containerHeight===O?T:{containerWidth:A,containerHeight:O}})},[]);y.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return jh;var k=O=>{var R,I=O[0];if(I!=null){var{width:F,height:N}=I.contentRect;w(F,N),(R=g.current)===null||R===void 0||R.call(g,F,N)}};u>0&&(k=Hct(k,u,{trailing:!0,leading:!1}));var C=new ResizeObserver(k),{width:T,height:A}=m.current.getBoundingClientRect();return w(T,A),C.observe(m.current),()=>{C.disconnect()}},[w,u]);var{containerWidth:x,containerHeight:E}=v;qO(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:S,calculatedHeight:_}=Ywe(x,E,{width:i,height:o,aspect:n,maxHeight:l});return qO(S!=null&&S>0||_!=null&&_>0,`The width(%s) and height(%s) of chart should be greater than 0, 968 please check the style of container, or the props width(%s) and height(%s), 969 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 970 height and width.`,S,_,i,o,s,a,n),y.createElement("div",{id:d?"".concat(d):void 0,className:Wt("recharts-responsive-container",f),style:PJ(PJ({},p),{},{width:i,height:o,minWidth:s,minHeight:a,maxHeight:l}),ref:m},y.createElement("div",{style:Xct({width:i,height:o})},y.createElement(Zwe,{width:S,height:_},c)))}),Vnn=y.forwardRef((e,t)=>{var n=AW();if(Zc(n.width)&&Zc(n.height))return e.children;var{width:r,height:i}=Zct({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:s}=Ywe(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Re(o)&&Re(s)?y.createElement(Zwe,{width:o,height:s},e.children):y.createElement(nut,nz({},e,{width:r,height:i,ref:t}))});function OW(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var FM=()=>{var e,t=Ni(),n=Be(Uct),r=Be($M),i=(e=Be(LM))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},rut={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Qwe=()=>{var e;return(e=Be(gi))!==null&&e!==void 0?e:rut},PW=()=>Be(Od),IW=()=>Be(Pd),iut=()=>Be(e=>e.layout.margin),Ut=e=>e.layout.layoutType,Uh=()=>Be(Ut),RW=()=>{var e=Uh();if(e==="horizontal"||e==="vertical")return e},Jwe=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},out=()=>{var e=Uh();return e!==void 0},jS=e=>{var t=_n(),n=Ni(),{width:r,height:i}=e,o=AW(),s=r,a=i;return o&&(s=o.width>0?o.width:r,a=o.height>0?o.height:i),y.useEffect(()=>{!n&&Zc(s)&&Zc(a)&&t(mct({width:s,height:a}))},[t,n,s,a]),null},exe=Symbol.for("immer-nothing"),IJ=Symbol.for("immer-draftable"),ta=Symbol.for("immer-state");function vl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s1=Object.getPrototypeOf;function ob(e){return!!e&&!!e[ta]}function Wm(e){var t;return e?txe(e)||Array.isArray(e)||!!e[IJ]||!!((t=e.constructor)!=null&&t[IJ])||zS(e)||jM(e):!1}var sut=Object.prototype.constructor.toString(),RJ=new WeakMap;function txe(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;
970if(typeof n!="function")return!1;let r=RJ.get(n);return r===void 0&&(r=Function.toString.call(n),RJ.set(n,r)),r===sut}function GO(e,t,n=!0){BM(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function BM(e){const t=e[ta];return t?t.type_:Array.isArray(e)?1:zS(e)?2:jM(e)?3:0}function rz(e,t){return BM(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nxe(e,t,n){const r=BM(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function aut(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function zS(e){return e instanceof Map}function jM(e){return e instanceof Set}function Tp(e){return e.copy_||e.base_}function iz(e,t){if(zS(e))return new Map(e);if(jM(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=txe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ta];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(s1(e),r)}else{const r=s1(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function MW(e,t=!1){return zM(e)||ob(e)||!Wm(e)||(BM(e)>1&&Object.defineProperties(e,{set:Xk,add:Xk,clear:Xk,delete:Xk}),Object.freeze(e),t&&Object.values(e).forEach(n=>MW(n,!0))),e}function lut(){vl(2)}var Xk={value:lut};function zM(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var cut={};function Hm(e){const t=cut[e];return t||vl(0,e),t}var a1;function rxe(){return a1}function uut(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function MJ(e,t){t&&(Hm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oz(e){sz(e),e.drafts_.forEach(dut),e.drafts_=null}function sz(e){e===a1&&(a1=e.parent_)}function NJ(e){return a1=uut(a1,e)}function dut(e){const t=e[ta];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function DJ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ta].modified_&&(oz(t),vl(4)),Wm(e)&&(e=YO(t,e),t.parent_||XO(t,e)),t.patches_&&Hm("Patches").generateReplacementPatches_(n[ta].base_,e,t.patches_,t.inversePatches_)):e=YO(t,n,[]),oz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==exe?e:void 0}function YO(e,t,n){if(zM(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[ta];if(!i)return GO(t,(o,s)=>LJ(e,i,t,o,s,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return XO(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let s=o,a=!1;i.type_===3&&(s=new Set(o),o.clear(),a=!0),GO(s,(l,c)=>LJ(e,i,o,l,c,n,a),r),XO(e,o,!1),n&&e.patches_&&Hm("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function LJ(e,t,n,r,i,o,s){if(i==null||typeof i!="object"&&!s)return;const a=zM(i);if(!(a&&!s)){if(ob(i)){const l=o&&t&&t.type_!==3&&!rz(t.assigned_,r)?o.concat(r):void 0,c=YO(e,i,l);if(nxe(n,r,c),ob(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Wm(i)&&!a){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&a)return;YO(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(zS(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&XO(e,i)}}}function XO(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&MW(t,n)}function fut(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:rxe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=NW;n&&(i=[r],o=l1);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var NW={get(e,t){if(t===ta)return e;const n=Tp(e);if(!rz(n,t))return hut(e,n,t);const r=n[t];return e.finalized_||!Wm(r)?r:r===VL(e.base_,t)?(WL(e),e.copy_[t]=lz(r,e)):r},has(e,t){return t in Tp(e)},ownKeys(e){return Reflect.ownKeys(Tp(e))},set(e,t,n){const r=ixe(Tp(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=VL(Tp(e),t),o=i==null?void 0:i[ta];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(aut(n,i)&&(n!==void 0||rz(e.base_,t)))return!0;WL(e),az(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return VL(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,WL(e),az(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Tp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){vl(11)},getPrototypeOf(e){return s1(e.base_)},setPrototypeOf(){vl(12)}},l1={};GO(NW,(e,t)=>{l1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});l1.deleteProperty=function(e,t){return l1.set.call(this,e,t,void 0)};
970l1.set=function(e,t,n){return NW.set.call(this,e[0],t,n,e[0])};function VL(e,t){const n=e[ta];return(n?Tp(n):e)[t]}function hut(e,t,n){var i;const r=ixe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ixe(e,t){if(!(t in e))return;let n=s1(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=s1(n)}}function az(e){e.modified_||(e.modified_=!0,e.parent_&&az(e.parent_))}function WL(e){e.copy_||(e.copy_=iz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var put=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&vl(6),r!==void 0&&typeof r!="function"&&vl(7);let i;if(Wm(t)){const o=NJ(this),s=lz(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?oz(o):sz(o)}return MJ(o,r),DJ(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===exe&&(i=void 0),this.autoFreeze_&&MW(i,!0),r){const o=[],s=[];Hm("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else vl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Wm(e)||vl(8),ob(e)&&(e=mut(e));const t=NJ(this),n=lz(e,void 0);return n[ta].isManual_=!0,sz(t),n}finishDraft(e,t){const n=e&&e[ta];(!n||!n.isManual_)&&vl(9);const{scope_:r}=n;return MJ(r,t),DJ(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Hm("Patches").applyPatches_;return ob(e)?r(e,t):this.produce(e,i=>r(i,t))}};function lz(e,t){const n=zS(e)?Hm("MapSet").proxyMap_(e,t):jM(e)?Hm("MapSet").proxySet_(e,t):fut(e,t);return(t?t.scope_:rxe()).drafts_.push(n),n}function mut(e){return ob(e)||vl(10,e),oxe(e)}function oxe(e){if(!Wm(e)||zM(e))return e;const t=e[ta];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=iz(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=iz(e,!0);return GO(n,(i,o)=>{nxe(n,i,oxe(o))},r),t&&(t.finalized_=!1),n}var gut=new put;gut.produce;var vut={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},sxe=So({name:"legend",initialState:vut,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Hn()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ia(e).payload.indexOf(n);i>-1&&(e.payload[i]=r)},prepare:Hn()},removeLegendPayload:{reducer(e,t){var n=Ia(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:Hn()}}}),{setLegendSize:$J,setLegendSettings:yut,addLegendPayload:axe,replaceLegendPayload:lxe,removeLegendPayload:cxe}=sxe.actions,but=sxe.reducer,wut={};/** 971 * @license React 972 * use-sync-external-store-with-selector.production.js 973 * 974 * Copyright (c) Meta Platforms, Inc. and affiliates. 975 * 976 * This source code is licensed under the MIT license found in the 977 * LICENSE file in the root directory of this source tree. 978 */var US=y;function xut(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eut=typeof Object.is=="function"?Object.is:xut,Sut=US.useSyncExternalStore,_ut=US.useRef,kut=US.useEffect,Cut=US.useMemo,Tut=US.useDebugValue;wut.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=_ut(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Cut(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,Eut(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?(u=h,p):(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=Sut(e,o[0],o[1]);return kut(function(){s.hasValue=!0,s.value=a},[a]),Tut(a),a};function Aut(e){e()}function Out(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Aut(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var FJ={notify(){},get:()=>[]};function Put(e,t){let n,r=FJ,i=0,o=!1;function s(m){u();const g=r.subscribe(m);let v=!1;return()=>{v||(v=!0,g(),d())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function u(){i++,n||(n=e.subscribe(l),r=Out())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=FJ)}function f(){o||(o=!0,u())}function h(){o&&(o=!1,d())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>r};return p}var Iut=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rut=Iut(),Mut=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Nut=Mut(),Dut=()=>Rut||Nut?y.useLayoutEffect:y.useEffect,Lut=Dut();function BJ(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function $ut(e,t){if(BJ(e,t))return!0;
978if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!BJ(e[n[i]],t[n[i]]))return!1;return!0}var HL=Symbol.for("react-redux-context"),KL=typeof globalThis<"u"?globalThis:{};function Fut(){if(!y.createContext)return{};const e=KL[HL]??(KL[HL]=new Map);let t=e.get(y.createContext);return t||(t=y.createContext(null),e.set(y.createContext,t)),t}var But=Fut();function jut(e){const{children:t,context:n,serverState:r,store:i}=e,o=y.useMemo(()=>{const l=Put(i);return{store:i,subscription:l,getServerState:r?()=>r:void 0}},[i,r]),s=y.useMemo(()=>i.getState(),[i]);Lut(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,s]);const a=n||But;return y.createElement(a.Provider,{value:o},t)}var zut=jut,Uut=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function Vut(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Sg(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Uut.has(r)){if(e[r]==null&&t[r]==null)continue;if(!$ut(e[r],t[r]))return!1}else if(!Vut(e[r],t[r]))return!1;return!0}var Wut=["contextPayload"];function cz(){return cz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cz.apply(null,arguments)}function jJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jJ(Object(n),!0).forEach(function(r){Hut(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hut(e,t,n){return(t=Kut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kut(e){var t=qut(e,"string");return typeof t=="symbol"?t:t+""}function qut(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gut(e,t){if(e==null)return{};var n,r,i=Yut(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Yut(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Xut(e){return e.value}function Zut(e){var{contextPayload:t}=e,n=Gut(e,Wut),r=X0e(t,e.payloadUniqBy,Xut),i=sb(sb({},n),{},{payload:r});return y.isValidElement(e.content)?y.cloneElement(e.content,i):typeof e.content=="function"?y.createElement(e.content,i):y.createElement(Dat,i)}function Qut(e,t,n,r,i,o){var{layout:s,align:a,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(a==="center"&&s==="vertical"?c={left:((r||0)-o.width)/2}:c=a==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((i||0)-o.height)/2}:u=l==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),sb(sb({},c),u)}function Jut(e){var t=_n();return y.useEffect(()=>{t(yut(e))},[t,e]),null}function edt(e){var t=_n();return y.useEffect(()=>(t($J(e)),()=>{t($J({width:0,height:0}))}),[t,e]),null}function tdt(e,t,n,r){return e==="vertical"&&t!=null?{height:t}
978:e==="horizontal"?{width:n||r}:null}var ndt={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function rdt(e){var t=Vr(e,ndt),n=vlt(),r=Pst(),i=iut(),{width:o,height:s,wrapperStyle:a,portal:l}=t,[c,u]=cwe([n]),d=PW(),f=IW();if(d==null||f==null)return null;var h=d-((i==null?void 0:i.left)||0)-((i==null?void 0:i.right)||0),p=tdt(t.layout,s,o,h),m=l?a:sb(sb({position:"absolute",width:(p==null?void 0:p.width)||o||"auto",height:(p==null?void 0:p.height)||s||"auto"},Qut(a,t,i,d,f,c)),a),g=l??r;if(g==null||n==null)return null;var v=y.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},y.createElement(Jut,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&y.createElement(edt,{width:c.width,height:c.height}),y.createElement(Zut,cz({},t,p,{margin:i,chartWidth:d,chartHeight:f,contextPayload:n})));return pr.createPortal(v,g)}var idt=y.memo(rdt,Sg);idt.displayName="Legend";function uz(){return uz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uz.apply(null,arguments)}function zJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zJ(Object(n),!0).forEach(function(r){odt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}
978function odt(e,t,n){return(t=sdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sdt(e){var t=adt(e,"string");return typeof t=="symbol"?t:t+""}function adt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ldt(e){return Array.isArray(e)&&Xc(e[0])&&Xc(e[1])?e.join(" ~ "):e}var Yg={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function cdt(e,t){return t==null?e:_M(e,t)}var udt=e=>{var{separator:t=Yg.separator,contentStyle:n,itemStyle:r,labelStyle:i=Yg.labelStyle,payload:o,formatter:s,itemSorter:a,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:f=Yg.accessibilityLayer}=e,h=()=>{if(o&&o.length){var E={padding:0,margin:0},S=cdt(o,a),_=S.map((k,C)=>{if(!k||k.type==="none")return null;var T=k.formatter||s||ldt,{value:A,name:O}=k,R=A,I=O;if(T){var F=T(A,O,k,C,o);if(Array.isArray(F))[R,I]=F;else if(F!=null)R=F;else return null}var N=lw(lw({},Yg.itemStyle),{},{color:k.color||Yg.itemStyle.color},r);return y.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:N},Xc(I)?y.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Xc(I)?y.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,y.createElement("span",{className:"recharts-tooltip-item-value"},R),y.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return y.createElement("ul",{className:"recharts-tooltip-item-list",style:E},_)}return null},p=lw(lw({},Yg.contentStyle),n),m=lw({margin:0},i),g=!Zn(u),v=g?u:"",b=Wt("recharts-default-tooltip",l),w=Wt("recharts-tooltip-label",c);g&&d&&o!==void 0&&o!==null&&(v=d(u,o));var x=f?{role:"status","aria-live":"assertive"}:{};return y.createElement("div",uz({className:b,style:p},x),y.createElement("p",{className:w,style:m},y.isValidElement(v)?v:"".concat(v)),h())},cw="recharts-tooltip-wrapper",ddt={visibility:"hidden"};function fdt(e){var{coordinate:t,translateX:n,translateY:r}=e;return Wt(cw,{["".concat(cw,"-right")]:Re(n)&&t&&Re(t.x)&&n>=t.x,["".concat(cw,"-left")]:Re(n)&&t&&Re(t.x)&&n<t.x,["".concat(cw,"-bottom")]:Re(r)&&t&&Re(t.y)&&r>=t.y,["".concat(cw,"-top")]:Re(r)&&t&&Re(t.y)&&r<t.y})}function UJ(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:o,reverseDirection:s,tooltipDimension:a,viewBox:l,viewBoxDimension:c}=e;if(o&&Re(o[r]))return o[r];var u=n[r]-a-(i>0?i:0),d=n[r]+i;if(t[r])return s[r]?u:d;var f=l[r];if(f==null)return 0;if(s[r]){var h=u,p=f;return h<p?Math.max(d,f):Math.max(u,f)}if(c==null)return 0;var m=d+a,g=f+c;return m>g?Math.max(u,f):Math.max(d,f)}function hdt(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function pdt(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:o,reverseDirection:s,tooltipBox:a,useTranslate3d:l,viewBox:c}=e,u,d,f;return a.height>0&&a.width>0&&n?(d=UJ({allowEscapeViewBox:t,coordinate:n,key:"x",offset:i,position:o,reverseDirection:s,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),f=UJ({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:o,reverseDirection:s,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=hdt({translateX:d,translateY:f,useTranslate3d:l})):u=ddt,{cssProperties:u,cssClasses:fdt({translateX:d,translateY:f,coordinate:n})}}var mdt=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),VS={isSsr:mdt()};function uxe(){var[e,t]=y.useState(()=>VS.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return y.useEffect(()=>{if(window.matchMedia){var n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(n.matches)};return n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}}},[]),e}function VJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
978t%2?VJ(Object(n),!0).forEach(function(r){gdt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gdt(e,t,n){return(t=vdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vdt(e){var t=ydt(e,"string");return typeof t=="symbol"?t:t+""}function ydt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bdt(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function wdt(e){var t,n,r,i,o,s,a=uxe(),[l,c]=y.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));y.useEffect(()=>{var p=m=>{if(m.key==="Escape"){var g,v,b,w;c({dismissed:!0,dismissedAtCoordinate:{x:(g=(v=e.coordinate)===null||v===void 0?void 0:v.x)!==null&&g!==void 0?g:0,y:(b=(w=e.coordinate)===null||w===void 0?void 0:w.y)!==null&&b!==void 0?b:0}})}};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),l.dismissed&&(((r=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)!==l.dismissedAtCoordinate.x||((o=(s=e.coordinate)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)!==l.dismissedAtCoordinate.y)&&c(Xg(Xg({},l),{},{dismissed:!1}));var{cssClasses:u,cssProperties:d}=pdt({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),f=e.hasPortalFromProps?{}:Xg(Xg({transition:bdt({prefersReducedMotion:a,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},d),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Xg(Xg({},f),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return y.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:h,ref:e.innerRef},e.children)}var xdt=y.memo(wdt),dxe=()=>{var e;return(e=Be(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function dz(){return dz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dz.apply(null,arguments)}function WJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WJ(Object(n),!0).forEach(function(r){Edt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Edt(e,t,n){return(t=Sdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sdt(e){var t=_dt(e,"string");return typeof t=="symbol"?t:t+""}function _dt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KJ={curveBasisClosed:Yst,curveBasisOpen:Xst,curveBasis:Gst,curveBumpX:Nst,curveBumpY:Dst,curveLinearClosed:Zst,curveLinear:gM,curveMonotoneX:Qst,curveMonotoneY:Jst,curveNatural:eat,curveStep:tat,curveStepAfter:rat,curveStepBefore:nat},ZO=e=>Rt(e.x)&&Rt(e.y),qJ=e=>e.base!=null&&ZO(e.base)&&ZO(e),uw=e=>e.x,dw=e=>e.y,kdt=(e,t)=>
978{if(typeof e=="function")return e;var n="curve".concat(DS(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=KJ["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return KJ[n]||gM},GJ={connectNulls:!1,type:"linear"},Cdt=e=>{var{type:t=GJ.type,points:n=[],baseLine:r,layout:i,connectNulls:o=GJ.connectNulls}=e,s=kdt(t,i),a=o?n.filter(ZO):n;if(Array.isArray(r)){var l,c=n.map((p,m)=>HJ(HJ({},p),{},{base:r[m]}));i==="vertical"?l=Vk().y(dw).x1(uw).x0(p=>p.base.x):l=Vk().x(uw).y1(dw).y0(p=>p.base.y);var u=l.defined(qJ).curve(s),d=o?c.filter(qJ):c;return u(d)}var f;i==="vertical"&&Re(r)?f=Vk().y(dw).x1(uw).x0(r):Re(r)?f=Vk().x(uw).y1(dw).y0(r):f=p0e().x(uw).y(dw);var h=f.defined(ZO).curve(s);return h(a)},cy=e=>{var{className:t,points:n,path:r,pathRef:i}=e,o=Uh();if((!n||!n.length)&&!r)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},a=n&&n.length?Cdt(s):r;return y.createElement("path",dz({},Ho(e),lW(e),{className:Wt("recharts-curve",t),d:a===null?void 0:a,ref:i}))},Tdt=["x","y","top","left","width","height","className"];function fz(){return fz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fz.apply(null,arguments)}function YJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Adt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YJ(Object(n),!0).forEach(function(r){Odt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Odt(e,t,n){return(t=Pdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pdt(e){var t=Idt(e,"string");return typeof t=="symbol"?t:t+""}function Idt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rdt(e,t){if(e==null)return{};var n,r,i=Mdt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mdt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ndt=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),Ddt=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:s=0,className:a}=e,l=Rdt(e,Tdt),c=Adt({x:t,y:n,top:r,left:i,width:o,height:s},l);return!Re(t)||!Re(n)||!Re(o)||!Re(s)||!Re(r)||!Re(i)?null:y.createElement("path",fz({},xo(c),{className:Wt("recharts-cross",a),d:Ndt(t,n,o,s,r,i)}))};function Ldt(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function XJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XJ(Object(n),!0).forEach(function(r){$dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $dt(e,t,n){return(t=Fdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fdt(e){var t=Bdt(e,"string");return typeof t=="symbol"?t:t+""}function Bdt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jdt=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),fxe=(e,t,n)=>e.map(r=>"".concat(jdt(r)," ").concat(t,"ms ").concat(n)).join(","),zdt=(e,t)=>
978[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),c1=(e,t)=>Object.keys(t).reduce((n,r)=>ZJ(ZJ({},n),{},{[r]:e(r,t[r])}),{});function QJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QJ(Object(n),!0).forEach(function(r){Udt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QJ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Udt(e,t,n){return(t=Vdt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vdt(e){var t=Wdt(e,"string");return typeof t=="symbol"?t:t+""}function Wdt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}
978var QO=(e,t,n)=>e+(t-e)*n,hz=e=>{var{from:t,to:n}=e;return t!==n},hxe=(e,t,n)=>{var r=c1((i,o)=>{if(hz(o)){var[s,a]=e(o.from,o.to,o.velocity);return ci(ci({},o),{},{from:s,velocity:a})}return o},t);return n<1?c1((i,o)=>hz(o)&&r[i]!=null?ci(ci({},o),{},{velocity:QO(o.velocity,r[i].velocity,n),from:QO(o.from,r[i].from,n)}):o,t):hxe(e,r,n-1)};function Hdt(e,t,n,r,i,o){var s,a=r.reduce((f,h)=>ci(ci({},f),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>c1((f,h)=>h.from,a),c=()=>!Object.values(a).filter(hz).length,u=null,d=f=>{s||(s=f);var h=f-s,p=h/n.dt;a=hxe(n,a,p),i(ci(ci(ci({},e),t),l())),s=f,c()||(u=o.setTimeout(d))};return()=>(u=o.setTimeout(d),()=>{var f;(f=u)===null||f===void 0||f()})}function Kdt(e,t,n,r,i,o,s){var a=null,l=i.reduce((d,f)=>{var h=e[f],p=t[f];return h==null||p==null?d:ci(ci({},d),{},{[f]:[h,p]})},{}),c,u=d=>{c||(c=d);var f=(d-c)/r,h=c1((m,g)=>QO(...g,n(f)),l);if(o(ci(ci(ci({},e),t),h)),f<1)a=s.setTimeout(u);else{var p=c1((m,g)=>QO(...g,n(1)),l);o(ci(ci(ci({},e),t),p))}};return()=>(a=s.setTimeout(u),()=>{var d;(d=a)===null||d===void 0||d()})}const qdt=(e,t,n,r,i,o)=>{var s=zdt(e,t);return n==null?()=>(i(ci(ci({},e),t)),()=>{}):n.isStepper===!0?Hdt(e,t,n,s,i,o):Kdt(e,t,n,r,s,i,o)};var JO=1e-4,pxe=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],mxe=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),JJ=(e,t)=>n=>{var r=pxe(e,t);return mxe(r,n)},Gdt=(e,t)=>n=>{var r=pxe(e,t),i=[...r.map((o,s)=>o*s).slice(1),0];return mxe(i,n)},Ydt=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(o=>parseFloat(o));return[i[0],i[1],i[2],i[3]]},Xdt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=Ydt(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},Zdt=(e,t,n,r)=>{var i=JJ(e,n),o=JJ(t,r),s=Gdt(e,n),a=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,f=0;f<8;++f){var h=i(d)-u,p=s(d);if(Math.abs(h-u)<JO||p<JO)return o(d);d=a(d-h/p)}return o(d)};return l.isStepper=!1,l},eee=function(){return Zdt(...Xdt(...arguments))},Qdt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(s,a,l)=>{var c=-(s-a)*n,u=l*r,d=l+(c-u)*i/1e3,f=l*i/1e3+s;return Math.abs(f-a)<JO&&Math.abs(d)<JO?[a,0]:[f,d]};return o.isStepper=!0,o.dt=i,o},Jdt=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return eee(e);case"spring":return Qdt();default:if(e.split("(")[0]==="cubic-bezier")return eee(e)}return typeof e=="function"?e:null};function eft(e){var t,n=()=>null,r=!1,i=null,o=s=>{if(!r){if(Array.isArray(s)){if(!s.length)return;var a=s,[l,...c]=a;if(typeof l=="number"){i=e.setTimeout(o.bind(null,c),l);return}o(l),i=e.setTimeout(o.bind(null,c));return}typeof s=="string"&&(t=s,n(t)),typeof s=="object"&&(t=s,n(t)),typeof s=="function"&&s()}};return{stop:()=>{r=!0},start:s=>{r=!1,i&&(i(),i=null),o(s)},subscribe:s=>(n=s,()=>{n=()=>null}),getTimeoutController:()=>e}}class tft{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=s=>{s-r>=n?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{i!=null&&cancelAnimationFrame(i)}}}function nft(){return eft(new tft)}var rft=y.createContext(nft);function ift(e,t){var n=y.useContext(rft);return y.useMemo(()=>t??n(e),[e,t,n])}var oft={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},tee={t:0},qL={t:1};function s0(e){var t=Vr(e,oft),{isActive:n,canBegin:r,duration:i,easing:o,begin:s,onAnimationEnd:a,onAnimationStart:l,children:c}=t,u=uxe(),d=n==="auto"?!VS.isSsr&&!u:n,f=ift(t.animationId,t.animationManager),[h,p]=y.useState(d?tee:qL),m=y.useRef(null);return y.useEffect(()=>{d||p(qL)},[d]),y.useEffect(()=>{if(!d||!r)return jh;var g=qdt(tee,qL,Jdt(o),i,p,f.getTimeoutController()),v=()=>{m.current=g()};return f.start([l,s,v,i,a]),()=>{f.stop(),m.current&&m.current(),a()}},[d,r,i,o,s,l,a,f]),c(h.t)}function a0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=y.useRef(n1(t)),r=y.useRef(e);return r.current!==e&&(n.current=n1(t),r.current=e),n.current}
978var sft=["radius"],aft=["radius"],nee,ree,iee,oee,see,aee,lee,cee,uee,dee;function fee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fee(Object(n),!0).forEach(function(r){lft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fee(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lft(e,t,n){return(t=cft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cft(e){var t=uft(e,"string");return typeof t=="symbol"?t:t+""}function uft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eP(){return eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eP.apply(null,arguments)}function pee(e,t){if(e==null)return{};var n,r,i=dft(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dft(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function nc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var mee=(e,t,n,r,i)=>{var o=Lf(n),s=Lf(r),a=Math.min(Math.abs(o)/2,Math.abs(s)/2),l=s>=0?1:-1,c=o>=0?1:-1,u=s>=0&&o>=0||s<0&&o<0?1:0,d;if(a>0&&Array.isArray(i)){for(var f=[0,0,0,0],h=0,p=4;h<p;h++){var m,g=(m=i[h])!==null&&m!==void 0?m:0;f[h]=g>a?a:g}d=Tr(nee||(nee=nc(["M",",",""])),e,t+l*f[0]),f[0]>0&&(d+=Tr(ree||(ree=nc(["A ",",",",0,0,",",",",",""])),f[0],f[0],u,e+c*f[0],t)),d+=Tr(iee||(iee=nc(["L ",",",""])),e+n-c*f[1],t),f[1]>0&&(d+=Tr(oee||(oee=nc(["A ",",",",0,0,",`, 979 `,",",""])),f[1],f[1],u,e+n,t+l*f[1])),d+=Tr(see||(see=nc(["L ",",",""])),e+n,t+r-l*f[2]),f[2]>0&&(d+=Tr(aee||(aee=nc(["A ",",",",0,0,",`, 980 `,",",""])),f[2],f[2],u,e+n-c*f[2],t+r)),d+=Tr(lee||(lee=nc(["L ",",",""])),e+c*f[3],t+r),f[3]>0&&(d+=Tr(cee||(cee=nc(["A ",",",",0,0,",`, 981 `,",",""])),f[3],f[3],u,e,t+r-l*f[3])),d+="Z"}else if(a>0&&i===+i&&i>0){var v=Math.min(a,i);d=Tr(uee||(uee=nc(["M ",",",` 982 A `,",",",0,0,",",",",",` 983 L `,",",` 984 A `,",",",0,0,",",",",",` 985 L `,",",` 986 A `,",",",0,0,",",",",",` 987 L `,",",` 988 A `,",",",0,0,",",",","," Z"])),e,t+l*v,v,v,u,e+c*v,t,e+n-c*v,t,v,v,u,e+n,t+l*v,e+n,t+r-l*v,v,v,u,e+n-c*v,t+r,e+c*v,t+r,v,v,u,e,t+r-l*v)}else d=Tr(dee||(dee=nc(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return d},gee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gxe=e=>{var t=Vr(e,gee),n=y.useRef(null),[r,i]=y.useState(-1);y.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var B=n.current.getTotalLength();B&&i(B)}catch{}},[]);var{x:o,y:s,width:a,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:h,isAnimationActive:p,isUpdateAnimationActive:m}=t,g=y.useRef(a),v=y.useRef(l),b=y.useRef(o),w=y.useRef(s),x=y.useMemo(()=>({x:o,y:s,width:a,height:l,radius:c}),[o,s,a,l,c]),E=a0(x,"rectangle-");if(o!==+o||s!==+s||a!==+a||l!==+l||a===0||l===0)return null;var S=Wt("recharts-rectangle",u);if(!m){var _=xo(t),{radius:k}=_,C=pee(_,sft);return y.createElement("path",eP({},C,{x:Lf(o),y:Lf(s),width:Lf(a),height:Lf(l),radius:typeof c=="number"?c:void 0,className:S,d:mee(o,s,a,l,c)}))}var T=g.current,A=v.current,O=b.current,R=w.current,I="0px ".concat(r===-1?1:r,"px"),F="".concat(r,"px ").concat(r,"px"),N=fxe(["strokeDasharray"],f,typeof d=="str
988ing"?d:gee.animationEasing);return y.createElement(s0,{animationId:E,key:E,canBegin:r>0,duration:f,easing:d,isActive:m,begin:h},B=>{var M=un(T,a,B),L=un(A,l,B),P=un(O,o,B),G=un(R,s,B);n.current&&(g.current=M,v.current=L,b.current=P,w.current=G);var Z;p?B>0?Z={transition:N,strokeDasharray:F}:Z={strokeDasharray:I}:Z={strokeDasharray:F};var z=xo(t),{radius:oe}=z,le=pee(z,aft);return y.createElement("path",eP({},le,{radius:typeof c=="number"?c:void 0,className:S,d:mee(P,G,M,L,c),ref:n,style:hee(hee({},Z),t.style)}))})};function vee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vee(Object(n),!0).forEach(function(r){fft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vee(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fft(e,t,n){return(t=hft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hft(e){var t=pft(e,"string");return typeof t=="symbol"?t:t+""}function pft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tP=Math.PI/180,mft=e=>e*180/Math.PI,ei=(e,t,n,r)=>({x:e+Math.cos(-tP*r)*n,y:t+Math.sin(-tP*r)*n}),vxe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},gft=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},vft=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,s=gft({x:n,y:r},{x:i,y:o});if(s<=0)return{radius:s,angle:0};var a=(n-i)/s,l=Math.acos(a);return r>o&&(l=2*Math.PI-l),{radius:s,angle:mft(l),angleInRadian:l}},yft=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},bft=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return e+s*360},wft=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:o}=vft({x:n,y:r},t),{innerRadius:s,outerRadius:a}=t;if(i<s||i>a||i===0)return null;var{startAngle:l,endAngle:c}=yft(t),u=o,d;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}return d?yee(yee({},t),{},{radius:i,angle:bft(u,t)}):null};function yxe(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,s=ei(t,n,r,i),a=ei(t,n,r,o);return{points:[s,a],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}var bee,wee,xee,Eee,See,_ee,kee;function pz(){return pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pz.apply(null,arguments)}function Vp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var xft=(e,t)=>{var n=Ai(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Zk=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:s,cornerRadius:a,cornerIsExternal:l}=e,c=a*(s?1:-1)+r,u=Math.asin(a/c)/tP,d=l?i:i+o*u,f=ei(t,n,c,d),h=ei(t,n,r,d),p=l?i-o*u:i,m=ei(t,n,c*Math.cos(u*tP),p);return{center:f,circleTangency:h,lineTangency:m,theta:u}},bxe=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:s}=e,a=xft(o,s),l=o+a,c=ei(t,n,i,o),u=ei(t,n,i,l),d=Tr(bee||(bee=Vp(["M ",",",` 989 A `,",",`,0, 990 `,",",`, 991 `,",",` 992 `])),c.x,c.y,i,i,+(Math.abs(a)>180),+(o>l),u.x,u.y);if(r>0){var f=ei(t,n,r,o),h=ei(t,n,r,l);d+=Tr(wee||(wee=Vp(["L ",",",` 993 A `,",",`,0, 994 `,",",`, 995 `,","," Z"])),h.x,h.y,r,r,+(Math.abs(a)>180),+(o<=l),f.x,f.y)}else d+=Tr(xee||(xee=Vp(["L ",","," Z"])),t,n);return d},Eft=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:a,startAngle:l,endAngle:c}=e,u=Ai(c-l),{circleTangency:d,lineTangency:f,theta:h}=Zk({cx:t,cy:n,radius:i,angle:l,sign:u,cornerRadius:o,cornerIsExternal:a}),{circleTangency:p,lineTangency:m,theta:g}=Zk({cx:t,cy:n,radius:i,angle:c,sign:-u,cornerRadius:o,cornerIsExternal:a}),v=a?Math.abs(l-c):Math.abs(l-c)-h-g;if(v<0)return s?Tr(Eee||(Eee=Vp(["M ",",",` 996 a`,",",",0,0,1,",`,0 997 a`,",",",0,0,1,",`,0 998 `])),f.x,f.y,o,o,o*2,o,o,-o*2):bxe({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:c});var b=Tr(See||(See=Vp(["M ",",",` 999 A`,",",",0,0,",",",",",` 1000 A`,",",",0,",",",",",",",` 1001 A`,",",",0,0,",",",",",` 1002 `])),f.x,f.y,o,o,+(u<0),d.x,d.y,i,i,+(v>180),+(u<0),p.x,p.y,o,o,+(u<0),m.x,m.y);if(r>0){var{circleTangency:w,lineTangency:x,theta:E}=Zk({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),{circleTangency:S,lineTangency:_,theta:k}=Zk({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),C=a?Math.abs(l-c):Math.abs(l-c)-E-k;if(C<0&&o===0)return"".concat(b,"L").concat(t,",").concat(n,"Z");b+=Tr(_ee||(_ee=Vp(["L",",",` 1003 A`,",",",0,0,",",",",",` 1004 A`,",",",0,",",",",",",",` 1005 A`,",",",0,0,",",",",","Z"])),_.x,_.y,o,o,+(u<0),S.x,S.y,r,r,+(C>180),+(u>0),w.x,w.y,o,o,+(u<0),x.x,x.y)}else b+=Tr(kee||(kee=Vp(["L",",","Z"])),t,n);return b},Sft={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},wxe=e=>{var t=Vr(e,Sft),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:s,forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(o<i||c===u)return null;var f=Wt("recharts-sector",d),h=o-i,p=yo(s,h,0,!0),m;return p>0&&Math.abs(c-u)<360?m=Eft({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(p,h/2),forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:u}):m=bxe({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:c,endAngle:u}),y.createElement("path",pz({},xo(t),{className:f,d:m}))};function _ft(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];
1005if(P0e(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:o,outerRadius:s,angle:a}=t,l=ei(r,i,o,a),c=ei(r,i,s,a);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return yxe(t)}}var xxe={},Exe={},Sxe={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bW;function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Sxe);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Sxe;function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Exe);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wW,n=Exe;function r(i,o,s){s&&typeof s!="number"&&t.isIterateeCall(i,o,s)&&(o=s=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),s=s===void 0?i<o?1:-1:n.toFinite(s);const a=Math.max(Math.ceil((o-i)/(s||1)),0),l=new Array(a);for(let c=0;c<a;c++)l[c]=i,i+=s;return l}e.range=r})(xxe);var kft=xxe.range;const _xe=yr(kft);var ql=e=>e.chartData,WS=q([ql],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),HS=(e,t,n,r)=>r?WS(e):ql(e),kxe=(e,t,n)=>n?WS(e):ql(e),Cft=q([HS],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t!=null?t.slice(n,r+1):[]}),Tft=q([WS],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t!=null?t.slice(n,r+1):[]}),Aft=q([ql],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t!=null?t.slice(n,r+1):[]});function jc(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Rt(t)&&Rt(n))return!0}return!1}function Cee(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cxe(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(Rt(n))i=n;else if(typeof n=="function")return;if(Rt(r))o=r;else if(typeof r=="function")return;var s=[i,o];if(jc(s))return s}}function Oft(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(jc(r))return Cee(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,s,a;if(i==="auto")t!=null&&(s=Math.min(...t));else if(Re(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&kJ.test(i)){var l=kJ.exec(i);if(l==null||l[1]==null||t==null)s=void 0;else{var c=+l[1];s=t[0]-c}}else s=t==null?void 0:t[0];if(o==="auto")t!=null&&(a=Math.max(...t));else if(Re(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&CJ.test(o)){var u=CJ.exec(o);if(u==null||u[1]==null||t==null)a=void 0;else{var d=+u[1];a=t[1]+d}}else a=t==null?void 0:t[1];var f=[s,a];if(jc(f))return t==null?f:Cee(f,t,n)}}}var l0=1e9,Pft={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},LW,lr=!0,Wa="[DecimalError] ",mm=Wa+"Invalid argument: ",DW=Wa+"Exponent out of range: ",c0=Math.floor,Ap=Math.pow,Ift=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ns,Ei=1e7,Kn=7,Txe=9007199254740991,nP=c0(Txe/Kn),je={};je.absoluteValue=je.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};je.comparedTo=je.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};je.decimalPlaces=je.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Kn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};je.dividedBy=je.div=function(e){return od(this,new this.constructor(e))};je.dividedToIntegerBy=je.idiv=function(e){var t=this,n=t.constructor;return An(od(t,new n(e),0,1),n.precision)};je.equals=je.eq=function(e){return!this.cmp(e)};je.exponent=function(){return ni(this)};je.greaterThan=je.gt=function(e){return this.cmp(e)>0};je.greaterThanOrEqualTo=je.gte=function(e){return this.cmp(e)>=0};je.isInteger=je.isint=function(){return this.e>this.d.length-2};je.isNegative=je.isneg=function(){return this.s<0};je.isPositive=je.ispos=function(){return this.s>0};je.isZero=function(){return this.s===0};je.lessThan=je.lt=function(e){return this.cmp(e)<0}
1005;je.lessThanOrEqualTo=je.lte=function(e){return this.cmp(e)<1};je.logarithm=je.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ns))throw Error(Wa+"NaN");if(n.s<1)throw Error(Wa+(n.s?"NaN":"-Infinity"));return n.eq(Ns)?new r(0):(lr=!1,t=od(u1(n,o),u1(e,o),o),lr=!0,An(t,i))};je.minus=je.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Pxe(t,e):Axe(t,(e.s=-e.s,e))};je.modulo=je.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Wa+"NaN");return n.s?(lr=!1,t=od(n,e,0,1).times(e),lr=!0,n.minus(t)):An(new r(n),i)};je.naturalExponential=je.exp=function(){return Oxe(this)};je.naturalLogarithm=je.ln=function(){return u1(this)};je.negated=je.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};je.plus=je.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Axe(t,e):Pxe(t,(e.s=-e.s,e))};je.precision=je.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(mm+e);if(t=ni(i)+1,r=i.d.length-1,n=r*Kn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};je.squareRoot=je.sqrt=function(){var e,t,n,r,i,o,s,a=this,l=a.constructor;if(a.s<1){if(!a.s)return new l(0);throw Error(Wa+"NaN")}for(e=ni(a),lr=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=Rc(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=c0((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=s=n+3;;)if(o=r,r=o.plus(od(a,o,s+2)).times(.5),Rc(o.d).slice(0,s)===(t=Rc(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(An(o,n+1,0),o.times(o).eq(a)){r=o;break}}else if(t!="9999")break;s+=4}return lr=!0,An(r,n)};je.times=je.mul=function(e){var t,n,r,i,o,s,a,l,c,u=this,d=u.constructor,f=u.d,h=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,l=f.length,c=h.length,l<c&&(o=f,f=h,h=o,s=l,l=c,c=s),o=[],s=l+c,r=s;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)a=o[i]+h[r]*f[i-r-1]+t,o[i--]=a%Ei|0,t=a/Ei|0;o[i]=(o[i]+t)%Ei|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,lr?An(e,d.precision):e};je.toDecimalPlaces=je.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Qc(e,0,l0),t===void 0?t=r.rounding:Qc(t,0,8),An(n,e+ni(n)+1,t))};je.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Km(r,!0):(Qc(e,0,l0),t===void 0?t=i.rounding:Qc(t,0,8),r=An(new i(r),e+1,t),n=Km(r,!0,e+1)),n};je.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Km(i):(Qc(e,0,l0),t===void 0?t=o.rounding:Qc(t,0,8),r=An(new o(i),e+ni(i)+1,t),n=Km(r.abs(),!1,e+ni(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};je.toInteger=je.toint=function(){var e=this,t=e.constructor;return An(new t(e),ni(e)+1,t.rounding)};je.toNumber=function(){return+this};je.toPower=je.pow=function(e){var t,n,r,i,o,s,a=this,l=a.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ns);if(a=new l(a),!a.s){if(e.s<1)throw Error(Wa+"Infinity");return a}if(a.eq(Ns))return a;if(r=l.precision,e.eq(Ns))return An(a,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=a.s,s){if((n=u<0?-u:u)<=Txe){for(i=new l(Ns),t=Math.ceil(r/Kn+4),lr=!1;n%2&&(i=i.times(a),Aee(i.d,t)),n=c0(n/2),n!==0;)a=a.times(a),Aee(a.d,t);return lr=!0,e.s<0?new l(Ns).div(i):An(i,r)}}else if(o<0)throw Error(Wa+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,a.s=1,lr=!1,i=e.times(u1(a,r+c)),lr=!0,i=Oxe(i),i.s=o,i};je.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=ni(i),r=Km(i,n<=o.toExpNeg||n>=o.toExpPos)):(Qc(e,1,l0),t===void 0?t=o.rounding:Qc(t,0,8),i=An(new o(i),e,t),n=ni(i),r=Km(i,e<=n||n<=o.toExpNeg,e)),r};je.toSignificantDigits=je.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Qc(e,1,l0),t===void 0?t=r.rounding:Qc(t,0,8)),An(new r(n),e,t)};je.toString=je.valueOf=je.val=je.toJSON=je[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ni(e),n=e.constructor;return Km(e,t<=n.toExpNeg||t>=n.toExpPos)};function Axe(e,t){var n,r,i,o,s,a,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),lr?An(t,d):t;if(l=e.d,c=t.d,s=e.e,i=t.e,l=l.slice(),o=s-i,o){for(o<0?(r=l,o=-o,a=c.length):(r=c,i=s,a=l.length),s=Math.ceil(d/Kn),a=s>a?s+1:a+1,o>a&&(o=a,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(a=l.length,o=c.length,a-o<0&&(o=a,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/Ei|0,l[o]%=Ei;for(n&&(l.unshift(n),++i),a=l.length;l[--a]==0;)l.pop();return t.d=l,t.e=i,lr?An(t,d):t}function Qc(e,t,n){if(e!==~~e||e<t||e>n)throw Error(mm+e)}function Rc(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=Kn-r.length,n&&(o+=of(n)),o+=r;s=e[t],r=s+"",n=Kn-r.length,n&&(o+=of(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var od=function(){function e(r,i){var o,s=0,a=r.length;for(r=r.slice();a--;)o=r[a]*i+s,r[a]=o%Ei|0,s=o/Ei|0;return s&&r.unshift(s),r}function t(r,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;a<o;a++)if(r[a]!=i[a]){l=r[a]>i[a]?1:-1;break}return l}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*Ei+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var a,l,c,u,d,f,h,p,m,g,v,b,w,x,E,S,_,k,C=r.constructor,T=r.s==i.s?1:-1,A=r.d,O=i.d;if(!r.s)return new C(r);if(!i.s)throw Error(Wa+"Division by zero");for(l=r.e-i.e,_=O.length,E=A.length,h=new C(T),p=h.d=[],c=0;O[c]==(A[c]||0);)++c;if(O[c]>(A[c]||0)&&--l,o==null?b=o=C.precision:s?b=o+(ni(r)-ni(i))+1:b=o,b<0)return new C(0);if(b=b/Kn+2|0,c=0,_==1)for(u=0,O=O[0],b++;(c<E||u)&&b--;c++)w=u*Ei+(A[c]||0),p[c]=w/O|0,u=w%O|0;else{for(u=Ei/(O[0]+1)|0,u>1&&(O=e(O,u),A=e(A,u),_=O.length,E=A.length),x=_,m=A.slice(0,_),g=m.length;g<_;)m[g++]=0;k=O.slice(),k.unshift(0),S=O[0],O[1]>=Ei/2&&++S;do u=0,a=t(O,m,_,g),a<0?(v=m[0],_!=g&&(v=v*Ei+(m[1]||0)),u=v/S|0,u>1?(u>=Ei&&(u=Ei-1),d=e(O,u),f=d.length,g=m.length,a=t(d,m,f,g),a==1&&(u--,n(d,_<f?k:O,f))):(u==0&&(a=u=1),d=O.
1005slice()),f=d.length,f<g&&d.unshift(0),n(m,d,g),a==-1&&(g=m.length,a=t(O,m,_,g),a<1&&(u++,n(m,_<g?k:O,g))),g=m.length):a===0&&(u++,m=[0]),p[c++]=u,a&&m[0]?m[g++]=A[x]||0:(m=[A[x]],g=1);while((x++<E||m[0]!==void 0)&&b--)}return p[0]||p.shift(),h.e=l,An(h,s?o+ni(h)+1:o)}}();function Oxe(e,t){var n,r,i,o,s,a,l=0,c=0,u=e.constructor,d=u.precision;if(ni(e)>16)throw Error(DW+ni(e));if(!e.s)return new u(Ns);for(lr=!1,a=d,s=new u(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(r=Math.log(Ap(2,c))/Math.LN10*2+5|0,a+=r,n=i=o=new u(Ns),u.precision=a;;){if(i=An(i.times(e),a),n=n.times(++l),s=o.plus(od(i,n,a)),Rc(s.d).slice(0,a)===Rc(o.d).slice(0,a)){for(;c--;)o=An(o.times(o),a);return u.precision=d,t==null?(lr=!0,An(o,d)):o}o=s}}function ni(e){for(var t=e.e*Kn,n=e.d[0];n>=10;n/=10)t++;return t}function GL(e,t,n){if(t>e.LN10.sd())throw lr=!0,n&&(e.precision=n),Error(Wa+"LN10 precision limit exceeded");return An(new e(e.LN10),t)}function of(e){for(var t="";e--;)t+="0";return t}function u1(e,t){var n,r,i,o,s,a,l,c,u,d=1,f=10,h=e,p=h.d,m=h.constructor,g=m.precision;if(h.s<1)throw Error(Wa+(h.s?"NaN":"-Infinity"));if(h.eq(Ns))return new m(0);if(t==null?(lr=!1,c=g):c=t,h.eq(10))return t==null&&(lr=!0),GL(m,c);if(c+=f,m.precision=c,n=Rc(p),r=n.charAt(0),o=ni(h),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Rc(h.d),r=n.charAt(0),d++;o=ni(h),r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1))}else return l=GL(m,c+2,g).times(o+""),h=u1(new m(r+"."+n.slice(1)),c-f).plus(l),m.precision=g,t==null?(lr=!0,An(h,g)):h;for(a=s=h=od(h.minus(Ns),h.plus(Ns),c),u=An(h.times(h),c),i=3;;){if(s=An(s.times(u),c),l=a.plus(od(s,new m(i),c)),Rc(l.d).slice(0,c)===Rc(a.d).slice(0,c))return a=a.times(2),o!==0&&(a=a.plus(GL(m,c+2,g).times(o+""))),a=od(a,new m(d),c),m.precision=g,t==null?(lr=!0,An(a,g)):a;a=l,i+=2}}function Tee(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=c0(n/Kn),e.d=[],r=(n+1)%Kn,n<0&&(r+=Kn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Kn;r<i;)e.d.push(+t.slice(r,r+=Kn));t=t.slice(r),r=Kn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),lr&&(e.e>nP||e.e<-nP))throw Error(DW+n)}else e.s=0,e.e=0,e.d=[0];return e}function An(e,t,n){var r,i,o,s,a,l,c,u,d=e.d;for(s=1,o=d[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=Kn,i=t,c=d[u=0];else{if(u=Math.ceil((r+1)/Kn),o=d.length,u>=o)return e;for(c=o=d[u],s=1;o>=10;o/=10)s++;r%=Kn,i=r-Kn+s}if(n!==void 0&&(o=Ap(10,s-i-1),a=c/o%10|0,l=t<0||d[u+1]!==void 0||c%o,l=n<4?(a||l)&&(n==0||n==(e.s<0?3:2)):a>5||a==5&&(n==4||l||n==6&&(r>0?i>0?c/Ap(10,s-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=ni(e),d.length=1,t=t-o-1,d[0]=Ap(10,(Kn-t%Kn)%Kn),e.e=c0(-t/Kn)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,o=1,u--):(d.length=u+1,o=Ap(10,Kn-r),d[u]=i>0?(c/Ap(10,s-i)%Ap(10,i)|0)*o:0),l)for(;;)if(u==0){(d[0]+=o)==Ei&&(d[0]=1,++e.e);break}else{if(d[u]+=o,d[u]!=Ei)break;d[u--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(lr&&(e.e>nP||e.e<-nP))throw Error(DW+ni(e));return e}function Pxe(e,t){var n,r,i,o,s,a,l,c,u,d,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),lr?An(t,h):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),s=c-r,s){for(u=s<0,u?(n=l,s=-s,a=d.length):(n=d,r=c,a=l.length),i=Math.max(Math.ceil(h/Kn),a)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=l.length,a=d.length,u=i<a,u&&(a=i),i=0;i<a;i++)if(l[i]!=d[i]){u=l[i]<d[i];break}s=0}for(u&&(n=l,l=d,d=n,t.s=-t.s),a=l.length,i=d.length-a;i>0;--i)l[a++]=0;for(i=d.length;i>s;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=Ei-1;--l[o],l[i]+=Ei}l[i]-=d[i]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,lr?An(t,h):t):new f(0)}function Km(e,t,n){var r,i=ni(e),o=Rc(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+of(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+of(-i-1)+o,n&&(r=n-s)>0&&(o+=of(r))):i>=s?(o+=of(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+of(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=of(r))),e.s<0?"-"+o:o}function Aee(e,t){if(e.length>t)return e.length=t,!0}function Ixe(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(mm+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return Tee(s,o.toString())}else if(typeof o!="string")throw Error(mm+o);
1005if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Ift.test(o))Tee(s,o);else throw Error(mm+o)}if(i.prototype=je,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Ixe,i.config=i.set=Rft,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Rft(e){if(!e||typeof e!="object")throw Error(Wa+"Object expected");var t,n,r,i=["precision",1,l0,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(c0(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(mm+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(mm+n+": "+r);return this}var LW=Ixe(Pft);Ns=new LW(1);const jt=LW;function Rxe(e){var t;return e===0?t=1:t=Math.floor(new jt(e).abs().log(10).toNumber())+1,t}function Mxe(e,t,n){for(var r=new jt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var Nxe=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},$W=(e,t,n)=>{if(e.lte(0))return new jt(0);var r=Rxe(e.toNumber()),i=new jt(10).pow(r),o=e.div(i),s=r!==1?.05:.1,a=new jt(Math.ceil(o.div(s).toNumber())).add(n).mul(s),l=a.mul(i);return t?new jt(l.toNumber()):new jt(Math.ceil(l.toNumber()))},Dxe=(e,t,n)=>{var r;if(e.lte(0))return new jt(0);var i=[1,2,2.5,5],o=e.toNumber(),s=Math.floor(new jt(o).abs().log(10).toNumber()),a=new jt(10).pow(s),l=e.div(a).toNumber(),c=i.findIndex(h=>h>=l-1e-10);if(c===-1&&(a=a.mul(10),c=0),c+=n,c>=i.length){var u=Math.floor(c/i.length);c%=i.length,a=a.mul(new jt(10).pow(u))}var d=(r=i[c])!==null&&r!==void 0?r:1,f=new jt(d).mul(a);return t?f:new jt(Math.ceil(f.toNumber()))},Mft=(e,t,n)=>{var r=new jt(1),i=new jt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new jt(10).pow(Rxe(e)-1),i=new jt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new jt(Math.floor(e)))}else e===0?i=new jt(Math.floor((t-1)/2)):n||(i=new jt(Math.floor(e)));for(var s=Math.floor((t-1)/2),a=[],l=0;l<t;l++)a.push(i.add(new jt(l-s).mul(r)).toNumber());return a},Lxe=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:$W;if(!Number.isFinite((n-t)/(r-1)))return{step:new jt(0),tickMin:new jt(0),tickMax:new jt(0)};var a=s(new jt(n).sub(t).div(r-1),i,o),l;t<=0&&n>=0?l=new jt(0):(l=new jt(t).add(n).div(2),l=l.sub(new jt(l).mod(a)));var c=Math.ceil(l.sub(t).div(a).toNumber()),u=Math.ceil(new jt(n).sub(l).div(a).toNumber()),d=c+u+1;return d>r?Lxe(t,n,r,i,o+1,s):(d<r&&(u=n>0?u+(r-d):u,c=n>0?c:c+(r-d)),{step:a,tickMin:l.sub(new jt(c).mul(a)),tickMax:l.add(new jt(u).mul(a))})},Oee=function(t){var[n,r]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",a=Math.max(i,2),[l,c]=Nxe([n,r]);if(l===-1/0||c===1/0){var u=c===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),c];return n>r?u.reverse():u}if(l===c)return Mft(l,i,o);var d=s==="snap125"?Dxe:$W,{step:f,tickMin:h,tickMax:p}=Lxe(l,c,a,o,0,d),m=Mxe(h,p.add(new jt(.1).mul(f)),f);return n>r?m.reverse():m},Pee=function(t,n){var[r,i]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[a,l]=Nxe([r,i]);if(a===-1/0||l===1/0)return[r,i];if(a===l)return[a];var c=s==="snap125"?Dxe:$W,u=Math.max(n,2),d=c(new jt(l).sub(a).div(u-1),o,0),f=[...Mxe(new jt(a),new jt(l),d),l];return o===!1&&(f=f.map(h=>Math.round(h))),r>i?f.reverse():f},$xe=e=>e.rootProps.maxBarSize,Nft=e=>e.rootProps.barGap,Fxe=e=>e.rootProps.barCategoryGap,Dft=e=>e.rootProps.barSize,KS=e=>e.rootProps.stackOffset,Bxe=e=>e.rootProps.reverseStackOrder,FW=e=>e.options.chartName,BW=e=>e.rootProps.syncId,jxe=e=>e.rootProps.syncMethod,jW=e=>e.options.eventEmitter,Lft=e=>e.rootProps.baseValue,$r={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},mp={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},rc={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},UM=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};
1005function VM(e,t,n){if(n!=="auto")return n;if(e!=null)return Kl(e,t)?"category":"number"}function Iee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iee(Object(n),!0).forEach(function(r){$ft(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iee(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ft(e,t,n){return(t=Fft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fft(e){var t=Bft(e,"string");return typeof t=="symbol"?t:t+""}function Bft(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ree={allowDataOverflow:mp.allowDataOverflow,allowDecimals:mp.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:mp.angleAxisId,includeHidden:!1,name:void 0,reversed:mp.reversed,scale:mp.scale,tick:mp.tick,tickCount:void 0,ticks:void 0,type:mp.type,unit:void 0,niceTicks:"auto"},Mee={allowDataOverflow:rc.allowDataOverflow,allowDecimals:rc.allowDecimals,allowDuplicatedCategory:rc.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:rc.radiusAxisId,includeHidden:rc.includeHidden,name:void 0,reversed:rc.reversed,scale:rc.scale,tick:rc.tick,tickCount:rc.tickCount,ticks:void 0,type:rc.type,unit:void 0,niceTicks:"auto"},jft=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},zW=q([jft,Jwe],(e,t)=>{var n;if(e!=null)return e;var r=(n=VM(t,"angleAxis",Ree.type))!==null&&n!==void 0?n:"category";return rP(rP({},Ree),{},{type:r})}),zft=(e,t)=>e.polarAxis.radiusAxis[t],UW=q([zft,Jwe],(e,t)=>{var n;if(e!=null)return e;var r=(n=VM(t,"radiusAxis",Mee.type))!==null&&n!==void 0?n:"category";return rP(rP({},Mee),{},{type:r})}
1005),WM=e=>e.polarOptions,VW=q([Od,Pd,gi],vxe),zxe=q([WM,VW],(e,t)=>{if(e!=null)return yo(e.innerRadius,t,0)}),Uxe=q([WM,VW],(e,t)=>{if(e!=null)return yo(e.outerRadius,t,t*.8)}),Uft=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Vxe=q([WM],Uft);q([zW,Vxe],UM);var Wxe=q([VW,zxe,Uxe],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});q([UW,Wxe],UM);var Hxe=q([Ut,WM,zxe,Uxe,Od,Pd],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:s,cy:a,startAngle:l,endAngle:c}=t;return{cx:yo(s,i,i/2),cy:yo(a,o,o/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:c,clockWise:!1}}}),br=(e,t)=>t,qS=(e,t,n)=>n;function HM(e){return e==null?void 0:e.id}function Kxe(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=n,s=new Map;return e.forEach(a=>{var l,c=(l=a.data)!==null&&l!==void 0?l:r;if(!(c==null||c.length===0)){var u=HM(a);c.forEach((d,f)=>{var h=o==null||i?f:String(Zt(d,o,null)),p=Zt(d,a.dataKey,0),m;s.has(h)?m=s.get(h):m={},Object.assign(m,{[u]:p}),s.set(h,m)})}}),Array.from(s.values())}function KM(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var qM=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function GM(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Vft(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Di=e=>{var t=Ut(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},u0=e=>e.tooltip.settings.axisId;function WW(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(o){function s(){return o.apply(this,arguments)}return s.toString=function(){return o.toString()},s}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(o){var s=i[0],a=i[1];return s<=a?o>=s&&o<=a:o>=a&&o<=s},bandwidth:n?()=>n.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,s)=>{var a=e(o);if(a!=null){if(e.bandwidth&&s!==null&&s!==void 0&&s.position){var l=e.bandwidth();switch(s.position){case"middle":a+=l/2;break;case"end":a+=l;break}}return a}}}}}var qxe=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!jc(t)){for(var n,r,i=0;i<t.length;i++){var o=t[i];Rt(o)&&((n===void 0||o<n)&&(n=o),(r===void 0||o>r)&&(r=o))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function th(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wft(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function HW(e){let t,n,r;e.length!==2?(t=th,n=(a,l)=>th(e(a),l),r=(a,l)=>e(a)-l):(t=e===th||e===Wft?e:Hft,n=e,r=e);function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(a[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(a[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function s(a,l,c=0,u=a.length){const d=i(a,l,c,u-1);return d>c&&r(a[d-1],l)>-r(a[d],l)?d-1:d}return{left:i,center:s,right:o}}function Hft(){return 0}function Gxe(e){return e===null?NaN:+e}function*Kft(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const qft=HW(th),GS=qft.right;HW(Gxe).center;class Nee extends Map{constructor(t,n=Xft){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Dee(this,t))}has(t){return super.has(Dee(this,t))}set(t,n){return super.set(Gft(this,t),n)}delete(t){return super.delete(Yft(this,t))}}function Dee({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Gft({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Yft({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Xft(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Zft(e=th){if(e===th)return Yxe;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Yxe(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Qft=Math.sqrt(50),Jft=Math.sqrt(10),eht=Math.sqrt(2);function iP(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=Qft?10:o>=Jft?5:o>=eht?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?iP(e,t,n*2):[a,l,c]}function mz(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?iP(t,e,n):iP(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function gz(e,t,n){return t=+t,e=+e,n=+n,iP(e,t,n)[2]}function vz(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?gz(t,e,n):gz(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Lee(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function $ee(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}
vendor: 8,762 bytes, line 1005
1005function Xxe(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Yxe:Zft(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(n,Math.floor(t-c*d/l+f)),p=Math.min(r,Math.floor(t+(l-c)*d/l+f));Xxe(e,t,h,p,i)}const o=e[t];let s=n,a=r;for(fw(e,n,t),i(e[r],o)>0&&fw(e,n,r);s<a;){for(fw(e,s,a),++s,--a;i(e[s],o)<0;)++s;for(;i(e[a],o)>0;)--a}i(e[n],o)===0?fw(e,n,a):(++a,fw(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function fw(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tht(e,t,n){if(e=Float64Array.from(Kft(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return $ee(e);if(t>=1)return Lee(e);var r,i=(r-1)*t,o=Math.floor(i),s=Lee(Xxe(e,o).subarray(0,o+1)),a=$ee(e.subarray(o+1));return s+(a-s)*(i-o)}}function nht(e,t,n=Gxe){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e),a=+n(e[o+1],o+1,e);return s+(a-s)*(i-o)}}function rht(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Id(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const yz=Symbol("implicit");function KW(){var e=new Nee,t=[],n=[],r=yz;function i(o){let s=e.get(o);if(s===void 0){if(r!==yz)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Nee;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return KW(t,n).unknown(r)},qa.apply(i,arguments),i}function qW(){var e=KW().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,a=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,p=h?i:r,m=h?r:i;o=(m-p)/Math.max(1,f-l+c*2),a&&(o=Math.floor(o)),p+=(m-p-o*(f-l))*u,s=o*(1-l),a&&(p=Math.round(p),s=Math.round(s));var g=rht(f).map(function(v){return p+o*v});return n(h?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,a=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(f){return arguments.length?(a=!!f,d()):a},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return qW(t(),[r,i]).round(a).paddingInner(l).paddingOuter(c).align(u)},qa.apply(d(),arguments)}function Zxe(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Zxe(t())},e}function iht(){return Zxe(qW.apply(null,arguments).paddingInner(1))}function GW(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qxe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function YS(){}var d1=.7,oP=1/d1,uy="\\s*([+-]?\\d+)\\s*",f1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oht=/^#([0-9a-f]{3,8})$/,sht=new RegExp(`^rgb\\(${uy},${uy},${uy}\\)$`),aht=new RegExp(`^rgb\\(${zc},${zc},${zc}\\)$`),lht=new RegExp(`^rgba\\(${uy},${uy},${uy},${f1}\\)$`),cht=new RegExp(`^rgba\\(${zc},${zc},${zc},${f1}\\)$`),uht=new RegExp(`^hsl\\(${f1},${zc},${zc}\\)$`),dht=new RegExp(`^hsla\\(${f1},${zc},${zc},${f1}\\)$`),Fee={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};GW(YS,h1,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bee,formatHex:Bee,formatHex8:fht,formatHsl:hht,formatRgb:jee,toString:jee});function Bee(){return this.rgb().formatHex()}function fht(){return this.rgb().formatHex8()}function hht(){return Jxe(this).formatHsl()}function jee(){return this.rgb().formatRgb()}function h1(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oht.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?zee(t):n===3?new fs(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Qk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Qk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=sht.exec(e))?new fs(t[1],t[2],t[3],1):(t=aht.exec(e))?new fs(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lht.exec(e))?Qk(t[1],t[2],t[3],t[4]):(t=cht.exec(e))?Qk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uht.exec(e))?Wee(t[1],t[2]/100,t[3]/100,1):(t=dht.exec(e))?Wee(t[1],t[2]/100,t[3]/100,t[4]):Fee.hasOwnProperty(e)?zee(Fee[e]):e==="transparent"?new fs(NaN,NaN,NaN,0):null}function zee(e){return new fs(e>>16&255,e>>8&255,e&255,1)}function Qk(e,t,n,r){return r<=0&&(e=t=n=NaN),new fs(e,t,n,r)}function pht(e){return e instanceof YS||(e=h1(e)),e?(e=e.rgb(),new fs(e.r,e.g,e.b,e.opacity)):new fs}function bz(e,t,n,r){return arguments.length===1?pht(e):new fs(e,t,n,r??1)}function fs(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}GW(fs,bz,Qxe(YS,{brighter(e){return e=e==null?oP:Math.pow(oP,e),new fs(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?d1:Math.pow(d1,e),new fs(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fs(gm(this.r),gm(this.g),gm(this.b),sP(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Uee,formatHex:Uee,formatHex8:mht,formatRgb:Vee,toString:Vee}));function Uee(){return`#${Wp(this.r)}${Wp(this.g)}${Wp(this.b)}`}
vendor: 10,113 bytes, line 1005
1005function mht(){return`#${Wp(this.r)}${Wp(this.g)}${Wp(this.b)}${Wp((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vee(){const e=sP(this.opacity);return`${e===1?"rgb(":"rgba("}${gm(this.r)}, ${gm(this.g)}, ${gm(this.b)}${e===1?")":`, ${e})`}`}function sP(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wp(e){return e=gm(e),(e<16?"0":"")+e.toString(16)}function Wee(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yl(e,t,n,r)}function Jxe(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);if(e instanceof YS||(e=h1(e)),!e)return new yl;if(e instanceof yl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new yl(s,a,l,e.opacity)}function ght(e,t,n,r){return arguments.length===1?Jxe(e):new yl(e,t,n,r??1)}function yl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}GW(yl,ght,Qxe(YS,{brighter(e){return e=e==null?oP:Math.pow(oP,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?d1:Math.pow(d1,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new fs(YL(e>=240?e-240:e+120,i,r),YL(e,i,r),YL(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new yl(Hee(this.h),Jk(this.s),Jk(this.l),sP(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=sP(this.opacity);return`${e===1?"hsl(":"hsla("}${Hee(this.h)}, ${Jk(this.s)*100}%, ${Jk(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Hee(e){return e=(e||0)%360,e<0?e+360:e}function Jk(e){return Math.max(0,Math.min(1,e||0))}function YL(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const YW=e=>()=>e;function vht(e,t){return function(n){return e+n*t}}function yht(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function bht(e){return(e=+e)==1?eEe:function(t,n){return n-t?yht(t,n,e):YW(isNaN(t)?n:t)}}function eEe(e,t){var n=t-e;return n?vht(e,n):YW(isNaN(e)?t:e)}const Kee=function e(t){var n=bht(t);function r(i,o){var s=n((i=bz(i)).r,(o=bz(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=eEe(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function wht(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function xht(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Eht(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=d0(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function Sht(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function aP(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _ht(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=d0(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var wz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,XL=new RegExp(wz.source,"g");function kht(e){return function(){return e}}function Cht(e){return function(t){return e(t)+""}}function Tht(e,t){var n=wz.lastIndex=XL.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=wz.exec(e))&&(i=XL.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:aP(r,i)})),n=XL.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Cht(l[0].x):kht(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}function d0(e,t){var n=typeof t,r;return t==null||n==="boolean"?YW(t):(n==="number"?aP:n==="string"?(r=h1(t))?(t=r,Kee):Tht:t instanceof h1?Kee:t instanceof Date?Sht:xht(t)?wht:Array.isArray(t)?Eht:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_ht:aP)(e,t)}function XW(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Aht(e,t){t===void 0&&(t=e,e=d0);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(s){var a=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[a](s-a)}}function Oht(e){return function(){return e}}function lP(e){return+e}var qee=[0,1];function $o(e){return e}function xz(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Oht(isNaN(t)?NaN:.5)}function Pht(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Iht(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=xz(i,r),o=n(s,o)):(r=xz(r,i),o=n(o,s)),function(a){return o(r(a))}}function Rht(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=xz(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var l=GS(e,a,1,r)-1;return o[l](i[l](a))}}function XS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function YM(){var e=qee,t=qee,n=d0,r,i,o,s=$o,a,l,c;function u(){var f=Math.min(e.length,t.length);return s!==$o&&(s=Pht(e[0],e[f-1])),a=f>2?Rht:Iht,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=a(e.map(r),t,n)))(r(s(f)))}return d.invert=function(f){return s(i((c||(c=a(t,e.map(r),aP)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,lP),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=XW,u()},d.clamp=function(f){return arguments.length?(s=f?!0:$o,u()):s!==$o},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function ZW(){return YM()($o,$o)}function Mht(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function cP(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ab(e){return e=cP(Math.abs(e)),e?e[1]:NaN}function Nht(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function Dht(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Lht=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p1(e){if(!(t=Lht.exec(e)))throw new Error("invalid format: "+e);var t;return new QW({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}p1.prototype=QW.prototype;function QW(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}QW.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $ht(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var uP;function Fht(e,t){var n=cP(e,t);if(!n)return uP=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(uP=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+cP(e,Math.max(0,t+o-1))[0]}function Gee(e,t){var n=cP(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Yee={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Mht,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Gee(e*100,t),r:Gee,s:Fht,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Xee(e){return e}var Zee=Array.prototype.map,Qee=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Bht(e){var t=e.grouping===void 0||e.thousands===void 0?Xee:Nht(Zee.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Xee:Dht(Zee.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"â":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d,f){d=p1(d);var h=d.fill,p=d.align,m=d.sign,g=d.symbol,v=d.zero,b=d.width,w=d.comma,x=d.precision,E=d.trim,S=d.type;S==="n"?(w=!0,S="g"):Yee[S]||(x===void 0&&(x=12),E=!0,S="g"),(v||h==="0"&&p==="=")&&(v=!0,h="0",p="=");var _=(f&&f.prefix!==void 0?f.prefix:"")+(g==="$"?n:g==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),k=(g==="$"?r:/[%p]/.test(S)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),C=Yee[S],T=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function A(O){var R=_,I=k,F,N,B;if(S==="c")I=C(O)+I,O="";else{O=+O;var M=O<0||1/O<0;if(O=isNaN(O)?l:C(Math.abs(O),x),E&&(O=$ht(O)),M&&+O==0&&m!=="+"&&(M=!1),R=(M?m==="("?m:a:m==="-"||m==="("?"":m)+R,I=(S==="s"&&!isNaN(O)&&uP!==void 0?Qee[8+uP/3]:"")+I+(M&&m==="("?")":""),T){for(F=-1,N=O.length;++F<N;)if(B=O.charCodeAt(F),48>B||B>
100557){I=(B===46?i+O.slice(F+1):O.slice(F))+I,O=O.slice(0,F);break}}}w&&!v&&(O=t(O,1/0));var L=R.length+O.length+I.length,P=L<b?new Array(b-L+1).join(h):"";switch(w&&v&&(O=t(P+O,P.length?b-I.length:1/0),P=""),p){case"<":O=R+O+I+P;break;case"=":O=R+P+O+I;break;case"^":O=P.slice(0,L=P.length>>1)+R+O+I+P.slice(L);break;default:O=P+R+O+I;break}return o(O)}return A.toString=function(){return d+""},A}function u(d,f){var h=Math.max(-8,Math.min(8,Math.floor(ab(f)/3)))*3,p=Math.pow(10,-h),m=c((d=p1(d),d.type="f",d),{suffix:Qee[8+h/3]});return function(g){return m(p*g)}}return{format:c,formatPrefix:u}}var eC,JW,tEe;jht({thousands:",",grouping:[3],currency:["$",""]});function jht(e){return eC=Bht(e),JW=eC.format,tEe=eC.formatPrefix,eC}function zht(e){return Math.max(0,-ab(Math.abs(e)))}function Uht(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ab(t)/3)))*3-ab(Math.abs(e)))}function Vht(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ab(t)-ab(e))+1}function nEe(e,t,n,r){var i=vz(e,t,n),o;switch(r=p1(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Uht(i,s))&&(r.precision=o),tEe(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Vht(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=zht(i))&&(r.precision=o-(r.type==="%")*2);break}}return JW(r)}function Vh(e){var t=e.domain;return e.ticks=function(n){var r=t();return mz(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return nEe(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,u=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);u-- >0;){if(c=gz(s,a,n),c===l)return r[i]=s,r[o]=a,t(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function rEe(){var e=ZW();return e.copy=function(){return XS(e,rEe())},qa.apply(e,arguments),Vh(e)}function iEe(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,lP),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return iEe(e).unknown(t)},e=arguments.length?Array.from(e,lP):[0,1],Vh(n)}function oEe(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function Jee(e){return Math.log(e)}function ete(e){return Math.exp(e)}function Wht(e){return-Math.log(-e)}function Hht(e){return-Math.exp(-e)}function Kht(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qht(e){return e===10?Kht:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ght(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tte(e){return(t,n)=>-e(-t,n)}function eH(e){const t=e(Jee,ete),n=t.domain;let r=10,i,o;function s(){return i=Ght(r),o=qht(r),n()[0]<0?(i=tte(i),o=tte(o),e(Wht,Hht)):e(Jee,ete),t}return t.base=function(a){return arguments.length?(r=+a,s()):r},t.domain=function(a){return arguments.length?(n(a),s()):n()},t.ticks=a=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),p,m;const g=a==null?10:+a;let v=[];if(!(r%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(m=f<0?p/o(-f):p*o(f),!(m<c)){if(m>u)break;v.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/o(-f):p*o(f),!(m<c)){if(m>u)break;v.push(m)}v.length*2<g&&(v=mz(c,u,g))}else v=mz(f,h,Math.min(h-f,g)).map(o);return d?v.reverse():v},t.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=p1(l)).precision==null&&(l.trim=!0),l=JW(l)),a===1/0)return l;const c=Math.max(1,r*a/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(oEe(n(),{floor:a=>o(Math.floor(i(a))),ceil:a=>o(Math.ceil(i(a)))})),t}function sEe(){const e=eH(YM()).domain([1,10]);return e.copy=()=>XS(e,sEe()).base(e.base()),qa.apply(e,arguments),e}
vendor: 4,160 bytes, line 1005
1005function nte(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function rte(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function tH(e){var t=1,n=e(nte(t),rte(t));return n.constant=function(r){return arguments.length?e(nte(t=+r),rte(t)):t},Vh(n)}function aEe(){var e=tH(YM());return e.copy=function(){return XS(e,aEe()).constant(e.constant())},qa.apply(e,arguments)}function ite(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Yht(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Xht(e){return e<0?-e*e:e*e}function nH(e){var t=e($o,$o),n=1;function r(){return n===1?e($o,$o):n===.5?e(Yht,Xht):e(ite(n),ite(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Vh(t)}function rH(){var e=nH(YM());return e.copy=function(){return XS(e,rH()).exponent(e.exponent())},qa.apply(e,arguments),e}function Zht(){return rH.apply(null,arguments).exponent(.5)}function ote(e){return Math.sign(e)*e*e}function Qht(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function lEe(){var e=ZW(),t=[0,1],n=!1,r;function i(o){var s=Qht(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(ote(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,lP)).map(ote)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return lEe(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qa.apply(i,arguments),Vh(i)}function cEe(){var e=[],t=[],n=[],r;function i(){var s=0,a=Math.max(1,t.length);for(n=new Array(a-1);++s<a;)n[s-1]=nht(e,s/a);return o}function o(s){return s==null||isNaN(s=+s)?r:t[GS(n,s)]}return o.invertExtent=function(s){var a=t.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:e[0],a<n.length?n[a]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let a of s)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(th),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return cEe().domain(e).range(t).unknown(r)},qa.apply(o,arguments)}function uEe(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(l){return l!=null&&l<=l?i[GS(r,l,0,n)]:o}function a(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,a()):[e,t]},s.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,a()):i.slice()},s.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return uEe().domain([e,t]).range(i).unknown(o)},qa.apply(Vh(s),arguments)}function dEe(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[GS(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return dEe().domain(e).range(t).unknown(n)},qa.apply(i,arguments)}const ZL=new Date,QL=new Date;function vi(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),a=i.ceil(o);return o-s<a-o?s:a},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,a)=>{const l=[];if(o=i.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let c;do l.push(c=new Date(+o)),t(o,a),e(o);while(c<o&&o<s);return l},i.filter=o=>vi(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,a)=>
1005{if(s>=s)if(a<0)for(;++a<=0;)for(;t(s,-1),!o(s););else for(;--a>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(ZL.setTime(+o),QL.setTime(+s),e(ZL),e(QL),Math.floor(n(ZL,QL))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const dP=vi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);dP.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):dP);dP.range;const Qu=1e3,Ra=Qu*60,Ju=Ra*60,bd=Ju*24,iH=bd*7,ste=bd*30,JL=bd*365,Hp=vi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qu)},(e,t)=>(t-e)/Qu,e=>e.getUTCSeconds());Hp.range;const oH=vi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qu)},(e,t)=>{e.setTime(+e+t*Ra)},(e,t)=>(t-e)/Ra,e=>e.getMinutes());oH.range;const sH=vi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ra)},(e,t)=>(t-e)/Ra,e=>e.getUTCMinutes());sH.range;const aH=vi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qu-e.getMinutes()*Ra)},(e,t)=>{e.setTime(+e+t*Ju)},(e,t)=>(t-e)/Ju,e=>e.getHours());aH.range;const lH=vi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ju)},(e,t)=>(t-e)/Ju,e=>e.getUTCHours());lH.range;const ZS=vi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ra)/bd,e=>e.getDate()-1);ZS.range;const XM=vi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bd,e=>e.getUTCDate()-1);XM.range;const fEe=vi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bd,e=>Math.floor(e/bd));fEe.range;function _g(e){return vi(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ra)/iH)}const ZM=_g(0),fP=_g(1),Jht=_g(2),ept=_g(3),lb=_g(4),tpt=_g(5),npt=_g(6);ZM.range;fP.range;Jht.range;ept.range;lb.range;tpt.range;npt.range;function kg(e){return vi(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/iH)}const QM=kg(0),hP=kg(1),rpt=kg(2),ipt=kg(3),cb=kg(4),opt=kg(5),spt=kg(6);QM.range;hP.range;rpt.range;ipt.range;cb.range;opt.range;spt.range;const cH=vi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());cH.range;const uH=vi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());uH.range;const wd=vi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vi(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});wd.range;const xd=vi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vi(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});xd.range;function hEe(e,t,n,r,i,o){const s=[[Hp,1,Qu],[Hp,5,5*Qu],[Hp,15,15*Qu],[Hp,30,30*Qu],[o,1,Ra],[o,5,5*Ra],[o,15,15*Ra],[o,30,30*Ra],[i,1,Ju],[i,3,3*Ju],[i,6,6*Ju],[i,12,12*Ju],[r,1,bd],[r,2,2*bd],[n,1,iH],[t,1,ste],[t,3,3*ste],[e,1,JL]];function a(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),p=h?h.range(c,+u+1):[];return f?p.reverse():p}function l(c,u,d){const f=Math.abs(u-c)/d,h=HW(([,,g])=>g).right(s,f);if(h===s.length)return e.every(vz(c/JL,u/JL,d));if(h===0)return dP.every(Math.max(vz(c,u,d),1));const[p,m]=s[f/s[h-1][2]<s[h][2]/f?h-1:h];return p.every(m)}return[a,l]}const[apt,lpt]=hEe(xd,uH,QM,fEe,lH,sH),[cpt,upt]=hEe(wd,cH,ZM,ZS,aH,oH);function e$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function t$(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function hw(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function dpt(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=pw(i),u=mw(i),d=pw(o),f=mw(o),h=pw(s),p=m
vendor: 8,361 bytes, line 1005
1005w(s),m=pw(a),g=mw(a),v=pw(l),b=mw(l),w={a:B,A:M,b:L,B:P,c:null,d:fte,e:fte,f:Npt,g:Wpt,G:Kpt,H:Ipt,I:Rpt,j:Mpt,L:pEe,m:Dpt,M:Lpt,p:G,q:Z,Q:mte,s:gte,S:$pt,u:Fpt,U:Bpt,V:jpt,w:zpt,W:Upt,x:null,X:null,y:Vpt,Y:Hpt,Z:qpt,"%":pte},x={a:z,A:oe,b:le,B:se,c:null,d:hte,e:hte,f:Zpt,g:amt,G:cmt,H:Gpt,I:Ypt,j:Xpt,L:gEe,m:Qpt,M:Jpt,p:ue,q:ce,Q:mte,s:gte,S:emt,u:tmt,U:nmt,V:rmt,w:imt,W:omt,x:null,X:null,y:smt,Y:lmt,Z:umt,"%":pte},E={a:T,A,b:O,B:R,c:I,d:ute,e:ute,f:Tpt,g:cte,G:lte,H:dte,I:dte,j:Spt,L:Cpt,m:Ept,M:_pt,p:C,q:xpt,Q:Opt,s:Ppt,S:kpt,u:gpt,U:vpt,V:ypt,w:mpt,W:bpt,x:F,X:N,y:cte,Y:lte,Z:wpt,"%":Apt};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x);function S(Q,K){return function(pe){var X=[],Ze=-1,Me=0,tt=Q.length,Oe,Pt,Le;for(pe instanceof Date||(pe=new Date(+pe));++Ze<tt;)Q.charCodeAt(Ze)===37&&(X.push(Q.slice(Me,Ze)),(Pt=ate[Oe=Q.charAt(++Ze)])!=null?Oe=Q.charAt(++Ze):Pt=Oe==="e"?" ":"0",(Le=K[Oe])&&(Oe=Le(pe,Pt)),X.push(Oe),Me=Ze+1);return X.push(Q.slice(Me,Ze)),X.join("")}}function _(Q,K){return function(pe){var X=hw(1900,void 0,1),Ze=k(X,Q,pe+="",0),Me,tt;if(Ze!=pe.length)return null;if("Q"in X)return new Date(X.Q);if("s"in X)return new Date(X.s*1e3+("L"in X?X.L:0));if(K&&!("Z"in X)&&(X.Z=0),"p"in X&&(X.H=X.H%12+X.p*12),X.m===void 0&&(X.m="q"in X?X.q:0),"V"in X){if(X.V<1||X.V>53)return null;"w"in X||(X.w=1),"Z"in X?(Me=t$(hw(X.y,0,1)),tt=Me.getUTCDay(),Me=tt>4||tt===0?hP.ceil(Me):hP(Me),Me=XM.offset(Me,(X.V-1)*7),X.y=Me.getUTCFullYear(),X.m=Me.getUTCMonth(),X.d=Me.getUTCDate()+(X.w+6)%7):(Me=e$(hw(X.y,0,1)),tt=Me.getDay(),Me=tt>4||tt===0?fP.ceil(Me):fP(Me),Me=ZS.offset(Me,(X.V-1)*7),X.y=Me.getFullYear(),X.m=Me.getMonth(),X.d=Me.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),tt="Z"in X?t$(hw(X.y,0,1)).getUTCDay():e$(hw(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(tt+5)%7:X.w+X.U*7-(tt+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,t$(X)):e$(X)}}function k(Q,K,pe,X){for(var Ze=0,Me=K.length,tt=pe.length,Oe,Pt;Ze<Me;){if(X>=tt)return-1;if(Oe=K.charCodeAt(Ze++),Oe===37){if(Oe=K.charAt(Ze++),Pt=E[Oe in ate?K.charAt(Ze++):Oe],!Pt||(X=Pt(Q,pe,X))<0)return-1}else if(Oe!=pe.charCodeAt(X++))return-1}return X}function C(Q,K,pe){var X=c.exec(K.slice(pe));return X?(Q.p=u.get(X[0].toLowerCase()),pe+X[0].length):-1}function T(Q,K,pe){var X=h.exec(K.slice(pe));return X?(Q.w=p.get(X[0].toLowerCase()),pe+X[0].length):-1}function A(Q,K,pe){var X=d.exec(K.slice(pe));return X?(Q.w=f.get(X[0].toLowerCase()),pe+X[0].length):-1}function O(Q,K,pe){var X=v.exec(K.slice(pe));return X?(Q.m=b.get(X[0].toLowerCase()),pe+X[0].length):-1}function R(Q,K,pe){var X=m.exec(K.slice(pe));return X?(Q.m=g.get(X[0].toLowerCase()),pe+X[0].length):-1}function I(Q,K,pe){return k(Q,t,K,pe)}function F(Q,K,pe){return k(Q,n,K,pe)}function N(Q,K,pe){return k(Q,r,K,pe)}function B(Q){return s[Q.getDay()]}function M(Q){return o[Q.getDay()]}function L(Q){return l[Q.getMonth()]}function P(Q){return a[Q.getMonth()]}function G(Q){return i[+(Q.getHours()>=12)]}function Z(Q){return 1+~~(Q.getMonth()/3)}function z(Q){return s[Q.getUTCDay()]}function oe(Q){return o[Q.getUTCDay()]}function le(Q){return l[Q.getUTCMonth()]}function se(Q){return a[Q.getUTCMonth()]}function ue(Q){return i[+(Q.getUTCHours()>=12)]}function ce(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var K=S(Q+="",w);return K.toString=function(){return Q},K},parse:function(Q){var K=_(Q+="",!1);return K.toString=function(){return Q},K},utcFormat:function(Q){var K=S(Q+="",x);return K.toString=function(){return Q},K},utcParse:function(Q){var K=_(Q+="",!0);return K.toString=function(){return Q},K}}}var ate={"-":"",_:" ",0:"0"},Li=/^\s*\d+/,fpt=/^%/,hpt=/[\\^$*+?|[\]().{}]/g;function Qt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function ppt(e){return e.replace(hpt,"\\$&")}function pw(e){return new RegExp("^(?:"+e.map(ppt).join("|")+")","i")}function mw(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function mpt(e,t,n){var r=Li.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function gpt(e,t,n){var r=Li.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vpt(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ypt(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bpt(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lte(e,t,n){var r=Li.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cte(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wpt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function xpt(e,t,n){var r=Li.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ept(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ute(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Spt(e,t,n){var r=Li.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function dte(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _pt(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kpt(e,t,n){var r=Li.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cpt(e,t,n){var r=Li.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Tpt(e,t,n){var r=Li.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Apt(e,t,n){var r=fpt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Opt(e,t,n){var r=Li.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ppt(e,t,n){var r=Li.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function fte(e,t){return Qt(e.getDate(),t,2)}function Ipt(e,t){return Qt(e.getHours(),t,2)}function Rpt(e,t){return Qt(e.getHours()%12||12,t,2)}function Mpt(e,t){return Qt(1+ZS.count(wd(e),e),t,3)}function pEe(e,t){return Qt(e.getMilliseconds(),t,3)}function Npt(e,t){return pEe(e,t)+"000"}function Dpt(e,t){return Qt(e.getMonth()+1,t,2)}function Lpt(e,t){return Qt(e.getMinutes(),t,2)}function $pt(e,t){return Qt(e.getSeconds(),t,2)}function Fpt(e){var t=e.getDay();return t===0?7:t}function Bpt(e,t){return Qt(ZM.count(wd(e)-1,e),t,2)}function mEe(e){var t=e.getDay();return t>=4||t===0?lb(e):lb.ceil(e)}function jpt(e,t){return e=mEe(e),Qt(lb.count(wd(e),e)+(wd(e).getDay()===4),t,2)}function zpt(e){return e.getDay()}function Upt(e,t){return Qt(fP.count(wd(e)-1,e),t,2)}function Vpt(e,t){return Qt(e.getFullYear()%100,t,2)}function Wpt(e,t){return e=mEe(e),Qt(e.getFullYear()%100,t,2)}function Hpt(e,t){return Qt(e.getFullYear()%1e4,t,4)}function Kpt(e,t){var n=e.getDay();return e=n>=4||n===0?lb(e):lb.ceil(e),Qt(e.getFullYear()%1e4,t,4)}function qpt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Qt(t/60|0,"0",2)+Qt(t%60,"0",2)}function hte(e,t){return Qt(e.getUTCDate(),t,2)}function Gpt(e,t){return Qt(e.getUTCHours(),t,2)}function Ypt(e,t){return Qt(e.getUTCHours()%12||12,t,2)}function Xpt(e,t){return Qt(1+XM.count(xd(e),e),t,3)}function gEe(e,t){return Qt(e.getUTCMilliseconds(),t,3)}function Zpt(e,t){return gEe(e,t)+"000"}function Qpt(e,t){return Qt(e.getUTCMonth()+1,t,2)}function Jpt(e,t){return Qt(e.getUTCMinutes(),t,2)}function emt(e,t){return Qt(e.getUTCSeconds(),t,2)}function tmt(e){var t=e.getUTCDay();return t===0?7:t}function nmt(e,t){return Qt(QM.count(xd(e)-1,e),t,2)}function vEe(e){var t=e.getUTCDay();return t>=4||t===0?cb(e):cb.ceil(e)}function rmt(e,t){return e=vEe(e),Qt(cb.count(xd(e),e)+(xd(e).getUTCDay()===4),t,2)}function imt(e){return e.getUTCDay()}function omt(e,t){return Qt(hP.count(xd(e)-1,e),t,2)}function smt(e,t){return Qt(e.getUTCFullYear()%100,t,2)}function amt(e,t){return e=vEe(e),Qt(e.getUTCFullYear()%100,t,2)}function lmt(e,t){return Qt(e.getUTCFullYear()%1e4,t,4)}function cmt(e,t){var n=e.getUTCDay();return e=n>=4||n===0?cb(e):cb.ceil(e),Qt(e.getUTCFullYear()%1e4,t,4)}function umt(){return"+0000"}function pte(){return"%"}function mte(e){return+e}function gte(e){return Math.floor(+e/1e3)}var Zg,yEe,bEe;dmt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1005ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dmt(e){return Zg=dpt(e),yEe=Zg.format,Zg.parse,bEe=Zg.utcFormat,Zg.utcParse,Zg}function fmt(e){return new Date(e)}function hmt(e){return e instanceof Date?+e:+new Date(+e)}function dH(e,t,n,r,i,o,s,a,l,c){var u=ZW(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),b=c("%b %d"),w=c("%B"),x=c("%Y");function E(S){return(l(S)<S?h:a(S)<S?p:s(S)<S?m:o(S)<S?g:r(S)<S?i(S)<S?v:b:n(S)<S?w:x)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?f(Array.from(S,hmt)):f().map(fmt)},u.ticks=function(S){var _=f();return e(_[0],_[_.length-1],S??10)},u.tickFormat=function(S,_){return _==null?E:c(_)},u.nice=function(S){var _=f();return(!S||typeof S.range!="function")&&(S=t(_[0],_[_.length-1],S??10)),S?f(oEe(_,S)):u},u.copy=function(){return XS(u,dH(e,t,n,r,i,o,s,a,l,c))},u}function pmt(){return qa.apply(dH(cpt,upt,wd,cH,ZM,ZS,aH,oH,Hp,yEe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mmt(){return qa.apply(dH(apt,lpt,xd,uH,QM,XM,lH,sH,Hp,bEe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function JM(){var e=0,t=1,n,r,i,o,s=$o,a=!1,l;function c(d){return d==null||isNaN(d=+d)?l:s(i===0?.5:(d=(o(d)-n)*i,a?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(a=!!d,c):a},c.interpolator=function(d){return arguments.length?(s=d,c):s};function u(d){return function(f){var h,p;return arguments.length?([h,p]=f,s=d(h,p),c):[s(0),s(1)]}}return c.range=u(d0),c.rangeRound=u(XW),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function Wh(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function wEe(){var e=Vh(JM()($o));return e.copy=function(){return Wh(e,wEe())},Id.apply(e,arguments)}function xEe(){var e=eH(JM()).domain([1,10]);return e.copy=function(){return Wh(e,xEe()).base(e.base())},Id.apply(e,arguments)}function EEe(){var e=tH(JM());return e.copy=function(){return Wh(e,EEe()).constant(e.constant())},Id.apply(e,arguments)}function fH(){var e=nH(JM());return e.copy=function(){return Wh(e,fH()).exponent(e.exponent())},Id.apply(e,arguments)}function gmt(){return fH.apply(null,arguments).exponent(.5)}function SEe(){var e=[],t=$o;function n(r){if(r!=null&&!isNaN(r=+r))return t((GS(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(th),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>tht(e,o/r))},n.copy=function(){return SEe(t).domain(e)},Id.apply(n,arguments)}function eN(){var e=0,t=.5,n=1,r=1,i,o,s,a,l,c=$o,u,d=!1,f;function h(m){return isNaN(m=+m)?f:(m=.5+((m=+u(m))-o)*(r*m<r*o?a:l),c(d?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,n]=m,i=u(e=+e),o=u(t=+t),s=u(n=+n),a=i===o?0:.5/(o-i),l=o===s?0:.5/(s-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(m){return arguments.length?(d=!!m,h):d},h.interpolator=function(m){return arguments.length?(c=m,h):c};function p(m){return function(g){var v,b,w;return arguments.length?([v,b,w]=g,c=Aht(m,[v,b,w]),h):[c(0),c(.5),c(1)]}}return h.range=p(d0),h.rangeRound=p(XW),h.unknown=function(m){return arguments.length?(f=m,h):f},function(m){return u=m,i=m(e),o=m(t),s=m(n),a=i===o?0:.5/(o-i),l=o===s?0:.5/(s-o),r=o<i?-1:1,h}}function _Ee(){var e=Vh(eN()($o));return e.copy=function(){return Wh(e,_Ee())},Id.apply(e,arguments)}function kEe(){var e=eH(eN()).domain([.1,1,10]);return e.copy=function(){return Wh(e,kEe()).base(e.base())},Id.apply(e,arguments)}function CEe(){var e=tH(eN());return e.copy=function(){return Wh(e,CEe()).constant(e.constant())},Id.apply(e,arguments)}function hH(){var e=nH(eN());return e.copy=function(){return Wh(e,hH()).exponent(e.exponent())},Id.apply(e,arguments)}function vmt(){return hH.apply(null,arguments).exponent(.5)}const TEe=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:qW,scaleDiverging:_Ee,scaleDivergingLog:kEe,scaleDivergingPow:hH,scaleDivergingSqrt:vmt,scaleDivergingSymlog:CEe,scaleIdentity:iEe,scaleImplicit:yz,scaleLinear:rEe,scaleLog:sEe,scaleOrdinal:KW,scalePoint:iht,scalePow:rH,scaleQuantile:cEe,scaleQuantize:uEe,scaleRadial:lEe,scaleSequential:wEe,scaleSequentialLog:xEe,scaleSequentialPow:fH,scaleSequentialQuantile:SEe,scaleSequentialSqrt:gmt,scaleSequentialSymlog:EEe,scaleSqrt:Zht,scaleSymlog:aEe,scaleThreshold:dEe,scaleTime:pmt,scaleUtc:mmt,tickFormat:nEe},Symbol.toStringTag,{value:"Module"}));function ymt(e){var t=TEe;if(e in t&&typeof t[e]=="function")return t[e]();var n="scale".concat(DS(e));if(n in t&&typeof t[n]=="function")return t[n]()}function vte(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=ymt(e);if(r!=null)return r.domain(t).range(n),r}}function pH(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?vte(e.scale,n,r):vte(t,n,r)}function bmt(e){return"scale".concat(DS(e))}function wmt(e){return bmt(e)in TEe}var AEe=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r==="auto")return i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>
1005=0||n.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof r=="string")return wmt(r)?r:"point"}};function xmt(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var o=Math.floor((n+r)/2);(i?e[o]<t:e[o]>t)?n=o+1:r=o}return n}function OEe(e,t){if(e){var n=t??e.domain(),r=n.map(o=>{var s;return(s=e(o))!==null&&s!==void 0?s:0}),i=e.range();if(!(n.length===0||i.length<2))return o=>{var s,a,l=xmt(r,o);if(l<=0)return n[0];if(l>=n.length)return n[n.length-1];var c=(s=r[l-1])!==null&&s!==void 0?s:0,u=(a=r[l])!==null&&a!==void 0?a:0;return Math.abs(o-c)<=Math.abs(o-u)?n[l-1]:n[l]}}}function Emt(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):OEe(e,void 0)}function yte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yte(Object(n),!0).forEach(function(r){Smt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Smt(e,t,n){return(t=_mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _mt(e){var t=kmt(e,"string");return typeof t=="symbol"?t:t+""}function kmt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ez=[0,"auto"],oi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},PEe=(e,t)=>e.cartesianAxis.xAxis[t],Rd=(e,t)=>{var n=PEe(e,t);return n??oi},si={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Ez,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:BS},IEe=(e,t)=>e.cartesianAxis.yAxis[t],Md=(e,t)=>{var n=IEe(e,t);return n??si},Cmt={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},mH=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Cmt},Mr=(e,t,n)=>{switch(t){case"xAxis":return Rd(e,n);case"yAxis":return Md(e,n);case"zAxis":return mH(e,n);case"angleAxis":return zW(e,n);case"radiusAxis":return UW(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Tmt=(e,t,n)=>{switch(t){case"xAxis":return Rd(e,n);case"yAxis":return Md(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},f0=(e,t,n)=>{switch(t){case"xAxis":return Rd(e,n);case"yAxis":return Md(e,n);case"angleAxis":return zW(e,n);case"radiusAxis":return UW(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},REe=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function gH(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var QS=e=>e.graphicalItems.cartesianItems,Amt=q([br,qS],gH),vH=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),h0=q([QS,Mr,Amt],vH,{memoizeOptions:{resultEqualityCheck:GM}}),MEe=q([h0],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(KM)),NEe=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Omt=q([h0],NEe),yH=e=>e.map(t=>
1005t.data).filter(Boolean).flat(1),Pmt=q([h0],e=>e.some(t=>!t.data)),DEe=q([h0],yH,{memoizeOptions:{resultEqualityCheck:GM}}),bH=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},wH=q([DEe,HS],bH),LEe=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Zt(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:Zt(i,r)}))):e.map(r=>({value:r})),$Ee=(e,t,n,r,i,o)=>{var{chartData:s=[],dataStartIndex:a,dataEndIndex:l}=r,c=LEe(e,t,n);if(i&&(t==null?void 0:t.dataKey)!=null&&o.length>0){var u=s.slice(a,l+1),d=u.map(f=>({value:Zt(f,t.dataKey)})).filter(f=>f.value!=null);return[...d,...c]}return c},JS=q([wH,Mr,h0,HS,Pmt,DEe],$Ee);function dy(e){if(Xc(e)||e instanceof Date){var t=Number(e);if(Rt(t))return t}}function bte(e){if(Array.isArray(e)){var t=[dy(e[0]),dy(e[1])];return jc(t)?t:void 0}var n=dy(e);if(n!=null)return[n,n]}function Jc(e){return e.map(dy).filter(ds)}function Imt(e,t){var n=dy(e),r=dy(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var Rmt=q([JS],e=>e==null?void 0:e.map(t=>t.value).sort(Imt));function FEe(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Mmt(e,t,n){if(!n)return[];if(!n.length)return[];var r;if(typeof t=="number"&&!zl(t))r=t;else if(Array.isArray(t)){var i=Jc(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:Jc(n.flatMap(o=>{var s=Zt(e,o.dataKey),a,l;if(Array.isArray(s)?[a,l]=s:a=l=s,!(!Rt(a)||!Rt(l)))return[r-a,r+l]}))}var yi=e=>{var t=Di(e),n=u0(e);return f0(e,t,n)},ub=q([yi],e=>e==null?void 0:e.dataKey),Nmt=q([MEe,HS,yi],Kxe),BEe=(e,t,n,r)=>{var i={},o=t.reduce((s,a)=>{if(a.stackId==null)return s;var l=s[a.stackId];return l==null&&(l=[]),l.push(a),s[a.stackId]=l,s},i);return Object.fromEntries(Object.entries(o).map(s=>{var[a,l]=s,c=r?[...l].reverse():l,u=c.map(HM);return[a,{stackedData:Cct(e,u,n),graphicalItems:c}]}))},mP=q([Nmt,MEe,KS,Bxe],BEe),jEe=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var s=Pct(e,i,o);if(!(s!=null&&s[0]===0&&s[1]===0))return s}},Dmt=q([Mr],e=>e.allowDataOverflow),xH=e=>{var t;if(e==null||!("domain"in e))return Ez;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Jc(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Ez},EH=q([Mr],xH),SH=q([EH,Dmt],Cxe),Lmt=q([mP,ql,br,SH],jEe,{memoizeOptions:{resultEqualityCheck:qM}}),tN=e=>e.errorBars,$mt=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>FEe(n,r)),gP=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
1005var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),s=Math.min(...o),a=Math.max(...o);return[s,a]}},_H=function(t,n,r,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],a,l;if(r.length>0&&r.forEach(c=>{var u,d=c.data!=null?[...c.data]:s,f=(u=i[c.id])===null||u===void 0?void 0:u.filter(h=>FEe(o,h));d.forEach(h=>{var p,m=Zt(h,(p=n.dataKey)!==null&&p!==void 0?p:c.dataKey),g=Mmt(h,m,f);if(g.length>=2){var v=Math.min(...g),b=Math.max(...g);(a==null||v<a)&&(a=v),(l==null||b>l)&&(l=b)}var w=bte(m);w!=null&&(a=a==null?w[0]:Math.min(a,w[0]),l=l==null?w[1]:Math.max(l,w[1]))})}),(n==null?void 0:n.dataKey)!=null&&r.length===0&&t.forEach(c=>{var u=bte(Zt(c,n.dataKey));u!=null&&(a=a==null?u[0]:Math.min(a,u[0]),l=l==null?u[1]:Math.max(l,u[1]))}),Rt(a)&&Rt(l))return[a,l]},Fmt=q([wH,Mr,Omt,tN,br,Cft],_H,{memoizeOptions:{resultEqualityCheck:qM}});function Bmt(e){var{value:t}=e;if(Xc(t)||t instanceof Date)return t}var jmt=(e,t,n)=>{var r=e.map(Bmt).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&T0e(r))?_xe(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},zEe=e=>e.referenceElements.dots,p0=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),zmt=q([zEe,br,qS],p0),UEe=e=>e.referenceElements.areas,Umt=q([UEe,br,qS],p0),VEe=e=>e.referenceElements.lines,Vmt=q([VEe,br,qS],p0),WEe=(e,t)=>{if(e!=null){var n=Jc(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Wmt=q(zmt,br,WEe),HEe=(e,t)=>{if(e!=null){var n=Jc(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Hmt=q([Umt,br],HEe);function Kmt(e){var t;if(e.x!=null)return Jc([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Jc(n)}function qmt(e){var t;if(e.y!=null)return Jc([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Jc(n)}var KEe=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Kmt(r):qmt(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Gmt=q([Vmt,br],KEe),Ymt=q(Wmt,Gmt,Hmt,(e,t,n)=>gP(e,n,t)),kH=(e,t,n,r,i,o,s,a)=>{if(n!=null)return n;var l=s==="vertical"&&a==="xAxis"||s==="horizontal"&&a==="yAxis",c=l?gP(r,o,i):gP(o,i);return Oft(t,c,e.allowDataOverflow)},Xmt=q([Mr,EH,SH,Lmt,Fmt,Ymt,Ut,br],kH,{memoizeOptions:{resultEqualityCheck:qM}}),Zmt=[0,1],CH=(e,t,n,r,i,o,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var{dataKey:a,type:l}=e,c=Kl(t,o);if(c&&a==null){var u;return _xe(0,(u=n==null?void 0:n.length)!==null&&u!==void 0?u:0)}return l==="category"?jmt(r,e,c):i==="expand"&&!c?Zmt:s}},TH=q([Mr,Ut,wH,JS,KS,br,Xmt],CH),Hh=q([Mr,REe,FW],AEe),AH=(e,t,n)=>{var{niceTicks:r}=t;if(r!=="none"){var i=xH(t),o=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&jc(e)){if(o)return Oee(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return Pee(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(o&&jc(e))return Oee(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&jc(e))return Pee(e,t.tickCount,t.allowDecimals,"adaptive")}}},OH=q([TH,f0,Hh],AH),PH=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&jc(t)&&Array.isArray(n)&&n.length>0){var i,o,s=t[0],a=(i=n[0])!==null&&i!==void 0?i:0,l=t[1],c=(o=n[n.length-1])!==null&&o!==void 0?o:0;return[Math.min(s,a),Math.max(l,c)]}return t},Qmt=q([Mr,TH,OH,br],PH),Jmt=q(JS,Mr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Jc(e.map(d=>d.value))).sort((d,f)=>d-f),i=r[0],o=r[r.length-1];if(i==null||o==null)return 1/0;var s=o-i;if(s===0)return 1/0;for(var a=0;a<r.length-1;a++){var l=r[a],c=r[a+1];if(!(l==null||c==null)){var u=c-l;n=Math.min(n,u)}}return n/s}}),qEe=q(Jmt,Ut,Fxe,gi,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!Rt(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var s=yo(n,e*o),a=e*o/2;return a-s-(a-s)/o*s}return 0}),egt=(e,t,n)=>{var r=Rd(e,t);return r==null||typeof r.padding!="string"?0:qEe(e,"xAxis",t,n,r.padding)},tgt=(e,t,n)=>{var r=Md(e,t);return r==null||typeof r.padding!="string"?0:qEe(e,"yAxis",t,n,r.padding)},ngt=q(Rd,egt,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),rgt=q(Md,tgt,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),igt=q([gi,ngt,$M,LM,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),ogt=q([gi,Ut,rgt,$M,LM,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:s}=i;return o?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),e_=(e,t,n,r)=>{var i;switch(t){case"xAxis":return igt(e,n,r);case"yAxis":return ogt(e,n,r);case"zAxis":return(i=mH(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Vxe(e);case"radiusAxis":return Wxe(e,n);default:return}},GEe=q([Mr,e_],UM),sgt=q([Hh,Qmt],qxe),IH=q([Mr,Hh,sgt,GEe],pH),YEe=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,s=Kl(e,r);if(s&&(i==="number"||o!=="auto"))return t.map(a=>a.value)}},RH=q([Ut,JS,f0,br],YEe),nN=q([IH],WW);q([IH],Emt);q([IH,Rmt],OEe);q([h0,tN,br],$mt);function XEe(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var rN=(e,t)=>t,iN=(e,t,n)=>n,agt=q(NM,rN,iN,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(XEe)),lgt=q(DM,rN,iN,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(XEe)),ZEe=(e,t)=>({width:e.width,height:t.height}),cgt=(e,t)=>{var n=typeof t.width=="number"?t.width:BS;return{width:n,height:e.height}},QEe=q(gi,Rd,ZEe),ugt=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},dgt=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},fgt=q(Pd,gi,agt,rN,iN,(e,t,n,r,i)=>{var o={},s;
1005return n.forEach(a=>{var l=ZEe(t,a);s==null&&(s=ugt(t,r,e));var c=r==="top"&&!i||r==="bottom"&&i;o[a.id]=s-Number(c)*l.height,s+=(c?-1:1)*l.height}),o}),hgt=q(Od,gi,lgt,rN,iN,(e,t,n,r,i)=>{var o={},s;return n.forEach(a=>{var l=cgt(t,a);s==null&&(s=dgt(t,r,e));var c=r==="left"&&!i||r==="right"&&i;o[a.id]=s-Number(c)*l.width,s+=(c?-1:1)*l.width}),o}),pgt=(e,t)=>{var n=Rd(e,t);if(n!=null)return fgt(e,n.orientation,n.mirror)},mgt=q([gi,Rd,pgt,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),ggt=(e,t)=>{var n=Md(e,t);if(n!=null)return hgt(e,n.orientation,n.mirror)},vgt=q([gi,Md,ggt,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),JEe=q(gi,Md,(e,t)=>{var n=typeof t.width=="number"?t.width:BS;return{width:n,height:e.height}}),wte=(e,t,n)=>{switch(t){case"xAxis":return QEe(e,n).width;case"yAxis":return JEe(e,n).height;default:return}},e1e=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:s}=n,a=Kl(e,r),l=t.map(u=>u.value),c=l.filter(u=>u!=null);if(s&&a&&o==="category"&&i&&T0e(c))return l}},MH=q([Ut,JS,Mr,br],e1e),xte=q([Ut,Tmt,Hh,nN,MH,RH,e_,OH,br],(e,t,n,r,i,o,s,a,l)=>{if(t!=null){var c=Kl(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:c,niceTicks:a,range:s,realScaleType:n,scale:r}}}),ygt=(e,t,n,r,i,o,s,a,l)=>{if(!(t==null||r==null)){var c=Kl(e,l),{type:u,ticks:d,tickCount:f}=t,h=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,p=u==="category"&&r.bandwidth?r.bandwidth()/h:0;p=l==="angleAxis"&&o!=null&&o.length>=2?Ai(o[0]-o[1])*2*p:p;var m=d||i;return m?m.map((g,v)=>{var b=s?s.indexOf(g):g,w=r.map(b);return Rt(w)?{index:v,coordinate:w+p,value:g,offset:p}:null}).filter(ds):c&&a?a.map((g,v)=>{var b=r.map(g);return Rt(b)?{coordinate:b+p,value:g,index:v,offset:p}:null}).filter(ds):r.ticks?r.ticks(f).map((g,v)=>{var b=r.map(g);return Rt(b)?{coordinate:b+p,value:g,index:v,offset:p}:null}).filter(ds):r.domain().map((g,v)=>{var b=r.map(g);return Rt(b)?{coordinate:b+p,value:s?s[g]:g,index:v,offset:p}:null}).filter(ds)}},t1e=q([Ut,f0,Hh,nN,OH,e_,MH,RH,br],ygt),bgt=(e,t,n,r,i,o,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var a=Kl(e,s),{tickCount:l}=t,c=0;return c=s==="angleAxis"&&(r==null?void 0:r.length)>=2?Ai(r[0]-r[1])*2*c:c,a&&o?o.map((u,d)=>{var f=n.map(u);return Rt(f)?{coordinate:f+c,value:u,index:d,offset:c}:null}).filter(ds):n.ticks?n.ticks(l).map((u,d)=>{var f=n.map(u);return Rt(f)?{coordinate:f+c,value:u,index:d,offset:c}:null}).filter(ds):n.domain().map((u,d)=>{var f=n.map(u);return Rt(f)?{coordinate:f+c,value:i?i[u]:u,index:d,offset:c}:null}).filter(ds)}},eu=q([Ut,f0,nN,e_,MH,RH,br],bgt),tu=q(Mr,nN,(e,t)=>{if(!(e==null||t==null))return pP(pP({},e),{},{scale:t})}),wgt=q([Mr,Hh,TH,GEe],pH),xgt=q([wgt],WW);q((e,t,n)=>mH(e,n),xgt,(e,t)=>{if(!(e==null||t==null))return pP(pP({},e),{},{scale:t})});var Egt=q([Ut,NM,DM],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Sgt=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};q([Sgt],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,i=e[0];for(var o of e){var s=Math.abs(o.coordinate-t);s<r&&(r=s,i=o)}return(n=i)===null||n===void 0?void 0:n.value}});var n1e=e=>e.options.defaultTooltipEventType,r1e=e=>e.options.validateTooltipEventTypes;function i1e(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function t_(e,t){var n=n1e(e),r=r1e(e);return i1e(t,n,r)}function _gt(e){return Be(t=>t_(t,e))}var o1e=(e,t)=>{var n,r=Number(t);if(!(zl(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},kgt=e=>e.tooltip.settings,mf={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Cgt={itemInteraction:{click:mf,hover:mf},axisInteraction:{click:mf,hover:mf},keyboardInteraction:mf,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},s1e=So({name:"tooltip",initialState:Cgt,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Hn()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ia(e).tooltipItemPayloads.indexOf(n);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:Hn()},removeTooltipEntrySettings:{reducer(e,t){var n=Ia(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Hn()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Tgt,replaceTooltipEntrySettings:Agt,removeTooltipEntrySettings:Ogt,setTooltipSettingsState:Pgt,setActiveMouseOverItemIndex:a1e,mouseLeaveItem:Igt,mouseLeaveChart:l1e,setActiveClickItemIndex:Rgt,setMouseOverAxisIndex:c1e,setMouseClickAxisIndex:Mgt,setSyncInteraction:ox,setKeyboardInteraction:vP}=s1e.actions,Ngt=s1e.reducer;function Ete(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1005t%2?Ete(Object(n),!0).forEach(function(r){Dgt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ete(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dgt(e,t,n){return(t=Lgt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lgt(e){var t=$gt(e,"string");return typeof t=="symbol"?t:t+""}function $gt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fgt(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Bgt(e){return e.index!=null}var u1e=(e,t,n,r)=>{if(t==null)return mf;var i=Fgt(e,t,n);if(i==null)return mf;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(Bgt(i)){if(o)return tC(tC({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return tC(tC({},mf),{},{coordinate:i.coordinate})};function jgt(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function zgt(e,t){var n=jgt(e),r=t[0],i=t[1];if(n===void 0)return!1;var o=Math.min(r,i),s=Math.max(r,i);return n>=o&&n<=s}function Ugt(e,t,n){if(n==null||t==null)return!0;var r=Zt(e,t);return r==null||!jc(n)?!0:zgt(r,n)}var Wx=(e,t,n,r)=>{var i=e==null?void 0:e.index;if(i==null)return null;var o=Number(i);if(!Rt(o))return i;var s=0,a=1/0;t.length>0&&(a=t.length-1);var l=Math.max(s,Math.min(o,a)),c=t[l];return c==null||Ugt(c,n,r)?String(l):null},d1e=(e,t,n,r,i,o,s)=>{if(o!=null){var a=s[0],l=a==null?void 0:a.getPosition(o);if(l!=null)return l;var c=i==null?void 0:i[Number(o)];if(c)switch(n){case"horizontal":return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},f1e=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(s=>{var a;return((a=s.settings)===null||a===void 0?void 0:a.graphicalItemId)===i})},h1e=e=>e.options.tooltipPayloadSearcher,m0=e=>e.tooltip;function Ste(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ste(Object(n),!0).forEach(function(r){Vgt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ste(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vgt(e,t,n){return(t=Wgt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wgt(e){var t=Hgt(e,"string");return typeof t=="symbol"?t:t+""}function Hgt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kgt(e){if(typeof e=="string"||typeof e=="number")return e}function qgt(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function Ggt(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function kte(e){if(typeof e=="string")return e}function Ygt(e){if(!(e==null||typeof e!="object")){var t="name"in e?Kgt(e.name):void 0,n="unit"in e?qgt(e.unit):void 0,r="dataKey"in e?Ggt(e.dataKey):void 0,i="payload"in e?e.payload:void 0,o="color"in e?kte(e.color):void 0,s="fill"in e?kte(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:i,color:o,fill:s}}}function Xgt(e,t){return e??t}var p1e=(e,t,n,r,i,o,s)=>{if(!(t==null||o==null)){var{chartData:a,computedData:l,dataStartIndex:c,dataEndIndex:u}=n,d=[];return e.reduce((f,h)=>{var p,{dataDefinedOnItem:m,settings:g}=h,v=Xgt(m,a),b=Array.isArray(v)?Bwe(v,c,u):v,w=(p=g==null?void 0:g.dataKey)!==null&&p!==void 0?p:r,x=g==null?void 0:g.nameKey,E;if(r&&Array.isArray(b)&&!Array.isArray(b[0])&&s==="axis"?E=A0e(b,r,i):E=o(b,t,l,x),Array.isArray(E))E.forEach(_=>
1005{var k,C,T=Ygt(_),A=T==null?void 0:T.name,O=T==null?void 0:T.dataKey,R=T==null?void 0:T.payload,I=_te(_te({},g),{},{name:A,unit:T==null?void 0:T.unit,color:(k=T==null?void 0:T.color)!==null&&k!==void 0?k:g==null?void 0:g.color,fill:(C=T==null?void 0:T.fill)!==null&&C!==void 0?C:g==null?void 0:g.fill});f.push(TJ({tooltipEntrySettings:I,dataKey:O,payload:R,value:Zt(R,O),name:A==null?void 0:String(A)}))});else{var S;f.push(TJ({tooltipEntrySettings:g,dataKey:w,payload:E,value:Zt(E,w),name:(S=Zt(E,x))!==null&&S!==void 0?S:g==null?void 0:g.name}))}return f},d)}},NH=q([yi,REe,FW],AEe),Zgt=q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Qgt=q([Di,u0],gH),Cg=q([Zgt,yi,Qgt],vH,{memoizeOptions:{resultEqualityCheck:GM}}),Jgt=q([Cg],e=>e.filter(KM)),m1e=q([Cg],yH,{memoizeOptions:{resultEqualityCheck:GM}}),evt=q([Cg],e=>e.some(t=>!t.data)),qm=q([m1e,ql],bH),tvt=q([Jgt,ql,yi],Kxe),DH=q([qm,yi,Cg,ql,evt,m1e],$Ee),g1e=q([yi],xH),nvt=q([yi],e=>e.allowDataOverflow),v1e=q([g1e,nvt],Cxe),rvt=q([Cg],e=>e.filter(KM)),ivt=q([tvt,rvt,KS,Bxe],BEe),ovt=q([ivt,ql,Di,v1e],jEe),svt=q([Cg],NEe),avt=q([qm,yi,svt,tN,Di,Aft],_H,{memoizeOptions:{resultEqualityCheck:qM}}),lvt=q([zEe,Di,u0],p0),cvt=q([lvt,Di],WEe),uvt=q([UEe,Di,u0],p0),dvt=q([uvt,Di],HEe),fvt=q([VEe,Di,u0],p0),hvt=q([fvt,Di],KEe),pvt=q([cvt,hvt,dvt],gP),mvt=q([yi,g1e,v1e,ovt,avt,pvt,Ut,Di],kH),db=q([yi,Ut,qm,DH,KS,Di,mvt],CH),gvt=q([db,yi,NH],AH),vvt=q([yi,db,gvt,Di],PH),y1e=e=>{var t=Di(e),n=u0(e),r=!1;return e_(e,t,n,r)},b1e=q([yi,y1e],UM),yvt=q([yi,NH,vvt,b1e],pH),w1e=q([yvt],WW),bvt=q([Ut,DH,yi,Di],e1e),wvt=q([Ut,DH,yi,Di],YEe),xvt=(e,t,n,r,i,o,s,a)=>{if(t){var{type:l}=t,c=Kl(e,a);if(r){var u=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,d=l==="category"&&r.bandwidth?r.bandwidth()/u:0;return d=a==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Ai(i[0]-i[1])*2*d:d,c&&s?s.map((f,h)=>{var p=r.map(f);return Rt(p)?{coordinate:p+d,value:f,index:h,offset:d}:null}).filter(ds):r.domain().map((f,h)=>{var p=r.map(f);return Rt(p)?{coordinate:p+d,value:o?o[f]:f,index:h,offset:d}:null}).filter(ds)}}},Nd=q([Ut,yi,NH,w1e,y1e,bvt,wvt,Di],xvt),LH=q([n1e,r1e,kgt],(e,t,n)=>i1e(n.shared,e,t)),x1e=e=>e.tooltip.settings.trigger,$H=e=>e.tooltip.settings.defaultIndex,n_=q([m0,LH,x1e,$H],u1e),wh=q([n_,qm,ub,db],Wx),E1e=q([Nd,wh],o1e),FH=q([n_],e=>{if(e)return e.dataKey}),S1e=q([n_],e=>{if(e)return e.graphicalItemId}),_1e=q([m0,LH,x1e,$H],f1e),Evt=q([Od,Pd,Ut,gi,Nd,$H,_1e],d1e),Svt=q([n_,Evt],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),_vt=q([n_],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),kvt=q([_1e,wh,ql,ub,E1e,h1e,LH],p1e),Cvt=q([kvt],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function Cte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cte(Object(n),!0).forEach(function(r){Tvt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tvt(e,t,n){return(t=Avt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Avt(e){var t=Ovt(e,"string");return typeof t=="symbol"?t:t+""}function Ovt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pvt=()=>Be(yi),Ivt=()=>{var e=Pvt(),t=Be(Nd),n=Be(w1e);return bh(!e||!n?void 0:Tte(Tte({},e),{},{scale:n}),t)};function Ate(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1005t%2?Ate(Object(n),!0).forEach(function(r){Rvt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ate(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rvt(e,t,n){return(t=Mvt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mvt(e){var t=Nvt(e,"string");return typeof t=="symbol"?t:t+""}function Nvt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dvt=(e,t,n,r)=>{var i=t.find(o=>o&&o.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},Lvt=(e,t,n,r)=>{var i=t.find(c=>c&&c.index===n);if(i){if(e==="centric"){var o=i.coordinate,{radius:s}=r;return Qg(Qg(Qg({},r),ei(r.cx,r.cy,s,o)),{},{angle:o,radius:s})}var a=i.coordinate,{angle:l}=r;return Qg(Qg(Qg({},r),ei(r.cx,r.cy,a,l)),{},{angle:l,radius:a})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function $vt(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var k1e=(e,t,n,r,i)=>{var o,s=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var a=0;a<s;a++){var l,c,u,d,f,h=a>0?(l=n[a-1])===null||l===void 0?void 0:l.coordinate:(c=n[s-1])===null||c===void 0?void 0:c.coordinate,p=(u=n[a])===null||u===void 0?void 0:u.coordinate,m=a>=s-1?(d=n[0])===null||d===void 0?void 0:d.coordinate:(f=n[a+1])===null||f===void 0?void 0:f.coordinate,g=void 0;if(!(h==null||p==null||m==null))if(Ai(p-h)!==Ai(m-p)){var v=[];if(Ai(m-p)===Ai(i[1]-i[0])){g=m;var b=p+i[1]-i[0];v[0]=Math.min(b,(b+h)/2),v[1]=Math.max(b,(b+h)/2)}else{g=h;var w=m+i[1]-i[0];v[0]=Math.min(p,(w+p)/2),v[1]=Math.max(p,(w+p)/2)}var x=[Math.min(p,(g+p)/2),Math.max(p,(g+p)/2)];if(e>x[0]&&e<=x[1]||e>=v[0]&&e<=v[1]){var E;return(E=n[a])===null||E===void 0?void 0:E.index}}else{var S=Math.min(h,m),_=Math.max(h,m);if(e>(S+p)/2&&e<=(_+p)/2){var k;return(k=n[a])===null||k===void 0?void 0:k.index}}}else if(t)for(var C=0;C<s;C++){var T=t[C];if(T!=null){var A=t[C+1],O=t[C-1];if(C===0&&A!=null&&e<=(T.coordinate+A.coordinate)/2||C===s-1&&O!=null&&e>(T.coordinate+O.coordinate)/2||C>0&&C<s-1&&O!=null&&A!=null&&e>(T.coordinate+O.coordinate)/2&&e<=(T.coordinate+A.coordinate)/2)return T.index}}return-1},C1e=()=>Be(FW),BH=(e,t)=>t,T1e=(e,t,n)=>n,jH=(e,t,n,r)=>r,Fvt=q(Nd,e=>_M(e,t=>t.coordinate)),zH=q([m0,BH,T1e,jH],u1e),UH=q([zH,qm,ub,db],Wx),Bvt=(e,t,n)=>{if(t!=null){var r=m0(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},A1e=q([m0,BH,T1e,jH],f1e),yP=q([Od,Pd,Ut,gi,Nd,jH,A1e],d1e),jvt=q([zH,yP],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),O1e=q([Nd,UH],o1e),zvt=q([A1e,UH,ql,ub,O1e,h1e,BH],p1e),Uvt=q([zH,UH],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Vvt=(e,t,n,r,i,o,s)=>{if(!(!e||!n||!r||!i)&&$vt(e,s)){var a=Ict(e,t),l=k1e(a,o,i,n,r),c=Dvt(t,i,l,e);return{activeIndex:String(l),activeCoordinate:c}}},Wvt=(e,t,n,r,i,o,s)=>{if(!(!e||!r||!i||!o||!n)){var a=wft(e,n);if(a){var l=Rct(a,t),c=k1e(l,s,o,r,i),u=Lvt(t,o,c,a);return{activeIndex:String(c),activeCoordinate:u}}}},Hvt=(e,t,n,r,i,o,s,a)=>{if(!(!e||!t||!r||!i||!o))return t==="horizontal"||t==="vertical"?Vvt(e,t,r,i,o,s,a):Wvt(e,t,n,r,i,o,s)},Kvt=q(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),qvt=q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values($r)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:Vft}});function Ote(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1005t%2?Ote(Object(n),!0).forEach(function(r){Gvt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ote(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gvt(e,t,n){return(t=Yvt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yvt(e){var t=Xvt(e,"string");return typeof t=="symbol"?t:t+""}function Xvt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zvt={},Qvt={zIndexMap:Object.values($r).reduce((e,t)=>Pte(Pte({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Zvt)},Jvt=new Set(Object.values($r));function eyt(e){return Jvt.has(e)}var P1e=So({name:"zIndex",initialState:Qvt,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Hn()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!eyt(n)&&delete e.zIndexMap[n])},prepare:Hn()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:Hn()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Hn()}}}),{registerZIndexPortal:tyt,unregisterZIndexPortal:n$,registerZIndexPortalElement:nyt,unregisterZIndexPortalElement:ryt}=P1e.actions,iyt=P1e.reducer;function Qo(e){var{zIndex:t,children:n}=e,r=out(),i=r&&t!==void 0&&t!==0,o=Ni(),s=y.useRef(void 0),a=y.useRef(new Set),l=_n(),c=Be(d=>Kvt(d,t,o));if(y.useLayoutEffect(()=>{if(!i){var d=a.current;d.forEach(h=>{l(n$({zIndex:h}))}),d.clear(),s.current=void 0;return}if(a.current.has(t)||(l(tyt({zIndex:t})),a.current.add(t)),c){s.current=c;var f=a.current;f.forEach(h=>{h!==t&&(l(n$({zIndex:h})),f.delete(h))})}},[l,t,i,c]),y.useLayoutEffect(()=>{var d=a.current;return()=>{d.forEach(f=>{l(n$({zIndex:f}))}),d.clear()}},[l]),!i)return n;var u=c??s.current;return u?pr.createPortal(n,u):null}function Sz(){return Sz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sz.apply(null,arguments)}function Ite(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ite(Object(n),!0).forEach(function(r){oyt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ite(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oyt(e,t,n){return(t=syt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function syt(e){var t=ayt(e,"string");return typeof t=="symbol"?t:t+""}function ayt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lyt(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return y.isValidElement(t)?y.cloneElement(t,r):y.createElement(n,r)}function cyt(e){var t,{coordinate:n,payload:r,index:i,offset:o,tooltipAxisBandSize:s,layout:a,cursor:l,tooltipEventType:c,chartName:u}=e,d=n,f=r,h=i;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var p,m,g;if(u==="ScatterChart")p=d,m=Ddt,g=$r.cursorLine;else if(u==="BarChart")p=Ldt(a,d,o,s),m=gxe,g=$r.cursorRectangle;else if(a==="radial"&&P0e(d)){var{cx:v,cy:b,radius:w,startAngle:x,endAngle:E}=yxe(d);p={cx:v,cy:b,startAngle:x,endAngle:E,innerRadius:w,outerRadius:w},m=wxe,g=$r.cursorLine}else p={points:_ft(a,d,o)},m=cy,g=$r.cursorLine;var S=typeof l=="object"&&"className"in l?l.className:void 0,_=nC(nC(nC(nC({stroke:"#ccc",pointerEvents:"none"},o),p),Bm(l)),{},{payload:f,payloadIndex:h,className:Wt("recharts-tooltip-cursor",S)});return y.createElement(Qo,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:g},y.createElement(lyt,{cursor:l,cursorComp:m,cursorProps:_}))}function uyt(e){var t=Ivt(),n=Qwe(),r=Uh(),i=C1e();return t==null||n==null||r==null||i==null?null:y.createElement(cyt,Sz({}
vendor: 4,360 bytes, line 1005
1005,e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var I1e=y.createContext(null),dyt=()=>y.useContext(I1e),R1e={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,f),p=n?n+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,p=new Array(h);f<h;f++)p[f]=d[f].fn;return p},a.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},a.prototype.emit=function(c,u,d,f,h,p){var m=n?n+c:c;if(!this._events[m])return!1;var g=this._events[m],v=arguments.length,b,w;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,h),!0;case 6:return g.fn.call(g.context,u,d,f,h,p),!0}for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];g.fn.apply(g.context,b)}else{var x=g.length,E;for(w=0;w<x;w++)switch(g[w].once&&this.removeListener(c,g[w].fn,void 0,!0),v){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,u);break;case 3:g[w].fn.call(g[w].context,u,d);break;case 4:g[w].fn.call(g[w].context,u,d,f);break;default:if(!b)for(E=1,b=new Array(v-1);E<v;E++)b[E-1]=arguments[E];g[w].fn.apply(g[w].context,b)}}return!0},a.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},a.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},a.prototype.removeListener=function(c,u,d,f){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return s(this,h),this;var p=this._events[h];if(p.fn)p.fn===u&&(!f||p.once)&&(!d||p.context===d)&&s(this,h);else{for(var m=0,g=[],v=p.length;m<v;m++)(p[m].fn!==u||f&&!p[m].once||d&&p[m].context!==d)&&g.push(p[m]);g.length?this._events[h]=g.length===1?g[0]:g:s(this,h)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&s(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(R1e);var fyt=R1e.exports;const hyt=yr(fyt);var m1=new hyt,_z="recharts.syncEvent.tooltip",Rte="recharts.syncEvent.brush",oN=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!zl(n))return e[n]}},pyt={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},M1e=So({name:"options",initialState:pyt,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),myt=M1e.reducer,{createEventEmitter:gyt}=M1e.actions;function vyt(e){return e.tooltip.syncInteraction}var yyt={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},N1e=So({name:"chartData",initialState:yyt,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:Mte,setDataStartEndIndexes:byt,setComputedData:Wnn}=N1e.actions,wyt=N1e.reducer,xyt=["x","y"];function Nte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1005t%2?Nte(Object(n),!0).forEach(function(r){Eyt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eyt(e,t,n){return(t=Syt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Syt(e){var t=_yt(e,"string");return typeof t=="symbol"?t:t+""}function _yt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kyt(e,t){if(e==null)return{};var n,r,i=Cyt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cyt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Tyt(){var e=Be(BW),t=Be(jW),n=_n(),r=Be(jxe),i=Be(Nd),o=Uh(),s=FM(),a=Be(l=>l.rootProps.className);y.useEffect(()=>{if(e==null)return jh;var l=(c,u,d)=>{if(t!==d&&e===c){if(u.payload.active===!1){n(ox({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r==="index"){var f;if(s&&u!==null&&u!==void 0&&(f=u.payload)!==null&&f!==void 0&&f.coordinate&&u.payload.sourceViewBox){var h=u.payload.coordinate,{x:p,y:m}=h,g=kyt(h,xyt),{x:v,y:b,width:w,height:x}=u.payload.sourceViewBox,E=Jg(Jg({},g),{},{x:s.x+(w?(p-v)/w:0)*s.width,y:s.y+(x?(m-b)/x:0)*s.height});n(Jg(Jg({},u),{},{payload:Jg(Jg({},u.payload),{},{coordinate:E})}))}else n(u);return}if(i!=null){var S;if(typeof r=="function"){var _={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},k=r(i,_);S=i[k]}else r==="value"&&(S=i.find(N=>String(N.value)===u.payload.label));var{coordinate:C}=u.payload;if(C==null||s==null){n(ox({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(S==null){n(ox({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:T,y:A}=C,O=Math.min(T,s.x+s.width),R=Math.min(A,s.y+s.height),I={x:o==="horizontal"?S.coordinate:O,y:o==="horizontal"?R:S.coordinate},F=ox({active:u.payload.active,coordinate:I,dataKey:u.payload.dataKey,index:String(S.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});n(F)}}};return m1.on(_z,l),()=>{m1.off(_z,l)}},[a,n,t,e,r,i,o,s])}function Ayt(){var e=Be(BW),t=Be(jW),n=_n();y.useEffect(()=>{if(e==null)return jh;var r=(i,o,s)=>{t!==s&&e===i&&n(byt(o))};return m1.on(Rte,r),()=>{m1.off(Rte,r)}},[n,t,e])}function Oyt(){var e=_n();y.useEffect(()=>{e(gyt())},[e]),Tyt(),Ayt()}function Pyt(e,t,n,r,i,o){var s=Be(p=>Bvt(p,e,t)),a=Be(S1e),l=Be(jW),c=Be(BW),u=Be(jxe),d=Be(vyt),f=(d==null?void 0:d.sourceViewBox)!=null,h=FM();y.useEffect(()=>{if(!f&&c!=null&&l!=null){var p=ox({active:o,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:h,graphicalItemId:a});m1.emit(_z,c,p,l)}},[f,n,s,a,i,r,l,c,u,o,h])}function Dte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dte(Object(n),!0).forEach(function(r){Iyt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iyt(e,t,n){return(t=Ryt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ryt(e){var t=Myt(e,"string");return typeof t=="symbol"?t:t+""}function Myt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nyt(e){return e.dataKey}function Dyt(e,t){return y.isValidElement(e)?y.cloneElement(e,t):typeof e=="function"?y.createElement(e,t):y.createElement(udt,t)}var $te=[],Lyt={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Hnn(e){var t,n,r=Vr(e,Lyt),{active:i,allowEscapeViewBox:o,animationDuration:s,animationEasing:a,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:f,position:h,reverseDirection:p,useTranslate3d:m,wrapperStyle:g,cursor:v,shared:b,trigger:w,defaultIndex:x,portal:E,axisId:S}=r,_=_n(),k=typeof x=="number"?String(x):x;
1005y.useEffect(()=>{_(Pgt({shared:b,trigger:w,axisId:S,active:i,defaultIndex:k}))},[_,b,w,S,i,k]);var C=FM(),T=dxe(),A=_gt(b),{activeIndex:O,isActive:R}=(t=Be(ce=>Uvt(ce,A,w,k)))!==null&&t!==void 0?t:{},I=Be(ce=>zvt(ce,A,w,k)),F=Be(ce=>O1e(ce,A,w,k)),N=Be(ce=>jvt(ce,A,w,k)),B=I,M=dyt(),L=(n=i??R)!==null&&n!==void 0?n:!1,[P,G]=cwe([B,L]),Z=A==="axis"?F:void 0;Pyt(A,w,N,Z,O,L);var z=E??M;if(z==null||C==null||A==null)return null;var oe=B??$te;L||(oe=$te),c&&oe.length&&(oe=X0e(oe.filter(ce=>ce.value!=null&&(ce.hide!==!0||r.includeHidden)),f,Nyt));var le=oe.length>0,se=Lte(Lte({},r),{},{payload:oe,label:Z,active:L,activeIndex:O,coordinate:N,accessibilityLayer:T}),ue=y.createElement(xdt,{allowEscapeViewBox:o,animationDuration:s,animationEasing:a,isAnimationActive:u,active:L,coordinate:N,hasPayload:le,offset:d,position:h,reverseDirection:p,useTranslate3d:m,viewBox:C,wrapperStyle:g,lastBoundingBox:P,innerRef:G,hasPortalFromProps:!!E},Dyt(l,se));return y.createElement(y.Fragment,null,pr.createPortal(ue,z),L&&y.createElement(uyt,{cursor:v,tooltipEventType:A,coordinate:N,payload:oe,index:O}))}var sN=e=>null;sN.displayName="Cell";function $yt(e,t,n){return(t=Fyt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fyt(e){var t=Byt(e,"string");return typeof t=="symbol"?t:t+""}function Byt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class jyt{constructor(t){$yt(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function Fte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zyt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fte(Object(n),!0).forEach(function(r){Uyt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uyt(e,t,n){return(t=Vyt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vyt(e){var t=Wyt(e,"string");return typeof t=="symbol"?t:t+""}function Wyt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hyt={cacheSize:2e3,enableCache:!0},D1e=zyt({},Hyt),Bte=new jyt(D1e.cacheSize),Kyt={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},jte="recharts_measurement_span";function qyt(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",s=t.letterSpacing||"",a=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(s,"|").concat(a)}var zte=(e,t)=>{try{var n=document.getElementById(jte);n||(n=document.createElement("span"),n.setAttribute("id",jte),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Kyt,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Hx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||VS.isSsr)return{width:0,height:0};if(!D1e.enableCache)return zte(t,n);var r=qyt(t,n),i=Bte.get(r);if(i)return i;var o=zte(t,n);return Bte.set(r,o),o},L1e;function Gyt(e,t,n){return(t=Yyt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yyt(e){var t=Xyt(e,"string");return typeof t=="symbol"?t:t+""}function Xyt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ute=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vte=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zyt=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Qyt=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Jyt={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ebt=["cm","mm","pt","pc","in","Q","px"];function tbt(e){return ebt.includes(e)}var Uv="NaN";function nbt(e,t){return e*Jyt[t]}class Hi{static parse(t){var n,[,r,i]=(n=Qyt.exec(t))!==null&&n!==void 0?n:[];return r==null?Hi.NaN:new Hi(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,zl(t)&&(this.unit=""),n!==""&&!Zyt.test(n)&&(this.num=NaN,this.unit=""),tbt(n)&&(this.num=nbt(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Hi(NaN,""):new Hi(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Hi(NaN,""):new Hi(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Hi(NaN,""):new Hi(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Hi(NaN,""):new Hi(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return zl(this.num)}}L1e=Hi;Gyt(Hi,"NaN",new L1e(NaN,""));function $1e(e){if(e==null||e.includes(Uv))return Uv;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=Ute.exec(t))!==null&&n!==void 0?n:[],s=Hi.parse(r??""),a=Hi.parse(o??""),l=i==="*"?s.multiply(a):s.divide(a);if(l.isNaN())return Uv;t=t.replace(Ute,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=(c=Vte.exec(t))!==null&&c!==void 0?c:[],h=Hi.parse(u??""),p=Hi.parse(f??""),m=d==="+"?h.add(p):h.subtract(p);if(m.isNaN())return Uv;t=t.replace(Vte,m.toString())}return t}var Wte=/\(([^()]*)\)/;function rbt(e){for(var t=e,n;(n=Wte.exec(t))!=null;){var[,r]=n;t=t.replace(Wte,$1e(r))}return t}function ibt(e){var t=e.replace(/\s+/g,"");return t=rbt(t),t=$1e(t),t}function obt(e){try{return ibt(e)}catch{return Uv}}function r$(e){var t=obt(e.slice(5,-1));return t===Uv?"":t}var sbt=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],abt=["dx","dy","angle","className","breakAll"];function kz(){return kz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kz.apply(null,arguments)}function Hte(e,t){if(e==null)return{};var n,r,i=lbt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lbt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var F1e=/[ \f\n\r\t\v\u2028\u2029]+/,B1e=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];Zn(t)||(n?i=t.toString().split(""):i=t.toString().split(F1e));var o=i.map(a=>({word:a,width:Hx(a,r).width})),s=n?0:Hx(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}};function j1e(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function cbt(e){return Zn(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var z1e=(e,t,n,r)=>e.reduce((i,o)=>{var{word:s,width:a}=o,l=i[i.length-1];if(l&&a!=null&&(t==null||r||l.width+a+n<Number(t)))l.words.push(s),l.width+=a+n;else{var c={words:[s],width:a};i.push(c)}return i},[]),U1e=e=>e.reduce((t,n)=>t.width>n.width?t:n),ubt="â¦",Kte=(e,t,n,r,i,o,s,a)=>{var l=e.slice(0,t),c=B1e({breakAll:n,style:r,children:l+ubt});if(!c)return[!1,[]];var u=z1e(c.wordsWithComputedWidth,o,s,a),d=u.length>i||U1e(u).width>Number(o);return[d,u]},dbt=(e,t,n,r,i)=>{var{maxLines:o,children:s,style:a,breakAll:l}=e,c=Re(o),u=String(s),d=z1e(t,r,n,i);if(!c||i)return d;var f=d.length>o||U1e(d).width>Number(r);
1005if(!f)return d;for(var h=0,p=u.length-1,m=0,g;h<=p&&m<=u.length-1;){var v=Math.floor((h+p)/2),b=v-1,[w,x]=Kte(u,b,l,a,o,r,n,i),[E]=Kte(u,v,l,a,o,r,n,i);if(!w&&!E&&(h=v+1),w&&E&&(p=v-1),!w&&E){g=x;break}m++}return g||d},qte=e=>{var t=Zn(e)?[]:e.toString().split(F1e);return[{words:t,width:void 0}]},fbt=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:s}=e;if((t||n)&&!VS.isSsr){var a,l,c=B1e({breakAll:o,children:r,style:i});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;a=u,l=d}else return qte(r);return dbt({breakAll:o,children:r,maxLines:s,style:i},a,l,t,!!n)}return qte(r)},V1e="#808080",hbt={angle:0,breakAll:!1,capHeight:"0.71em",fill:V1e,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},aN=y.forwardRef((e,t)=>{var n=Vr(e,hbt),{x:r,y:i,lineHeight:o,capHeight:s,fill:a,scaleToFit:l,textAnchor:c,verticalAnchor:u}=n,d=Hte(n,sbt),f=y.useMemo(()=>fbt({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:l,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,l,d.style,d.width]),{dx:h,dy:p,angle:m,className:g,breakAll:v}=d,b=Hte(d,abt);if(!Xc(r)||!Xc(i)||f.length===0)return null;var w=Number(r)+(Re(h)?h:0),x=Number(i)+(Re(p)?p:0);if(!Rt(w)||!Rt(x))return null;var E;switch(u){case"start":E=r$("calc(".concat(s,")"));break;case"middle":E=r$("calc(".concat((f.length-1)/2," * -").concat(o," + (").concat(s," / 2))"));break;default:E=r$("calc(".concat(f.length-1," * -").concat(o,")"));break}var S=[],_=f[0];if(l&&_!=null){var k=_.width,{width:C}=d;S.push("scale(".concat(Re(C)&&Re(k)?C/k:1,")"))}return m&&S.push("rotate(".concat(m,", ").concat(w,", ").concat(x,")")),S.length&&(b.transform=S.join(" ")),y.createElement("text",kz({},xo(b),{ref:t,x:w,y:x,className:Wt("recharts-text",g),textAnchor:c,fill:a.includes("url")?V1e:a}),f.map((T,A)=>{var O=T.words.join(v?"":" ");return y.createElement("tspan",{x:w,dy:A===0?E:o,key:"".concat(O,"-").concat(A)},O)}))});aN.displayName="Text";function Gte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gte(Object(n),!0).forEach(function(r){pbt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pbt(e,t,n){return(t=mbt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mbt(e){var t=gbt(e,"string");return typeof t=="symbol"?t:t+""}function gbt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vbt=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i}=e,{x:o,y:s,height:a,upperWidth:l,lowerWidth:c}=OW(t),u=o,d=o+(l-c)/2,f=(u+d)/2,h=(l+c)/2,p=u+l/2,m=a>=0?1:-1,g=m*r,v=m>0?"end":"start",b=m>0?"start":"end",w=l>=0?1:-1,x=w*r,E=w>0?"end":"start",S=w>0?"start":"end",_=i;if(n==="top"){var k={x:u+l/2,y:s-g,horizontalAnchor:"middle",verticalAnchor:v};return _&&(k.height=Math.max(s-_.y,0),k.width=l),k}if(n==="bottom"){var C={x:d+c/2,y:s+a+g,horizontalAnchor:"middle",verticalAnchor:b};return _&&(C.height=Math.max(_.y+_.height-(s+a),0),C.width=c),C}if(n==="left"){var T={x:f-x,y:s+a/2,horizontalAnchor:E,verticalAnchor:"middle"};return _&&(T.width=Math.max(T.x-_.x,0),T.height=a),T}if(n==="right"){var A={x:f+h+x,y:s+a/2,horizontalAnchor:S,verticalAnchor:"middle"};return _&&(A.width=Math.max(_.x+_.width-A.x,0),A.height=a),A}var O=_?{width:h,height:a}:{};return n==="insideLeft"?ic({x:f+x,y:s+a/2,horizontalAnchor:S,verticalAnchor:"middle"},O):n==="insideRight"?ic({x:f+h-x,y:s+a/2,horizontalAnchor:E,verticalAnchor:"middle"},O):n==="insideTop"?ic({x:u+l/2,y:s+g,horizontalAnchor:"middle",verticalAnchor:b},O):n==="insideBottom"?ic({x:d+c/2,y:s+a-g,horizontalAnchor:"middle",verticalAnchor:v},O):n==="insideTopLeft"?ic({x:u+x,y:s+g,horizontalAnchor:S,verticalAnchor:b},O):n==="insideTopRight"?ic({x:u+l-x,y:s+g,horizontalAnchor:E,verticalAnchor:b},O):n==="insideBottomLeft"?ic({x:d+x,y:s+a-g,horizontalAnchor:S,verticalAnchor:v},O):n==="insideBottomRight"?ic({x:d+c-x,y:s+a-g,horizontalAnchor:E,verticalAnchor:v},O):n&&typeof n=="object"&&(Re(n.x)||Um(n.x))&&(Re(n.y)||Um(n.y))?ic({x:o+yo(n.x,h),y:s+yo(n.y,a),horizontalAnchor:"end",verticalAnchor:"end"},O):ic({x:p,y:s+a/2,horizontalAnchor:"middle",verticalAnchor:"middle"},O)},ybt=["labelRef"],bbt=["content"];function Yte(e,t){if(e==null)return{};var n,r,i=wbt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wbt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Xte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1005t%2?Xte(Object(n),!0).forEach(function(r){xbt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xbt(e,t,n){return(t=Ebt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ebt(e){var t=Sbt(e,"string");return typeof t=="symbol"?t:t+""}function Sbt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(null,arguments)}var W1e=y.createContext(null),_bt=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:s,children:a}=e,l=y.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:o,height:s}),[t,n,r,i,o,s]);return y.createElement(W1e.Provider,{value:l},a)},H1e=()=>{var e=y.useContext(W1e),t=FM();return e||(t?OW(t):void 0)},kbt=y.createContext(null),Cbt=()=>{var e=y.useContext(kbt),t=Be(Hxe);return e||t},Tbt=e=>{var{value:t,formatter:n}=e,r=Zn(e.children)?t:e.children;return typeof n=="function"?n(r):r},VH=e=>e!=null&&typeof e=="function",Abt=(e,t)=>{var n=Ai(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Obt=(e,t,n,r,i)=>{var{offset:o,className:s}=e,{cx:a,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:f,clockWise:h}=i,p=(c+u)/2,m=Abt(d,f),g=m>=0?1:-1,v,b;switch(t){case"insideStart":v=d+g*o,b=h;break;case"insideEnd":v=f-g*o,b=!h;break;case"end":v=f+g*o,b=h;break;default:throw new Error("Unsupported position ".concat(t))}b=m<=0?b:!b;var w=ei(a,l,p,v),x=ei(a,l,p,v+(b?1:-1)*359),E="M".concat(w.x,",").concat(w.y,` 1006 A`).concat(p,",").concat(p,",0,1,").concat(b?0:1,`, 1007 `).concat(x.x,",").concat(x.y),S=Zn(e.id)?n1("recharts-radial-line-"):e.id;return y.createElement("text",Ku({},r,{dominantBaseline:"central",className:Wt("recharts-radial-bar-label",s)}),y.createElement("defs",null,y.createElement("path",{id:S,d:E})),y.createElement("textPath",{xlinkHref:"#".concat(S)},n))},Pbt=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:a,endAngle:l}=e,c=(a+l)/2;if(n==="outside"){var{x:u,y:d}=ei(r,i,s+t,c);return{x:u,y:d,textAnchor:u>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(o+s)/2,{x:h,y:p}=ei(r,i,f,c);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}},BT=e=>e!=null&&"cx"in e&&Re(e.cx),Ibt={angle:0,offset:5,zIndex:$r.label,position:"middle",textBreakAll:!1};function Rbt(e){if(!BT(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function sf(e){var t=Vr(e,Ibt),{viewBox:n,parentViewBox:r,position:i,value:o,children:s,content:a,className:l="",textBreakAll:c,labelRef:u}=t,d=Cbt(),f=H1e(),h=i==="center"?f:d??f,p,m,g;n==null?p=h:BT(n)?p=n:p=OW(n);var v=Rbt(p);if(!p||Zn(o)&&Zn(s)&&!y.isValidElement(a)&&typeof a!="function")return null;var b=sx(sx({},t),{},{viewBox:p});if(y.isValidElement(a)){var{labelRef:w}=b,x=Yte(b,ybt);return y.cloneElement(a,x)}if(typeof a=="function"){var{content:E}=b,S=Yte(b,bbt);if(m=y.createElement(a,S),y.isValidElement(m))return m}else m=Tbt(t);var _=xo(t);if(BT(p)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Obt(t,i,m,_,p);g=Pbt(p,t.offset,t.position)}else{if(!v)return null;var k=vbt({viewBox:v,position:i,offset:t.offset,parentViewBox:BT(r)?void 0:r});g=sx(sx({x:k.x,y:k.y,textAnchor:k.horizontalAnchor,verticalAnchor:k.verticalAnchor},k.width!==void 0?{width:k.width}:{}),k.height!==void 0?{height:k.height}:{})}return y.createElement(Qo,{zIndex:t.zIndex},y.createElement(aN,Ku({ref:u,className:Wt("recharts-label",l)},_,g,{textAnchor:j1e(_.textAnchor)?_.textAnchor:g.textAnchor,breakAll:c}),m))}sf.displayName="Label";var Mbt=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?y.createElement(sf,Ku({key:"label-implicit"},r)):Xc(e)?y.createElement(sf,Ku({key:"label-implicit",value:e},r)):y.isValidElement(e)?e.type===sf?y.cloneElement(e,sx({key:"label-implicit"},r)):y.createElement(sf,Ku({key:"label-implicit",content:e},r)):VH(e)?y.createElement(sf,Ku({key:"label-implicit",content:e},r)):e&&typeof e=="object"?y.createElement(sf,Ku({},e,{key:"label-implicit"},r)):null};function Nbt(e){var{label:t,labelRef:n}=e,r=H1e();return Mbt(t,r,n)||null}var Dbt=["valueAccessor"],Lbt=["dataKey","clockWise","id","textBreakAll","zIndex"];function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bP.apply(null,arguments)}function Zte(e,t){if(e==null)return{};var n,r,i=$bt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $bt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Fbt=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(cbt(t))return t},K1e=y.createContext(void 0),WH=K1e.Provider,q1e=y.createContext(void 0),Bbt=q1e.Provider;function jbt(){return y.useContext(K1e)}function zbt(){return y.useContext(q1e)}function jT(e){var{valueAccessor:t=Fbt}=e,n=Zte(e,Dbt),{dataKey:r,clockWise:i,id:o,textBreakAll:s,zIndex:a}=n,l=Zte(n,Lbt),c=jbt(),u=zbt(),d=c||u;
1007return!d||!d.length?null:y.createElement(Qo,{zIndex:a??$r.label},y.createElement(vr,{className:"recharts-label-list"},d.map((f,h)=>{var p,m=Zn(r)?t(f,h):Zt(f.payload,r),g=Zn(o)?{}:{id:"".concat(o,"-").concat(h)};return y.createElement(sf,bP({key:"label-".concat(h)},xo(f),l,g,{fill:(p=n.fill)!==null&&p!==void 0?p:f.fill,parentViewBox:f.parentViewBox,value:m,textBreakAll:s,viewBox:f.viewBox,index:h,zIndex:0}))})))}jT.displayName="LabelList";function lN(e){var{label:t}=e;return t?t===!0?y.createElement(jT,{key:"labelList-implicit"}):y.isValidElement(t)||VH(t)?y.createElement(jT,{key:"labelList-implicit",content:t}):typeof t=="object"?y.createElement(jT,bP({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Cz(){return Cz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cz.apply(null,arguments)}var G1e=e=>{var{cx:t,cy:n,r,className:i}=e,o=Wt("recharts-dot",i);return Re(t)&&Re(n)&&Re(r)?y.createElement("circle",Cz({},Ho(e),lW(e),{className:o,cx:t,cy:n,r})):null},Y1e=e=>e.graphicalItems.polarItems,Ubt=q([br,qS],gH),cN=q([Y1e,Mr,Ubt],vH),Vbt=q([cN],yH),uN=q([Vbt,WS],bH),Wbt=q([uN,Mr,cN],LEe);q([uN,Mr,cN],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,s=Zt(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:Zt(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var Qte=()=>{},Hbt=q([uN,Mr,cN,tN,br,Tft],_H),Kbt=q([Mr,EH,SH,Qte,Hbt,Qte,Ut,br],kH),X1e=q([Mr,Ut,uN,Wbt,KS,br,Kbt],CH),qbt=q([X1e,f0,Hh],AH),Gbt=q([Mr,X1e,qbt,br],PH);q([Hh,Gbt],qxe);var Ybt={radiusAxis:{},angleAxis:{}},Z1e=So({name:"polarAxis",initialState:Ybt,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Knn,removeRadiusAxis:qnn,addAngleAxis:Gnn,removeAngleAxis:Ynn}=Z1e.actions,Xbt=Z1e.reducer;function Q1e(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Jte(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ene(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jte(Object(n),!0).forEach(function(r){Zbt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jte(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zbt(e,t,n){return(t=Qbt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qbt(e){var t=Jbt(e,"string");return typeof t=="symbol"?t:t+""}function Jbt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var e0t=(e,t)=>t,HH=q([Y1e,e0t],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),t0t=[],KH=(e,t,n)=>(n==null?void 0:n.length)===0?t0t:n,J1e=q([WS,HH,KH],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if((t==null?void 0:t.data)!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>ene(ene({},t.presentationProps),o.props))),i!=null)return i}}),n0t=q([J1e,HH,KH],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,s=Zt(r,t.nameKey,t.name),a;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?a=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?a=r.fill:a=t.fill,{value:zh(s,t.dataKey),color:a,payload:r,type:t.legendType}})}),r0t=q([J1e,HH,KH,gi],(e,t,n,r)=>{if(!(t==null||e==null))return owt({offset:r,pieSettings:t,displayedData:e,cells:n})}),eSe={exports:{}},On={};/** 1008 * @license React 1009 * react-is.production.js 1010 * 1011 * Copyright (c) Meta Platforms, Inc. and affiliates. 1012 * 1013 * This source code is licensed under the MIT license found in the 1014 * LICENSE file in the root directory of this source tree. 1015 */var qH=Symbol.for("react.transitional.element"),GH=Symbol.for("react.portal"),dN=Symbol.for("react.fragment"),fN=Symbol.for("react.strict_mode"),hN=Symbol.for("react.profiler"),pN=Symbol.for("react.consumer"),mN=Symbol.for("react.context"),gN=Symbol.for("react.forward_ref"),vN=Symbol.for("react.suspense"),yN=Symbol.for("react.suspense_list"),bN=Symbol.for("react.memo"),wN=Symbol.for("react.lazy"),i0t=Symbol.for("react.view_transition"),o0t=Symbol.for("react.client.reference");function Ga(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qH:switch(e=e.type,e){case dN:case hN:case fN:case vN:case yN:case i0t:return e;default:switch(e=e&&e.$$typeof,e){case mN:case gN:case wN:case bN:return e;case pN:return e;default:return t}}case GH:return t}}}On.ContextConsumer=pN;On.ContextProvider=mN;On.Element=qH;On.ForwardRef=gN;On.Fragment=dN;On.Lazy=wN;On.Memo=bN;On.Portal=GH;On.Profiler=hN;On.StrictMode=fN;On.Suspense=vN;On.SuspenseList=yN;On.isContextConsumer=function(e){return Ga(e)===pN};On.isContextProvider=function(e){return Ga(e)===mN};On.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qH};On.isForwardRef=function(e){return Ga(e)===gN};On.isFragment=function(e){return Ga(e)===dN};On.isLazy=function(e){return Ga(e)===wN};On.isMemo=function(e){return Ga(e)===bN};On.isPortal=function(e){return Ga(e)===GH};On.isProfiler=function(e){return Ga(e)===hN};On.isStrictMode=function(e){return Ga(e)===fN};On.isSuspense=function(e){return Ga(e)===vN};On.isSuspenseList=function(e){return Ga(e)===yN};On.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dN||e===hN||e===fN||e===vN||e===yN||typeof e=="object"&&e!==null&&(e.$$typeof===wN||e.$$typeof===bN||e.$$typeof===mN||e.$$typeof===pN||e.$$typeof===gN||e.$$typeof===o0t||e.getModuleId!==void 0)};On.typeOf=Ga;
1015eSe.exports=On;var s0t=eSe.exports,tne=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",nne=null,i$=null,tSe=e=>{if(e===nne&&Array.isArray(i$))return i$;var t=[];return y.Children.forEach(e,n=>{Zn(n)||(s0t.isFragment(n)?t=t.concat(tSe(n.props.children)):t.push(n))}),i$=t,nne=e,t};function YH(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>tne(i)):r=[tne(t)],tSe(e).forEach(i=>{var o=zm(i,"type.displayName")||zm(i,"type.name");o&&r.indexOf(o)!==-1&&n.push(i)}),n}var XH=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,nSe={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(nSe);var a0t=nSe.isPlainObject;const l0t=yr(a0t);var rne,ine,one,sne,ane;function lne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lne(Object(n),!0).forEach(function(r){c0t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c0t(e,t,n){return(t=u0t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u0t(e){var t=d0t(e,"string");return typeof t=="symbol"?t:t+""}function d0t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wP(){return wP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wP.apply(null,arguments)}function gw(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var une=(e,t,n,r,i)=>{var o=n-r,s;return s=Tr(rne||(rne=gw(["M ",",",""])),e,t),s+=Tr(ine||(ine=gw(["L ",",",""])),e+n,t),s+=Tr(one||(one=gw(["L ",",",""])),e+n-o/2,t+i),s+=Tr(sne||(sne=gw(["L ",",",""])),e+n-o/2-r,t+i),s+=Tr(ane||(ane=gw(["L ",","," Z"])),e,t),s},f0t={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},h0t=e=>{var t=Vr(e,f0t),{x:n,y:r,upperWidth:i,lowerWidth:o,height:s,className:a}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,f=y.useRef(null),[h,p]=y.useState(-1),m=y.useRef(i),g=y.useRef(o),v=y.useRef(s),b=y.useRef(n),w=y.useRef(r),x=a0(e,"trapezoid-");if(y.useEffect(()=>{if(f.current&&f.current.getTotalLength)try{var I=f.current.getTotalLength();I&&p(I)}catch{}},[]),n!==+n||r!==+r||i!==+i||o!==+o||s!==+s||i===0&&o===0||s===0)return null;var E=Wt("recharts-trapezoid",a);if(!d)return y.createElement("g",null,y.createElement("path",wP({},xo(t),{className:E,d:une(n,r,i,o,s)})));var S=m.current,_=g.current,k=v.current,C=b.current,T=w.current,A="0px ".concat(h===-1?1:h,"px"),O="".concat(h,"px ").concat(h,"px"),R=fxe(["strokeDasharray"],c,l);return y.createElement(s0,{animationId:x,key:x,canBegin:h>0,duration:c,easing:l,isActive:d,begin:u},I=>{var F=un(S,i,I),N=un(_,o,I),B=un(k,s,I),M=un(C,n,I),L=un(T,r,I);f.current&&(m.current=F,g.current=N,v.current=B,b.current=M,w.current=L);var P=I>0?{transition:R,strokeDasharray:O}:{strokeDasharray:A};return y.createElement("path",wP({},xo(t),{className:E,d:une(M,L,F,N,B),ref:f,style:cne(cne({},P),t.style)}
1015))})},p0t=["option","shapeType","activeClassName","inActiveClassName"];function m0t(e,t){if(e==null)return{};var n,r,i=g0t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g0t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dne(Object(n),!0).forEach(function(r){v0t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v0t(e,t,n){return(t=y0t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0t(e){var t=b0t(e,"string");return typeof t=="symbol"?t:t+""}function b0t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w0t(e,t){return xP(xP({},t),e)}function x0t(e,t){return e==="symbols"}function fne(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return y.createElement(gxe,n);case"trapezoid":return y.createElement(h0t,n);case"sector":return y.createElement(wxe,n);case"symbols":if(x0t(t))return y.createElement(aW,n);break;case"curve":return y.createElement(cy,n);default:return null}}function E0t(e){return y.isValidElement(e)?e.props:e}function ZH(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,o=m0t(e,p0t),s;if(y.isValidElement(t))s=y.cloneElement(t,xP(xP({},o),E0t(t)));else if(typeof t=="function")s=t(o,o.index);else if(l0t(t)&&typeof t!="boolean"){var a=w0t(t,o);s=y.createElement(fne,{shapeType:n,elementProps:a})}else{var l=o;s=y.createElement(fne,{shapeType:n,elementProps:l})}return o.isActive?y.createElement(vr,{className:r},s):y.createElement(vr,{className:i},s)}var QH=(e,t,n)=>{var r=_n();return(i,o)=>s=>{e==null||e(i,o,s),r(a1e({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},JH=e=>{var t=_n();return(n,r)=>i=>{e==null||e(n,r,i),t(Igt())}},e9=(e,t,n)=>{var r=_n();return(i,o)=>s=>{e==null||e(i,o,s),r(Rgt({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function xN(e){var{tooltipEntrySettings:t}=e,n=_n(),r=Ni(),i=y.useRef(null);return y.useLayoutEffect(()=>{r||(i.current===null?n(Tgt(t)):i.current!==t&&n(Agt({prev:i.current,next:t})),i.current=t)},[t,n,r]),y.useLayoutEffect(()=>()=>{i.current&&(n(Ogt(i.current)),i.current=null)},[n]),null}function t9(e){var{legendPayload:t}=e,n=_n(),r=Ni(),i=y.useRef(null);return y.useLayoutEffect(()=>{r||(i.current===null?n(axe(t)):i.current!==t&&n(lxe({prev:i.current,next:t})),i.current=t)},[n,r,t]),y.useLayoutEffect(()=>()=>{i.current&&(n(cxe(i.current)),i.current=null)},[n]),null}function S0t(e){var{legendPayload:t}=e,n=_n(),r=Be(Ut),i=y.useRef(null);return y.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(i.current===null?n(axe(t)):i.current!==t&&n(lxe({prev:i.current,next:t})),i.current=t)},[n,r,t]),y.useLayoutEffect(()=>()=>{i.current&&(n(cxe(i.current)),i.current=null)},[n]),null}var o$,_0t=()=>{var[e]=y.useState(()=>n1("uid-"));return e},k0t=(o$=Lb.useId)!==null&&o$!==void 0?o$:_0t;function C0t(e,t){var n=k0t();return t||(e?"".concat(e,"-").concat(n):n)}var T0t=y.createContext(void 0),EN=e=>{var{id:t,type:n,children:r}=e,i=C0t("recharts-".concat(n),t);return y.createElement(T0t.Provider,{value:i},r(i))},A0t={cartesianItems:[],polarItems:[]},rSe=So({name:"graphicalItems",initialState:A0t,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Hn()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ia(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},prepare:Hn()},removeCartesianGraphicalItem:{reducer(e,t){var n=Ia(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:Hn()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Hn()},removePolarGraphicalItem:{reducer(e,t){var n=Ia(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:Hn()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ia(e).polarItems.indexOf(n);i>-1&&(e.polarItems[i]=r)},prepare:Hn()}}}),{addCartesianGraphicalItem:O0t,replaceCartesianGraphicalItem:P0t,removeCartesianGraphicalItem:
1015I0t,addPolarGraphicalItem:R0t,removePolarGraphicalItem:M0t,replacePolarGraphicalItem:N0t}=rSe.actions,D0t=rSe.reducer,L0t=e=>{var t=_n(),n=y.useRef(null);return y.useLayoutEffect(()=>{n.current===null?t(O0t(e)):n.current!==e&&t(P0t({prev:n.current,next:e})),n.current=e},[t,e]),y.useLayoutEffect(()=>()=>{n.current&&(t(I0t(n.current)),n.current=null)},[t]),null},n9=y.memo(L0t),$0t=e=>{var t=_n(),n=y.useRef(null);return y.useLayoutEffect(()=>{n.current===null?t(R0t(e)):n.current!==e&&t(N0t({prev:n.current,next:e})),n.current=e},[t,e]),y.useLayoutEffect(()=>()=>{n.current&&(t(M0t(n.current)),n.current=null)},[t]),null},F0t=y.memo($0t),B0t=["key"],j0t=["onMouseEnter","onClick","onMouseLeave"],z0t=["id"],U0t=["id"];function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(null,arguments)}function SN(e,t){if(e==null)return{};var n,r,i=V0t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function V0t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hne(Object(n),!0).forEach(function(r){W0t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W0t(e,t,n){return(t=H0t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0t(e){var t=K0t(e,"string");return typeof t=="symbol"?t:t+""}function K0t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q0t(e){var t=y.useMemo(()=>YH(e.children,sN),[e.children]),n=Be(r=>n0t(r,e.id,t));return n==null?null:y.createElement(S0t,{legendPayload:n})}function G0t(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(y.isValidElement(e)){var t,n=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof n=="string"?n:void 0}var{fill:r}=e;return typeof r=="string"?r:void 0}}var Y0t=y.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:o,fill:s,name:a,hide:l,tooltipType:c,id:u,activeShape:d}=e,f=G0t(d),h=r.map(m=>{var g=m.tooltipPayload;return f==null||g==null?g:g.map(v=>or(or({},v),{},{color:f,fill:f}))}),p={dataDefinedOnItem:h,getPosition:m=>{var g;return(g=r[Number(m)])===null||g===void 0?void 0:g.tooltipPosition},settings:{stroke:i,strokeWidth:o,fill:s,dataKey:t,nameKey:n,name:zh(a,t),hide:l,type:c,color:s,unit:"",graphicalItemId:u}};return y.createElement(xN,{tooltipEntrySettings:p})}),X0t=(e,t)=>e>t?"start":e<t?"end":"middle",Z0t=(e,t,n)=>yo(typeof t=="function"?t(e):t,n,n*.8),Q0t=(e,t,n)=>{var{top:r,left:i,width:o,height:s}=t,a=vxe(o,s),l=i+yo(e.cx,o,o/2),c=r+yo(e.cy,s,s/2),u=yo(e.innerRadius,a,0),d=Z0t(n,e.outerRadius,a),f=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:f}},J0t=(e,t)=>{var n=Ai(t-e),r=Math.min(Math.abs(t-e),360);return n*r},ewt=(e,t)=>{if(y.isValidElement(e))return y.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Wt("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:r}=t,i=SN(t,B0t);return y.createElement(cy,xh({},i,{type:"linear",className:n}))},twt=(e,t,n)=>{if(y.isValidElement(e))return y.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),y.isValidElement(r)))return r;var i=Wt("recharts-pie-label-text",Q1e(e));return y.createElement(aN,xh({},t,{alignmentBaseline:"middle",className:i}),r)};function nwt(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:o,dataKey:s}=n;if(!r||!i||!t)return null;var a=Ho(n),l=Bm(i),c=Bm(o),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,d=t.map((f,h)=>{var p=(f.startAngle+f.endAngle)/2,m=ei(f.cx,f.cy,f.outerRadius+u,p),g=or(or(or(or({},a),f),{},{stroke:"none"},l),{},{index:h,textAnchor:X0t(m.x,f.cx)},m),v=or(or(or(or({},a),f),{},{fill:"none",stroke:f.fill},c),{},{index:h,points:[ei(f.cx,f.cy,f.outerRadius,p),m],key:"line"});return y.createElement(Qo,{zIndex:$r.label,key:"label-".concat(f.startAngle,"-").concat(f.endAngle,"-").concat(f.midAngle,"-").concat(h)},y.createElement(vr,null,o&&ewt(o,v),twt(i,g,Zt(f,s))))});return y.createElement(vr,{className:"recharts-pie-labels"},d)}function rwt(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i=="object"&&i!=null&&"position"in i?y.createElement(lN,{label:i}):y.createElement(nwt,{sectors:t,props:n,showLabels:r})}function iwt(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:o,id:s}=e,a=Be(wh),l=Be(FH),c=Be(S1e),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,h=SN(i,j0t),p=QH(u,i.dataKey,s),m=JH(f),g=e9(d,i.dataKey,s);return t==null||t.length===0?null:y.createElement(y.Fragment,null,t.map((v,b)=>{if((v==null?void 0:v.startAngle)===0&&(v==null?void 0:v.endAngle)===0&&t.length!==1)return null;var w=c==null||c===s,x=String(b)===a&&(l==null||i.dataKey===l)&&w,E=a?r:null,S=n&&x?n:E,_=or(or({},v),{},{stroke:v.stroke,tabIndex:-1,[Wwe]:b,[Hwe]:s});
1015return y.createElement(vr,xh({key:"sector-".concat(v==null?void 0:v.startAngle,"-").concat(v==null?void 0:v.endAngle,"-").concat(v.midAngle,"-").concat(b),tabIndex:-1,className:"recharts-pie-sector"},LS(h,v,b),{onMouseEnter:p(v,b),onMouseLeave:m(v,b),onClick:g(v,b)}),y.createElement(ZH,xh({option:o??S,index:b,shapeType:"sector",isActive:x},_)))}))}function owt(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:o}=e,{cornerRadius:s,startAngle:a,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=n,f=Math.abs(n.minAngle),h=J0t(a,l),p=Math.abs(h),m=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,g=r.filter(k=>Zt(k,c,0)!==0).length,v=(p>=360?g:g-1)*m,b=r.reduce((k,C)=>{var T=Zt(C,c,0);return k+(Re(T)?T:0)},0),w=f>0&&b>0&&r.some(k=>{var C=Zt(k,c,0),T=(Re(C)?C:0)/b;return C!==0&&T*p<f}),x=w?f:0,E=p-g*x-v,S;if(b>0){var _;S=r.map((k,C)=>{var T=Zt(k,c,0),A=Zt(k,u,C),O=Q0t(n,o,k),R=(Re(T)?T:0)/b,I,F=or(or({},k),i&&i[C]&&i[C].props),N=F!=null&&"fill"in F&&typeof F.fill=="string"?F.fill:n.fill;C?I=_.endAngle+Ai(h)*m*(T!==0?1:0):I=a;var B=I+Ai(h)*((T!==0?x:0)+R*E),M=(I+B)/2,L=(O.innerRadius+O.outerRadius)/2,P=[{name:A,value:T,payload:F,dataKey:c,type:d,color:N,fill:N,graphicalItemId:n.id}],G=ei(O.cx,O.cy,L,M);return _=or(or(or(or({},n.presentationProps),{},{percent:R,cornerRadius:typeof s=="string"?parseFloat(s):s,name:A,tooltipPayload:P,midAngle:M,middleRadius:L,tooltipPosition:G},F),O),{},{value:T,dataKey:c,startAngle:I,endAngle:B,payload:F,paddingAngle:T!==0?Ai(h)*m:0}),_})}return S}function swt(e){var{showLabels:t,sectors:n,children:r}=e,i=y.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return y.createElement(Bbt,{value:t?i:void 0},r)}function awt(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:o,animationBegin:s,animationDuration:a,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:d,onAnimationEnd:f}=t,h=a0(t,"recharts-pie-"),p=n.current,[m,g]=y.useState(!1),v=y.useCallback(()=>{typeof f=="function"&&f(),g(!1)},[f]),b=y.useCallback(()=>{typeof d=="function"&&d(),g(!0)},[d]);return y.createElement(swt,{showLabels:!m,sectors:i},y.createElement(s0,{animationId:h,begin:s,duration:a,isActive:o,easing:l,onAnimationStart:b,onAnimationEnd:v,key:h},w=>{var x,E=[],S=i&&i[0],_=(x=S==null?void 0:S.startAngle)!==null&&x!==void 0?x:0;return i==null||i.forEach((k,C)=>{var T=p&&p[C],A=C>0?zm(k,"paddingAngle",0):0;if(T){var O=un(T.endAngle-T.startAngle,k.endAngle-k.startAngle,w),R=or(or({},k),{},{startAngle:_+A,endAngle:_+O+A});E.push(R),_=R.endAngle}else{var{endAngle:I,startAngle:F}=k,N=un(0,I-F,w),B=or(or({},k),{},{startAngle:_+A,endAngle:_+N+A});E.push(B),_=B.endAngle}}),n.current=E,y.createElement(vr,null,y.createElement(iwt,{sectors:E,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),y.createElement(rwt,{showLabels:!m,sectors:i,props:t}),t.children)}var lwt={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:$r.area};function cwt(e){var{id:t}=e,n=SN(e,z0t),{hide:r,className:i,rootTabIndex:o}=e,s=y.useMemo(()=>YH(e.children,sN),[e.children]),a=Be(u=>r0t(u,t,s)),l=y.useRef(null),c=Wt("recharts-pie",i);return r||a==null?(l.current=null,y.createElement(vr,{tabIndex:o,className:c})):y.createElement(Qo,{zIndex:e.zIndex},y.createElement(Y0t,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:a,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),y.createElement(vr,{tabIndex:o,className:c},y.createElement(awt,{props:or(or({},n),{},{sectors:a}),previousSectorsRef:l,id:t})))}function uwt(e){var t=Vr(e,lwt),{id:n}=t,r=SN(t,U0t),i=Ho(r);return y.createElement(EN,{id:n,type:"pie"},o=>y.createElement(y.Fragment,null,y.createElement(F0t,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),y.createElement(q0t,xh({},r,{id:o})),y.createElement(cwt,xh({},r,{id:o}))))}var dwt=uwt;dwt.displayName="Pie";var fwt=["points"];function pne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1015t%2?pne(Object(n),!0).forEach(function(r){hwt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hwt(e,t,n){return(t=pwt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pwt(e){var t=mwt(e,"string");return typeof t=="symbol"?t:t+""}function mwt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EP(){return EP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EP.apply(null,arguments)}function gwt(e,t){if(e==null)return{};var n,r,i=vwt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vwt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ywt(e){var{option:t,dotProps:n,className:r}=e;if(y.isValidElement(t))return y.cloneElement(t,n);if(typeof t=="function")return t(n);var i=Wt(r,typeof t!="boolean"?t.className:""),o=n??{},{points:s}=o,a=gwt(o,fwt);return y.createElement(G1e,EP({},a,{className:i}))}function bwt(e,t){return e==null?!1:t?!0:e.length===1}function iSe(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:o,baseProps:s,needClip:a,clipPathId:l,zIndex:c=$r.scatter}=e;if(!bwt(t,n))return null;var u=XH(n),d=Sst(n),f=t.map((p,m)=>{var g,v,b=s$(s$(s$({r:3},s),d),{},{index:m,cx:(g=p.x)!==null&&g!==void 0?g:void 0,cy:(v=p.y)!==null&&v!==void 0?v:void 0,dataKey:o,value:p.value,payload:p.payload,points:t});return y.createElement(ywt,{key:"dot-".concat(m),option:n,dotProps:b,className:i})}),h={};return a&&l!=null&&(h.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),y.createElement(Qo,{zIndex:c},y.createElement(vr,EP({className:r},h),f))}function mne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mne(Object(n),!0).forEach(function(r){wwt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wwt(e,t,n){return(t=xwt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xwt(e){var t=Ewt(e,"string");return typeof t=="symbol"?t:t+""}function Ewt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oSe=0,Swt={xAxis:{},yAxis:{},zAxis:{}},sSe=So({name:"cartesianAxis",initialState:Swt,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Hn()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:Hn()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Hn()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Hn()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:Hn()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Hn()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Hn()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:Hn()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Hn()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var o,s=i.widthHistory||[];if(s.length===3&&s[0]===s[2]&&r===s[1]&&r!==i.width&&Math.abs(r-((o=s[0])!==null&&o!==void 0?o:0))<=1)return;var a=[...s,r].slice(-3);e.yAxis[n]=gne(gne({},i),{}
1015,{width:r,widthHistory:a})}}}}),{addXAxis:_wt,replaceXAxis:kwt,removeXAxis:Cwt,addYAxis:Twt,replaceYAxis:Awt,removeYAxis:Owt,addZAxis:Xnn,replaceZAxis:Znn,removeZAxis:Qnn,updateYAxisWidth:Pwt}=sSe.actions,Iwt=sSe.reducer,Rwt=q([gi],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Mwt=q([Rwt,Od,Pd],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),_N=()=>Be(Mwt),Nwt=()=>Be(Cvt);function vne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vne(Object(n),!0).forEach(function(r){Dwt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dwt(e,t,n){return(t=Lwt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lwt(e){var t=$wt(e,"string");return typeof t=="symbol"?t:t+""}function $wt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fwt=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o,clipPath:s}=e;if(i===!1||t.x==null||t.y==null)return null;var a={index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=a$(a$(a$({},a),Bm(i)),lW(i)),c;return y.isValidElement(i)?c=y.cloneElement(i,l):typeof i=="function"?c=i(l):c=y.createElement(G1e,l),y.createElement(vr,{className:"recharts-active-dot",clipPath:s},c)};function Tz(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:o,zIndex:s=$r.activeDot}=e,a=Be(wh),l=Nwt();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return Zn(c)?null:y.createElement(Qo,{zIndex:s},y.createElement(Fwt,{point:c,childIndex:Number(a),mainColor:n,dataKey:i,activeDot:r,clipPath:o}))}var yne=(e,t,n)=>{var r=n??e;if(!Zn(r))return yo(r,t,0)},Bwt=(e,t,n)=>{var r={},i=e.filter(KM),o=e.filter(c=>c.stackId==null),s=i.reduce((c,u)=>{var d=c[u.stackId];return d==null&&(d=[]),d.push(u),c[u.stackId]=d,c},r),a=Object.entries(s).map(c=>{var u,[d,f]=c,h=f.map(m=>m.dataKey),p=yne(t,n,(u=f[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:h,barSize:p}}),l=o.map(c=>{var u=[c.dataKey].filter(f=>f!=null),d=yne(t,n,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...a,...l]};function bne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bne(Object(n),!0).forEach(function(r){jwt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jwt(e,t,n){return(t=zwt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zwt(e){var t=Uwt(e,"string");return typeof t=="symbol"?t:t+""}function Uwt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vwt(e,t,n,r,i){var o,s=r.length;if(!(s<1)){var a=yo(e,n,0,!0),l,c=[];if(Rt((o=r[0])===null||o===void 0?void 0:o.barSize)){var u=!1,d=n/s,f=r.reduce((b,w)=>b+(w.barSize||0),0);f+=(s-1)*a,f>=n&&(f-=(s-1)*a,a=0),f>=n&&d>0&&(u=!0,d*=.9,f=s*d);var h=(n-f)/2>>0,p={offset:h-a,size:0};l=r.reduce((b,w)=>{var x,E={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:p.offset+p.size+a,size:u?d:(x=w.barSize)!==null&&x!==void 0?x:0}},S=[...b,E];return p=E.position,S},c)}else{var m=yo(t,n,0,!0);n-2*m-(s-1)*a<=0&&(a=0);var g=(n-2*m-(s-1)*a)/s;g>1&&(g>>=0);var v=Rt(i)?Math.min(g,i):g;l=r.reduce((b,w,x)=>[...b,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(g+a)*x+(g-v)/2,size:v}}],c)}return l}}var Wwt=(e,t,n,r,i,o,s)=>{var a=Zn(s)?t:s,l=Vwt(n,r,i!==o?i:o,e,a);return i!==o&&l!=null&&(l=l.map(c=>rC(rC({},c),{},{position:rC(rC({},c.position),{},{offset:c.position.offset-i/2})}))),l},Hwt=(e,t)=>
1015{var n=HM(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(s=>s.key===n)}}}},Kwt=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function qwt(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Rt(e.zIndex)?e.zIndex:t}var aSe=e=>{var{chartData:t}=e,n=_n(),r=Ni();return y.useEffect(()=>r?()=>{}:(n(Mte(t)),()=>{n(Mte(void 0))}),[t,n,r]),null},wne={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},lSe=So({name:"brush",initialState:wne,reducers:{setBrushSettings(e,t){return t.payload==null?wne:t.payload}}}),{setBrushSettings:Jnn}=lSe.actions,Gwt=lSe.reducer;function Ywt(e){return(e%180+180)%180}var Xwt=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Ywt(i),s=o*Math.PI/180,a=Math.atan(r/n),l=s>a&&s<Math.PI-a?r/Math.sin(s):n/Math.cos(s);return Math.abs(l)},Zwt={dots:[],areas:[],lines:[]},cSe=So({name:"referenceElements",initialState:Zwt,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Ia(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Ia(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Ia(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:ern,removeDot:trn,addArea:nrn,removeArea:rrn,addLine:irn,removeLine:orn}=cSe.actions,Qwt=cSe.reducer,Jwt=y.createContext(void 0),ext=e=>{var{children:t}=e,[n]=y.useState("".concat(n1("recharts"),"-clip")),r=_N();if(r==null)return null;var{x:i,y:o,width:s,height:a}=r;return y.createElement(Jwt.Provider,{value:n},y.createElement("defs",null,y.createElement("clipPath",{id:n},y.createElement("rect",{x:i,y:o,height:a,width:s}))),t)};function uSe(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function txt(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Xwt(r,n)}function nxt(e,t,n){var r=n==="width",{x:i,y:o,width:s,height:a}=e;return t===1?{start:r?i:o,end:r?i+s:o+a}:{start:r?i+s:o+a,end:r?i:o}}function g1(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function rxt(e,t){return uSe(e,t+1)}function ixt(e,t,n,r,i){for(var o=(r||[]).slice(),{start:s,end:a}=t,l=0,c=1,u=s,d=function(){var p=r==null?void 0:r[l];if(p===void 0)return{v:uSe(r,c)};var m=l,g,v=()=>(g===void 0&&(g=n(p,m)),g),b=p.coordinate,w=l===0||g1(e,b,v,u,a);
1015w||(l=0,u=s,c+=1),w&&(u=b+e*(v()/2+i),l+=c)},f;c<=o.length;)if(f=d(),f)return f.v;return[]}function oxt(e,t,n,r,i){var o=(r||[]).slice(),s=o.length;if(s===0)return[];for(var{start:a,end:l}=t,c=1;c<=s;c++){for(var u=(s-1)%c,d=a,f=!0,h=function(){var x=r[m];if(x==null)return 0;var E=m,S,_=()=>(S===void 0&&(S=n(x,E)),S),k=x.coordinate,C=m===u||g1(e,k,_,d,l);if(!C)return f=!1,1;C&&(d=k+e*(_()/2+i))},p,m=u;m<s&&(p=h(),!(p!==0&&p===1));m+=c);if(f){for(var g=[],v=u;v<s;v+=c){var b=r[v];b!=null&&g.push(b)}return g}}return[]}function xne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xne(Object(n),!0).forEach(function(r){sxt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sxt(e,t,n){return(t=axt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function axt(e){var t=lxt(e,"string");return typeof t=="symbol"?t:t+""}function lxt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cxt(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,{start:a}=t,{end:l}=t,c=function(f){var h=o[f];if(h==null)return 1;var p=h,m,g=()=>(m===void 0&&(m=n(h,f)),m);if(f===s-1){var v=e*(p.coordinate+e*g()/2-l);o[f]=p=co(co({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else o[f]=p=co(co({},p),{},{tickCoord:p.coordinate});if(p.tickCoord!=null){var b=g1(e,p.tickCoord,g,a,l);b&&(l=p.tickCoord-e*(g()/2+i),o[f]=co(co({},p),{},{isShow:!0}))}},u=s-1;u>=0;u--)c(u);return o}function uxt(e,t,n,r,i,o){var s=(r||[]).slice(),a=s.length,{start:l,end:c}=t;if(o){var u=r[a-1];if(u!=null){var d=n(u,a-1),f=e*(u.coordinate+e*d/2-c);if(s[a-1]=u=co(co({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null){var h=g1(e,u.tickCoord,()=>d,l,c);h&&(c=u.tickCoord-e*(d/2+i),s[a-1]=co(co({},u),{},{isShow:!0}))}}}for(var p=o?a-1:a,m=function(b){var w=s[b];if(w==null)return 1;var x=w,E,S=()=>(E===void 0&&(E=n(w,b)),E);if(b===0){var _=e*(x.coordinate-e*S()/2-l);s[b]=x=co(co({},x),{},{tickCoord:_<0?x.coordinate-_*e:x.coordinate})}else s[b]=x=co(co({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var k=g1(e,x.tickCoord,S,l,c);k&&(l=x.tickCoord+e*(S()/2+i),s[b]=co(co({},x),{},{isShow:!0}))}},g=0;g<p;g++)m(g);return s}function r9(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:s,orientation:a,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(Re(l)||VS.isSsr){var f;return(f=rxt(i,Re(l)?l:0))!==null&&f!==void 0?f:[]}var h=[],p=a==="top"||a==="bottom"?"width":"height",m=u&&p==="width"?Hx(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=(E,S)=>{var _=typeof c=="function"?c(E.value,S):E.value;return p==="width"?txt(Hx(_,{fontSize:t,letterSpacing:n}),m,d):Hx(_,{fontSize:t,letterSpacing:n})[p]},v=i[0],b=i[1],w=i.length>=2&&v!=null&&b!=null?Ai(b.coordinate-v.coordinate):1,x=nxt(o,w,p);return l==="equidistantPreserveStart"?ixt(w,x,g,i,s):l==="equidistantPreserveEnd"?oxt(w,x,g,i,s):(l==="preserveStart"||l==="preserveStartEnd"?h=uxt(w,x,g,i,s,l==="preserveStartEnd"):h=cxt(w,x,g,i,s),h.filter(E=>E.isShow))}var dxt=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,s=0;if(t){Array.from(t).forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>s&&(s=d.width)}});var a=n?n.getBoundingClientRect().width:0,l=i+o,c=s+l+a+(n?r:0);return Math.round(c)}return 0},fxt={xAxis:{},yAxis:{}},dSe=So({name:"renderedTicks",initialState:fxt,reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=i},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:hxt,removeRenderedTicks:pxt}=dSe.actions,mxt=dSe.reducer,gxt=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function vxt(e,t){if(e==null)return{};var n,r,i=yxt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yxt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gm(){return Gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gm.apply(null,arguments)}function Ene(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1015t%2?Ene(Object(n),!0).forEach(function(r){bxt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ene(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bxt(e,t,n){return(t=wxt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wxt(e){var t=xxt(e,"string");return typeof t=="symbol"?t:t+""}function xxt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sd={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:$r.axis};function Ext(e){var{x:t,y:n,width:r,height:i,orientation:o,mirror:s,axisLine:a,otherSvgProps:l}=e;if(!a)return null;var c=_r(_r(_r({},l),Ho(a)),{},{fill:"none"});if(o==="top"||o==="bottom"){var u=+(o==="top"&&!s||o==="bottom"&&s);c=_r(_r({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(o==="left"&&!s||o==="right"&&s);c=_r(_r({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return y.createElement("line",Gm({},c,{className:Wt("recharts-cartesian-axis-line",zm(a,"className"))}))}function Sxt(e,t,n,r,i,o,s,a,l){var c,u,d,f,h,p,m=a?-1:1,g=e.tickSize||s,v=Re(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":c=u=e.coordinate,f=n+ +!a*i,d=f-m*g,p=d-m*l,h=v;break;case"left":d=f=e.coordinate,u=t+ +!a*r,c=u-m*g,h=c-m*l,p=v;break;case"right":d=f=e.coordinate,u=t+ +a*r,c=u+m*g,h=c+m*l,p=v;break;default:c=u=e.coordinate,f=n+ +a*i,d=f+m*g,p=d+m*l,h=v;break}return{line:{x1:c,y1:d,x2:u,y2:f},tick:{x:h,y:p}}}function _xt(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function kxt(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Cxt(e){var{option:t,tickProps:n,value:r}=e,i,o=Wt(n.className,"recharts-cartesian-axis-tick-value");if(y.isValidElement(t))i=y.cloneElement(t,_r(_r({},n),{},{className:o}));else if(typeof t=="function")i=t(_r(_r({},n),{},{className:o}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Wt(s,Q1e(t))),i=y.createElement(aN,Gm({},n,{className:s}),r)}return i}function Txt(e){var{ticks:t,axisType:n,axisId:r}=e,i=_n();return y.useEffect(()=>{if(r==null||n==null)return jh;var o=t.map(s=>({value:s.value,coordinate:s.coordinate,offset:s.offset,index:s.index}));return i(hxt({ticks:o,axisId:r,axisType:n})),()=>{i(pxt({axisId:r,axisType:n}))}},[i,t,r,n]),null}var Axt=y.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:o,tickFormatter:s,unit:a,padding:l,tickTextProps:c,orientation:u,mirror:d,x:f,y:h,width:p,height:m,tickSize:g,tickMargin:v,fontSize:b,letterSpacing:w,getTicksConfig:x,events:E,axisType:S,axisId:_}=e,k=r9(_r(_r({},x),{},{ticks:n}),b,w),C=Ho(x),T=Bm(r),A=j1e(C.textAnchor)?C.textAnchor:_xt(u,d),O=kxt(u,d),R={};typeof i=="object"&&(R=i);var I=_r(_r({},C),{},{fill:"none"},R),F=k.map(M=>_r({entry:M},Sxt(M,f,h,p,m,u,g,d,v))),N=F.map(M=>{var{entry:L,line:P}=M;return y.createElement(vr,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(L.value,"-").concat(L.coordinate,"-").concat(L.tickCoord)},i&&y.createElement("line",Gm({},I,P,{className:Wt("recharts-cartesian-axis-tick-line",zm(i,"className"))})))}),B=F.map((M,L)=>{var P,G,{entry:Z,tick:z}=M,oe=_r(_r(_r(_r({verticalAnchor:O},C),{},{textAnchor:A,stroke:"none",fill:o},z),{},{index:L,payload:Z,visibleTicksCount:k.length,tickFormatter:s,padding:l},c),{},{angle:(P=(G=c==null?void 0:c.angle)!==null&&G!==void 0?G:C.angle)!==null&&P!==void 0?P:0}),le=_r(_r({},oe),T);return y.createElement(vr,Gm({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(Z.value,"-").concat(Z.coordinate,"-").concat(Z.tickCoord)},LS(E,Z,L)),r&&y.createElement(Cxt,{option:r,tickProps:le,value:"".concat(typeof s=="function"?s(Z.value,L):Z.value).concat(a||"")}))});return y.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(S,"-ticks")},y.createElement(Txt,{ticks:k,axisId:_,axisType:S}),B.length>0&&y.createElement(Qo,{zIndex:$r.label},y.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(S,"-tick-labels"),ref:t},B)),N.length>0&&y.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(S,"-tick-lines")},N))}),Oxt=y.forwardRef((e,t)=>
1015{var{axisLine:n,width:r,height:i,className:o,hide:s,ticks:a,axisType:l,axisId:c}=e,u=vxt(e,gxt),[d,f]=y.useState(""),[h,p]=y.useState(""),m=y.useRef(null);y.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var v;return dxt({ticks:m.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=y.useCallback(v=>{if(v){var b=v.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=b;var w=b[0];if(w){var x=window.getComputedStyle(w),E=x.fontSize,S=x.letterSpacing;(E!==d||S!==h)&&(f(E),p(S))}}},[d,h]);return s||r!=null&&r<=0||i!=null&&i<=0?null:y.createElement(Qo,{zIndex:e.zIndex},y.createElement(vr,{className:Wt("recharts-cartesian-axis",o)},y.createElement(Ext,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Ho(e)}),y.createElement(Axt,{ref:g,axisType:l,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:a,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:c}),y.createElement(_bt,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},y.createElement(Nbt,{label:e.label,labelRef:e.labelRef}),e.children)))}),i9=y.forwardRef((e,t)=>{var n=Vr(e,sd);return y.createElement(Oxt,Gm({},n,{ref:t}))});i9.displayName="CartesianAxis";var Pxt=["x1","y1","x2","y2","key"],Ixt=["offset"],Rxt=["xAxisId","yAxisId"],Mxt=["xAxisId","yAxisId"];function Sne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sne(Object(n),!0).forEach(function(r){Nxt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nxt(e,t,n){return(t=Dxt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dxt(e){var t=Lxt(e,"string");return typeof t=="symbol"?t:t+""}function Lxt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kp(){return Kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kp.apply(null,arguments)}function SP(e,t){if(e==null)return{};var n,r,i=$xt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Fxt=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:s,ry:a}=e;return y.createElement("rect",{x:r,y:i,ry:a,width:o,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fSe(e){var{option:t,lineItemProps:n}=e,r;if(y.isValidElement(t))r=y.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,{x1:o,y1:s,x2:a,y2:l,key:c}=n,u=SP(n,Pxt),d=(i=Ho(u))!==null&&i!==void 0?i:{},{offset:f}=d,h=SP(d,Ixt);r=y.createElement("line",Kp({},h,{x1:o,y1:s,x2:a,y2:l,fill:"none",key:c}))}return r}function Bxt(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:s}=e,a=SP(e,Rxt),l=i.map((c,u)=>{var d=mo(mo({},a),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(u),index:u});return y.createElement(fSe,{key:"line-".concat(u),option:r,lineItemProps:d})});return y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function jxt(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:s}=e,a=SP(e,Mxt),l=i.map((c,u)=>{var d=mo(mo({},a),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(u),index:u});return y.createElement(fSe,{option:r,lineItemProps:d,key:"line-".concat(u)})});return y.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function zxt(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:s,horizontalPoints:a,horizontal:l=!0}=e;if(!l||!t||!t.length||a==null)return null;var c=a.map(d=>Math.round(d+i-i)).sort((d,f)=>d-f);i!==c[0]&&c.unshift(0);var u=c.map((d,f)=>
1015{var h=c[f+1],p=h==null,m=p?i+s-d:h-d;if(m<=0)return null;var g=f%t.length;return y.createElement("rect",{key:"react-".concat(f),y:d,x:r,height:m,width:o,stroke:"none",fill:t[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function Uxt(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:s,height:a,verticalPoints:l}=e;if(!t||!n||!n.length)return null;var c=l.map(d=>Math.round(d+i-i)).sort((d,f)=>d-f);i!==c[0]&&c.unshift(0);var u=c.map((d,f)=>{var h=c[f+1],p=h==null,m=p?i+s-d:h-d;if(m<=0)return null;var g=f%n.length;return y.createElement("rect",{key:"react-".concat(f),x:d,y:o,width:m,height:a,stroke:"none",fill:n[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var Vxt=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return jwe(r9(mo(mo(mo({},sd),n),{},{ticks:zwe(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},Wxt=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return jwe(r9(mo(mo(mo({},sd),n),{},{ticks:zwe(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},Hxt={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:$r.grid};function Kxt(e){var t=PW(),n=IW(),r=Qwe(),i=mo(mo({},Vr(e,Hxt)),{},{x:Re(e.x)?e.x:r.left,y:Re(e.y)?e.y:r.top,width:Re(e.width)?e.width:r.width,height:Re(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:s,x:a,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:h}=i,p=Ni(),m=Be(C=>xte(C,"xAxis",o,p)),g=Be(C=>xte(C,"yAxis",s,p));if(!Zc(c)||!Zc(u)||!Re(a)||!Re(l))return null;var v=i.verticalCoordinatesGenerator||Vxt,b=i.horizontalCoordinatesGenerator||Wxt,{horizontalPoints:w,verticalPoints:x}=i;if((!w||!w.length)&&typeof b=="function"){var E=f&&f.length,S=b({yAxis:g?mo(mo({},g),{},{ticks:E?f:g.ticks}):void 0,width:t??c,height:n??u,offset:r},E?!0:d);qO(Array.isArray(S),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(w=S)}if((!x||!x.length)&&typeof v=="function"){var _=h&&h.length,k=v({xAxis:m?mo(mo({},m),{},{ticks:_?h:m.ticks}):void 0,width:t??c,height:n??u,offset:r},_?!0:d);qO(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(x=k)}return y.createElement(Qo,{zIndex:i.zIndex},y.createElement("g",{className:"recharts-cartesian-grid"},y.createElement(Fxt,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),y.createElement(zxt,Kp({},i,{horizontalPoints:w})),y.createElement(Uxt,Kp({},i,{verticalPoints:x})),y.createElement(Bxt,Kp({},i,{offset:r,horizontalPoints:w,xAxis:m,yAxis:g})),y.createElement(jxt,Kp({},i,{offset:r,verticalPoints:x,xAxis:m,yAxis:g}))))}Kxt.displayName="CartesianGrid";var qxt={},hSe=So({name:"errorBars",initialState:qxt,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:srn,replaceErrorBar:arn,removeErrorBar:lrn}=hSe.actions,Gxt=hSe.reducer,Yxt=["children"];function Xxt(e,t){if(e==null)return{};var n,r,i=Zxt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zxt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Qxt={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Jxt=y.createContext(Qxt);function pSe(e){var{children:t}=e,n=Xxt(e,Yxt);return y.createElement(Jxt.Provider,{value:n},t)}function kN(e,t){var n,r,i=Be(c=>Rd(c,e)),o=Be(c=>Md(c,t)),s=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:oi.allowDataOverflow,a=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:si.allowDataOverflow,l=s||a;return{needClip:l,needClipX:s,needClipY:a}}function o9(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=_N(),{needClipX:o,needClipY:s,needClip:a}=kN(t,n);if(!a||!i)return null;var{x:l,y:c,width:u,height:d}=i;return y.createElement("clipPath",{id:"clipPath-".concat(r)},y.createElement("rect",{x:o?l:l-u/2,y:s?c:c-d/2,width:o?u:u*2,height:s?d:d*2}))}var mSe=(e,t,n,r)=>tu(e,"xAxis",t,r),gSe=(e,t,n,r)=>eu(e,"xAxis",t,r),vSe=(e,t,n,r)=>tu(e,"yAxis",n,r),ySe=(e,t,n,r)=>eu(e,"yAxis",n,r),eEt=q([Ut,mSe,vSe,gSe,ySe],(e,t,n,r,i)=>Kl(e,"xAxis")?bh(t,r,!1):bh(n,i,!1)),tEt=(e,t,n,r,i)=>i;function nEt(e){return e.type==="line"}var rEt=q([QS,tEt],(e,t)=>e.filter(nEt).find(n=>n.id===t)),iEt=q([Ut,mSe,vSe,gSe,ySe,rEt,eEt,HS],(e,t,n,r,i,o,s,a)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=a;if(!(o==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:d,data:f}=o,h;if(f!=null&&f.length>0?h=f:h=l==null?void 0:l.slice(c,u+1),h!=null)return _Et({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:s,displayedData:h})}});function bSe(e){var t=Bm(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:o}=t,s=Number(i),a=Number(o);return(Number.isNaN(s)||s<0)&&(s=n),(Number.isNaN(a)||a<0)&&(a=r),{r:s,strokeWidth:a}}return{r:n,strokeWidth:r}}var oEt=["id"],sEt=["type","layout","connectNulls","needClip","shape"],aEt=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function v1(){return v1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v1.apply(null,arguments)}function _ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1015t%2?_ne(Object(n),!0).forEach(function(r){lEt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lEt(e,t,n){return(t=cEt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cEt(e){var t=uEt(e,"string");return typeof t=="symbol"?t:t+""}function uEt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s9(e,t){if(e==null)return{};var n,r,i=dEt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dEt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var fEt=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:zh(n,t),payload:e}]},hEt=y.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:s,hide:a,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:n,getPosition:jh,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:zh(s,t),hide:a,type:c,color:r,unit:l,graphicalItemId:u}};return y.createElement(xN,{tooltipEntrySettings:d})}),wSe=(e,t)=>"".concat(t,"px ").concat(e,"px");function pEt(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r.push(...n);return r}var mEt=(e,t,n)=>{var r=n.reduce((f,h)=>f+h,0);if(!r)return wSe(t,e);for(var i=Math.floor(e/r),o=e%r,s=[],a=0,l=0;a<n.length;l+=(c=n[a])!==null&&c!==void 0?c:0,++a){var c,u=n[a];if(u!=null&&l+u>o){s=[...n.slice(0,a),o-l];break}}var d=s.length%2===0?[0,t]:[t];return[...pEt(n,i),...s,...d].map(f=>"".concat(f,"px")).join(", ")};function gEt(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:o,needClip:s}=r,{id:a}=r,l=s9(r,oEt),c=Ho(l);return y.createElement(iSe,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:c,needClip:s,clipPathId:t})}function vEt(e){var{showLabels:t,children:n,points:r}=e,i=y.useMemo(()=>r==null?void 0:r.map(o=>{var s,a,l={x:(s=o.x)!==null&&s!==void 0?s:0,y:(a=o.y)!==null&&a!==void 0?a:0,width:0,lowerWidth:0,upperWidth:0,height:0};return vc(vc({},l),{},{value:o.value,payload:o.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[r]);return y.createElement(WH,{value:t?i:void 0},n)}function kne(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:o}=e,{type:s,layout:a,connectNulls:l,needClip:c,shape:u}=o,d=s9(o,sEt),f=vc(vc({},xo(d)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:r,type:s,layout:a,connectNulls:l,strokeDasharray:i??o.strokeDasharray});return y.createElement(y.Fragment,null,(r==null?void 0:r.length)>1&&y.createElement(ZH,v1({shapeType:"curve",option:u},f,{pathRef:n})),y.createElement(gEt,{points:r,clipPathId:t,props:o}))}function yEt(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function bEt(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:s,strokeDasharray:a,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:f,width:h,height:p,onAnimationEnd:m,onAnimationStart:g}=n,v=i.current,b=a0(s,"recharts-line-"),w=y.useRef(b),[x,E]=y.useState(!1),S=!x,_=y.useCallback(()=>{typeof m=="function"&&m(),E(!1)},[m]),k=y.useCallback(()=>{typeof g=="function"&&g(),E(!0)},[g]),C=yEt(r.current),T=y.useRef(0);w.current!==b&&(T.current=o.current,w.current=b);var A=T.current;return y.createElement(vEt,{points:s,showLabels:S},n.children,y.createElement(s0,{animationId:b,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:_,onAnimationStart:k,key:b},O=>{var R=un(A,C+A,O),I=Math.min(R,C),F;if(l)if(a){var N="".concat(a).split(/[,\s]+/gim).map(L=>parseFloat(L));F=mEt(I,C,N)}else F=wSe(C,I);else F=a==null?void 0:String(a);if(O>0&&C>0&&(i.current=s,o.current=Math.max(o.current,I)),v){var B=v.length/s.length,M=O===1?s:s.map((L,P)=>{var G=Math.floor(P*B);if(v[G]){var Z=v[G];
1015return vc(vc({},L),{},{x:un(Z.x,L.x,O),y:un(Z.y,L.y,O)})}return f?vc(vc({},L),{},{x:un(h*2,L.x,O),y:un(p/2,L.y,O)}):vc(vc({},L),{},{x:L.x,y:L.y})});return i.current=M,y.createElement(kne,{props:n,points:M,clipPathId:t,pathRef:r,strokeDasharray:F})}return y.createElement(kne,{props:n,points:s,clipPathId:t,pathRef:r,strokeDasharray:F})}),y.createElement(lN,{label:n.label}))}function wEt(e){var{clipPathId:t,props:n}=e,r=y.useRef(null),i=y.useRef(0),o=y.useRef(null);return y.createElement(bEt,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:o})}var xEt=(e,t)=>{var n,r;return{x:(n=e.x)!==null&&n!==void 0?n:void 0,y:(r=e.y)!==null&&r!==void 0?r:void 0,value:e.value,errorVal:Zt(e.payload,t)}};class EEt extends y.Component{render(){var{hide:t,dot:n,points:r,className:i,xAxisId:o,yAxisId:s,top:a,left:l,width:c,height:u,id:d,needClip:f,zIndex:h}=this.props;if(t)return null;var p=Wt("recharts-line",i),m=d,{r:g,strokeWidth:v}=bSe(n),b=XH(n),w=g*2+v,x=f?"url(#clipPath-".concat(b?"":"dots-").concat(m,")"):void 0;return y.createElement(Qo,{zIndex:h},y.createElement(vr,{className:p},f&&y.createElement("defs",null,y.createElement(o9,{clipPathId:m,xAxisId:o,yAxisId:s}),!b&&y.createElement("clipPath",{id:"clipPath-dots-".concat(m)},y.createElement("rect",{x:l-w/2,y:a-w/2,width:c+w,height:u+w}))),y.createElement(pSe,{xAxisId:o,yAxisId:s,data:r,dataPointFormatter:xEt,errorBarOffset:0},y.createElement(wEt,{props:this.props,clipPathId:m}))),y.createElement(Tz,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:x}))}}var xSe={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:$r.line,type:"linear"};function SEt(e){var t=Vr(e,xSe),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,connectNulls:a,dot:l,hide:c,isAnimationActive:u,label:d,legendType:f,xAxisId:h,yAxisId:p,id:m}=t,g=s9(t,aEt),{needClip:v}=kN(h,p),b=_N(),w=Uh(),x=Ni(),E=Be(T=>iEt(T,h,p,x,m));if(w!=="horizontal"&&w!=="vertical"||E==null||b==null)return null;var{height:S,width:_,x:k,y:C}=b;return y.createElement(EEt,v1({},g,{id:m,connectNulls:a,dot:l,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,isAnimationActive:u,hide:c,label:d,legendType:f,xAxisId:h,yAxisId:p,points:E,layout:w,height:S,width:_,left:k,top:C,needClip:v}))}function _Et(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,dataKey:s,bandSize:a,displayedData:l}=e;return l.map((c,u)=>{var d=Zt(c,s);if(t==="horizontal"){var f=KO({axis:n,ticks:i,bandSize:a,entry:c,index:u}),h=Zn(d)?null:r.scale.map(d);return{x:f,y:h??null,value:d,payload:c}}var p=Zn(d)?null:n.scale.map(d),m=KO({axis:r,ticks:o,bandSize:a,entry:c,index:u});return p==null||m==null?null:{x:p,y:m,value:d,payload:c}}).filter(Boolean)}function kEt(e){var t=Vr(e,xSe),n=Ni();return y.createElement(EN,{id:t.id,type:"line"},r=>y.createElement(y.Fragment,null,y.createElement(t9,{legendPayload:fEt(t)}),y.createElement(hEt,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),y.createElement(n9,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),y.createElement(SEt,v1({},t,{id:r}))))}var CEt=y.memo(kEt,Sg);CEt.displayName="Line";function du(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:oSe}function fu(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:oSe}var ESe=(e,t,n)=>tu(e,"xAxis",du(e,t),n),SSe=(e,t,n)=>eu(e,"xAxis",du(e,t),n),_Se=(e,t,n)=>tu(e,"yAxis",fu(e,t),n),kSe=(e,t,n)=>eu(e,"yAxis",fu(e,t),n),TEt=q([Ut,ESe,_Se,SSe,kSe],(e,t,n,r,i)=>Kl(e,"xAxis")?bh(t,r,!1):bh(n,i,!1)),AEt=(e,t)=>
1015t,CSe=q([QS,AEt],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),TSe=e=>{var t=Ut(e),n=Kl(t,"xAxis");return n?"yAxis":"xAxis"},OEt=(e,t)=>{var n=TSe(e);return n==="yAxis"?fu(e,t):du(e,t)},PEt=(e,t,n)=>mP(e,TSe(e),OEt(e,t),n),IEt=q([CSe,PEt],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,i=HM(e);if(!(r==null||i==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,s=o==null?void 0:o.find(a=>a.key===i);if(s!=null)return s.map(a=>[a[0],a[1]])}}}),REt=q([Ut,ESe,_Se,SSe,kSe,IEt,kxe,TEt,CSe,Lft],(e,t,n,r,i,o,s,a,l,c)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=s;if(!(l==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||a==null)){var{data:h}=l,p;if(h&&h.length>0?p=h:p=u==null?void 0:u.slice(d,f+1),p!=null)return QEt({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:l,stackedData:o,displayedData:p,chartBaseValue:c,bandSize:a})}}),MEt=["id"],NEt=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vm.apply(null,arguments)}function ASe(e,t){if(e==null)return{};var n,r,i=DEt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function DEt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cne(Object(n),!0).forEach(function(r){LEt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LEt(e,t,n){return(t=$Et(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Et(e){var t=FEt(e,"string");return typeof t=="symbol"?t:t+""}function FEt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _P(e,t){return e&&e!=="none"?e:t}var BEt=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:o,hide:s}=e;return[{inactive:s,dataKey:t,type:o,color:_P(r,i),value:zh(n,t),payload:e}]},jEt=y.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:s,hide:a,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:n,getPosition:jh,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:zh(s,t),hide:a,type:c,color:_P(r,o),unit:l,graphicalItemId:u}};return y.createElement(xN,{tooltipEntrySettings:d})});function zEt(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:o,dataKey:s}=r,a=Ho(r);return y.createElement(iSe,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:s,baseProps:a,needClip:i,clipPathId:t})}function UEt(e){var{showLabels:t,children:n,points:r}=e,i=r.map(o=>{var s,a,l={x:(s=o.x)!==null&&s!==void 0?s:0,y:(a=o.y)!==null&&a!==void 0?a:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Vv(Vv({},l),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:l,fill:void 0})});return y.createElement(WH,{value:t?i:void 0},n)}function Tne(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:o}=e,{layout:s,type:a,stroke:l,connectNulls:c,isRange:u}=o,{id:d}=o,f=ASe(o,MEt),h=Ho(f),p=xo(f);return y.createElement(y.Fragment,null,(t==null?void 0:t.length)>1&&y.createElement(vr,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},y.createElement(cy,vm({},p,{id:d,points:t,connectNulls:c,type:a,baseLine:n,layout:s,stroke:"none",className:"recharts-area-area"})),l!=="none"&&y.createElement(cy,vm({},h,{className:"recharts-area-curve",layout:s,type:a,connectNulls:c,fill:"none",points:t})),l!=="none"&&u&&Array.isArray(n)&&y.createElement(cy,vm({},h,{className:"recharts-area-curve",layout:s,type:a,connectNulls:c,fill:"none",points:n}))),y.createElement(zEt,{points:t,props:f,clipPathId:i}))}function VEt(e){var t,n,{alpha:r,baseLine:i,points:o,strokeWidth:s}=e,a=(t=o[0])===null||t===void 0?void 0:t.y,l=(n=o[o.length-1])===null||n===void 0?void 0:n.y;if(!Rt(a)||!Rt(l))return null;var c=r*Math.abs(a-l),u=Math.max(...o.map(d=>d.x||0));return Re(i)?u=Math.max(i,u):i&&Array.isArray(i)&&i.length&&(u=Math.max(...i.map(d=>d.x||0),u)),Re(u)?y.createElement("rect",{x:0,y:a<l?a:a-c,width:u+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}function WEt(e){var t,n,{alpha:r,baseLine:i,points:o,strokeWidth:s}=e,a=(t=o[0])===null||t===void 0?void 0:t.x,l=(n=o[o.length-1])===null||n===void 0?void 0:n.x;
1015if(!Rt(a)||!Rt(l))return null;var c=r*Math.abs(a-l),u=Math.max(...o.map(d=>d.y||0));return Re(i)?u=Math.max(i,u):i&&Array.isArray(i)&&i.length&&(u=Math.max(...i.map(d=>d.y||0),u)),Re(u)?y.createElement("rect",{x:a<l?a:a-c,y:0,width:c,height:Math.floor(u+(s?parseInt("".concat(s),10):1))}):null}function HEt(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:o}=e;return n==="vertical"?y.createElement(VEt,{alpha:t,points:r,baseLine:i,strokeWidth:o}):y.createElement(WEt,{alpha:t,points:r,baseLine:i,strokeWidth:o})}function KEt(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o}=e,{points:s,baseLine:a,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,onAnimationStart:f,onAnimationEnd:h}=r,p=y.useMemo(()=>({points:s,baseLine:a}),[s,a]),m=a0(p,"recharts-area-"),g=RW(),[v,b]=y.useState(!1),w=!v,x=y.useCallback(()=>{typeof h=="function"&&h(),b(!1)},[h]),E=y.useCallback(()=>{typeof f=="function"&&f(),b(!0)},[f]);if(g==null)return null;var S=i.current,_=o.current;return y.createElement(UEt,{showLabels:w,points:s},r.children,y.createElement(s0,{animationId:m,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:x,onAnimationStart:E,key:m},k=>{if(S){var C=S.length/s.length,T=k===1?s:s.map((O,R)=>{var I=Math.floor(R*C);if(S[I]){var F=S[I];return Vv(Vv({},O),{},{x:un(F.x,O.x,k),y:un(F.y,O.y,k)})}return O}),A;return Re(a)?A=un(_,a,k):Zn(a)||zl(a)?A=un(_,0,k):A=a.map((O,R)=>{var I=Math.floor(R*C);if(Array.isArray(_)&&_[I]){var F=_[I];return Vv(Vv({},O),{},{x:un(F.x,O.x,k),y:un(F.y,O.y,k)})}return O}),k>0&&(i.current=T,o.current=A),y.createElement(Tne,{points:T,baseLine:A,needClip:t,clipPathId:n,props:r})}return k>0&&(i.current=s,o.current=a),y.createElement(vr,null,l&&y.createElement("defs",null,y.createElement("clipPath",{id:"animationClipPath-".concat(n)},y.createElement(HEt,{alpha:k,points:s,baseLine:a,layout:g,strokeWidth:r.strokeWidth}))),y.createElement(vr,{clipPath:"url(#animationClipPath-".concat(n,")")},y.createElement(Tne,{points:s,baseLine:a,needClip:t,clipPathId:n,props:r})))}),y.createElement(lN,{label:r.label}))}function qEt(e){var{needClip:t,clipPathId:n,props:r}=e,i=y.useRef(null),o=y.useRef();return y.createElement(KEt,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:o})}class GEt extends y.PureComponent{render(){var{hide:t,dot:n,points:r,className:i,top:o,left:s,needClip:a,xAxisId:l,yAxisId:c,width:u,height:d,id:f,baseLine:h,zIndex:p}=this.props;if(t)return null;var m=Wt("recharts-area",i),g=f,{r:v,strokeWidth:b}=bSe(n),w=XH(n),x=v*2+b,E=a?"url(#clipPath-".concat(w?"":"dots-").concat(g,")"):void 0;return y.createElement(Qo,{zIndex:p},y.createElement(vr,{className:m},a&&y.createElement("defs",null,y.createElement(o9,{clipPathId:g,xAxisId:l,yAxisId:c}),!w&&y.createElement("clipPath",{id:"clipPath-dots-".concat(g)},y.createElement("rect",{x:s-x/2,y:o-x/2,width:u+x,height:d+x}))),y.createElement(qEt,{needClip:a,clipPathId:g,props:this.props})),y.createElement(Tz,{points:r,mainColor:_P(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:E}),this.props.isRange&&Array.isArray(h)&&y.createElement(Tz,{points:h,mainColor:_P(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:E}))}}var YEt={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:$r.area};function XEt(e){var t,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:o,connectNulls:s,dot:a,fill:l,fillOpacity:c,hide:u,isAnimationActive:d,legendType:f,stroke:h,xAxisId:p,yAxisId:m}=e,g=ASe(e,NEt),v=Uh(),b=C1e(),{needClip:w}=kN(p,m),x=Ni(),{points:E,isRange:S,baseLine:_}=(t=Be(R=>REt(R,e.id,x)))!==null&&t!==void 0?t:{},k=_N();if(v!=="horizontal"&&v!=="vertical"||k==null||b!=="AreaChart"&&b!=="ComposedChart")return null;var{height:C,width:T,x:A,y:O}=k;return!E||!E.length?null:y.createElement(GEt,vm({},g,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:o,baseLine:_,connectNulls:s,dot:a,fill:l,fillOpacity:c,height:C,hide:u,layout:v,isAnimationActive:d,isRange:S,legendT
1015ype:f,needClip:w,points:E,stroke:h,width:T,left:A,top:O,xAxisId:p,yAxisId:m}))}var ZEt=(e,t,n,r,i)=>{var o=n??t;if(Re(o))return o;var s=e==="horizontal"?i:r,a=s.scale.domain();if(s.type==="number"){var l=Math.max(a[0],a[1]),c=Math.min(a[0],a[1]);return o==="dataMin"?c:o==="dataMax"||l<0?l:Math.max(Math.min(a[0],a[1]),0)}return o==="dataMin"?a[0]:o==="dataMax"?a[1]:a[0]};function QEt(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:o,chartBaseValue:s,xAxis:a,yAxis:l,displayedData:c,dataStartIndex:u,xAxisTicks:d,yAxisTicks:f,bandSize:h}=e,p=i&&i.length,m=ZEt(o,s,n,a,l),g=o==="horizontal",v=!1,b=c.map((x,E)=>{var S,_,k,C;if(p)C=i[u+E];else{var T=Zt(x,r);Array.isArray(T)?(C=T,v=!0):C=[m,T]}var A=(S=(_=C)===null||_===void 0?void 0:_[1])!==null&&S!==void 0?S:null,O=A==null||p&&!t&&Zt(x,r)==null;if(g){var R;return{x:KO({axis:a,ticks:d,bandSize:h,entry:x,index:E}),y:O?null:(R=l.scale.map(A))!==null&&R!==void 0?R:null,value:C,payload:x}}return{x:O?null:(k=a.scale.map(A))!==null&&k!==void 0?k:null,y:KO({axis:l,ticks:f,bandSize:h,entry:x,index:E}),value:C,payload:x}}),w;return p||v?w=b.map(x=>{var E,S=Array.isArray(x.value)?x.value[0]:null;if(g){var _;return{x:x.x,y:S!=null&&x.y!=null&&(_=l.scale.map(S))!==null&&_!==void 0?_:null,payload:x.payload}}return{x:S!=null&&(E=a.scale.map(S))!==null&&E!==void 0?E:null,y:x.y,payload:x.payload}}):w=g?l.scale.map(m):a.scale.map(m),{points:b,baseLine:w??0,isRange:v}}function JEt(e){var t=Vr(e,YEt),n=Ni();return y.createElement(EN,{id:t.id,type:"area"},r=>y.createElement(y.Fragment,null,y.createElement(t9,{legendPayload:BEt(t)}),y.createElement(jEt,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),y.createElement(n9,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Uwe(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),y.createElement(XEt,vm({},t,{id:r}))))}var e1t=y.memo(JEt,Sg);e1t.displayName="Area";var t1t="Invariant failed";function n1t(e,t){throw new Error(t1t)}function Az(){return Az=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Az.apply(null,arguments)}function a9(e){return y.createElement(ZH,Az({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var r1t=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Re(t))return t;var o=Re(r)||Zn(r);return o?t(r,i):(o||n1t(),n)}},i1t=(e,t,n)=>n,o1t=(e,t)=>t,r_=q([QS,o1t],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),s1t=q([r_],e=>e==null?void 0:e.maxBarSize),a1t=(e,t,n,r)=>r,l1t=q([Ut,QS,du,fu,i1t],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),c1t=(e,t,n)=>{var r=Ut(e),i=du(e,t),o=fu(e,t);if(!(i==null||o==null))return r==="horizontal"?mP(e,"yAxis",o,n):mP(e,"xAxis",i,n)},u1t=(e,t)=>{var n=Ut(e),r=du(e,t),i=fu(e,t);if(!(r==null||i==null))return n==="horizontal"?wte(e,"xAxis",r):wte(e,"yAxis",i)},d1t=q([l1t,Dft,u1t],Bwt),f1t=(e,t,n)=>{var r,i,o=r_(e,t);if(o==null)return 0;var s=du(e,t),a=fu(e,t);if(s==null||a==null)return 0;var l=Ut(e),c=$xe(e),{maxBarSize:u}=o,d=Zn(u)?c:u,f,h;return l==="horizontal"?(f=tu(e,"xAxis",s,n),h=eu(e,"xAxis",s,n)):(f=tu(e,"yAxis",a,n),h=eu(e,"yAxis",a,n)),(r=(i=bh(f,h,!0))!==null&&i!==void 0?i:d)!==null&&r!==void 0?r:0},OSe=(e,t,n)=>{var r=Ut(e),i=du(e,t),o=fu(e,t);if(!(i==null||o==null)){var s,a;return r==="horizontal"?(s=tu(e,"xAxis",i,n),a=eu(e,"xAxis",i,n)):(s=tu(e,"yAxis",o,n),a=eu(e,"yAxis",o,n)),bh(s,a)}},h1t=q([d1t,$xe,Nft,Fxe,f1t,OSe,s1t],Wwt),p1t=(e,t,n)=>{var r=du(e,t);if(r!=null)return tu(e,"xAxis",r,n)},m1t=(e,t,n)=>{var r=fu(e,t);if(r!=null)return tu(e,"yAxis",r,n)}
1015,g1t=(e,t,n)=>{var r=du(e,t);if(r!=null)return eu(e,"xAxis",r,n)},v1t=(e,t,n)=>{var r=fu(e,t);if(r!=null)return eu(e,"yAxis",r,n)},y1t=q([h1t,r_],Kwt),b1t=q([c1t,r_],Hwt),w1t=q([gi,TW,p1t,m1t,g1t,v1t,y1t,Ut,kxe,OSe,b1t,r_,a1t],(e,t,n,r,i,o,s,a,l,c,u,d,f)=>{var{chartData:h,dataStartIndex:p,dataEndIndex:m}=l;if(!(d==null||s==null||t==null||a!=="horizontal"&&a!=="vertical"||n==null||r==null||i==null||o==null||c==null)){var{data:g}=d,v;if(g!=null&&g.length>0?v=g:v=h==null?void 0:h.slice(p,m+1),v!=null)return G1t({layout:a,barSettings:d,pos:s,parentViewBox:t,bandSize:c,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,stackedData:u,displayedData:v,offset:e,cells:f,dataStartIndex:p})}}),x1t=["index"];function Oz(){return Oz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oz.apply(null,arguments)}function E1t(e,t){if(e==null)return{};var n,r,i=S1t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S1t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var PSe=y.createContext(void 0),_1t=e=>{var t=y.useContext(PSe);if(t!=null)return t.stackId;if(e!=null)return Uwe(e)},k1t=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),C1t=e=>{var t=y.useContext(PSe);if(t!=null){var{stackId:n}=t;return"url(#".concat(k1t(n,e),")")}},ISe=e=>{var{index:t}=e,n=E1t(e,x1t),r=C1t(t);return y.createElement(vr,Oz({className:"recharts-bar-stack-layer",clipPath:r},n))},T1t=["onMouseEnter","onMouseLeave","onClick"],A1t=["value","background","tooltipPosition"],O1t=["id"],P1t=["onMouseEnter","onClick","onMouseLeave"];function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eh.apply(null,arguments)}function Ane(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ane(Object(n),!0).forEach(function(r){I1t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ane(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I1t(e,t,n){return(t=R1t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R1t(e){var t=M1t(e,"string");return typeof t=="symbol"?t:t+""}function M1t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kP(e,t){if(e==null)return{};var n,r,i=N1t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function N1t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var D1t=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:zh(n,t),payload:e}]},L1t=y.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:s,unit:a,tooltipType:l,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:jh,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:zh(o,t),hide:s,type:l,color:i,unit:a,graphicalItemId:c}};return y.createElement(xN,{tooltipEntrySettings:u})});function $1t(e){var t=Be(wh),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:s,onMouseLeave:a,onClick:l}=o,c=kP(o,T1t),u=QH(s,r,o.id),d=JH(a),f=e9(l,r,o.id);if(!i||n==null)return null;var h=Bm(i);
1015return y.createElement(Qo,{zIndex:qwt(i,$r.barBackground)},n.map((p,m)=>{var{value:g,background:v,tooltipPosition:b}=p,w=kP(p,A1t);if(!v)return null;var x=u(p,m),E=d(p,m),S=f(p,m),_=Mo(Mo(Mo(Mo(Mo({option:i,isActive:String(m)===t},w),{},{fill:"#eee"},v),h),LS(c,p,m)),{},{onMouseEnter:x,onMouseLeave:E,onClick:S,dataKey:r,index:m,className:"recharts-bar-background-rectangle"});return y.createElement(a9,Eh({key:"background-bar-".concat(m)},_))}))}function F1t(e){var{showLabels:t,children:n,rects:r}=e,i=r==null?void 0:r.map(o=>{var s={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return Mo(Mo({},s),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:s,fill:o.fill})});return y.createElement(WH,{value:t?i:void 0},n)}function B1t(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:o,dataKey:s}=e,a=Be(wh),l=Be(FH),c=n&&String(i.originalDataIndex)===a&&(l==null||s===l),[u,d]=y.useState(!1),[f,h]=y.useState(!1);y.useEffect(()=>{var w;return c?(d(!0),w=requestAnimationFrame(()=>{h(!0)})):h(!1),()=>{cancelAnimationFrame(w)}},[c]);var p=y.useCallback(()=>{c||d(!1)},[c]),m=c&&f,g=c||u,v;c?n===!0?v=t:v=n:v=t;var b=y.createElement(a9,Eh({},r,{name:String(r.name)},i,{isActive:m,option:v,index:o,dataKey:s,onTransitionEnd:p}));return g?y.createElement(Qo,{zIndex:$r.activeBar},y.createElement(ISe,{index:i.originalDataIndex},b)):b}function j1t(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:o}=e;return y.createElement(a9,Eh({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:o}))}function z1t(e){var t,{data:n,props:r}=e,i=(t=Ho(r))!==null&&t!==void 0?t:{},{id:o}=i,s=kP(i,O1t),{shape:a,dataKey:l,activeBar:c}=r,{onMouseEnter:u,onClick:d,onMouseLeave:f}=r,h=kP(r,P1t),p=QH(u,l,o),m=JH(f),g=e9(d,l,o);return n?y.createElement(y.Fragment,null,n.map((v,b)=>y.createElement(ISe,Eh({index:v.originalDataIndex,key:"rectangle-".concat(v==null?void 0:v.x,"-").concat(v==null?void 0:v.y,"-").concat(v==null?void 0:v.value,"-").concat(b),className:"recharts-bar-rectangle"},LS(h,v,b),{onMouseEnter:p(v,b),onMouseLeave:m(v,b),onClick:g(v,b)}),c?y.createElement(B1t,{shape:a,activeBar:c,baseProps:s,entry:v,index:b,dataKey:l}):y.createElement(j1t,{shape:a,baseProps:s,entry:v,index:b,dataKey:l})))):null}function U1t(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:s,animationDuration:a,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=n.current,f=a0(t,"recharts-bar-"),[h,p]=y.useState(!1),m=!h,g=y.useCallback(()=>{typeof c=="function"&&c(),p(!1)},[c]),v=y.useCallback(()=>{typeof u=="function"&&u(),p(!0)},[u]);return y.createElement(F1t,{showLabels:m,rects:r},y.createElement(s0,{animationId:f,begin:s,duration:a,isActive:o,easing:l,onAnimationEnd:g,onAnimationStart:v,key:f},b=>{var w=b===1?r:r==null?void 0:r.map((x,E)=>{var S=d&&d[E];if(S)return Mo(Mo({},x),{},{x:un(S.x,x.x,b),y:un(S.y,x.y,b),width:un(S.width,x.width,b),height:un(S.height,x.height,b)});if(i==="horizontal"){var _=un(0,x.height,b),k=un(x.stackedBarStart,x.y,b);return Mo(Mo({},x),{},{y:k,height:_})}var C=un(0,x.width,b),T=un(x.stackedBarStart,x.x,b);return Mo(Mo({},x),{},{width:C,x:T})});return b>0&&(n.current=w??null),w==null?null:y.createElement(vr,null,y.createElement(z1t,{props:t,data:w}))}),y.createElement(lN,{label:t.label}),t.children)}function V1t(e){var t=y.useRef(null);return y.createElement(U1t,{previousRectanglesRef:t,props:e})}var RSe=0,W1t=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:Zt(e,t)}};class H1t extends y.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:s,needClip:a,background:l,id:c}=this.props;if(t||n==null)return null;var u=Wt("recharts-bar",i),d=c;return y.createElement(vr,{className:u,id:c},a&&y.createElement("defs",null,y.createElement(o9,{clipPathId:d,xAxisId:o,yAxisId:s})),y.createElement(vr,{className:"recharts-bar-rectangles",clipPath:a?"url(#clipPath-".concat(d,")"):void 0},y.createElement($1t,{data:n,dataKey:r,background:l,allOtherBarProps:this.props}),y.createElement(V1t,this.props)))}}var K1t={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendT
1015ype:"rect",minPointSize:RSe,xAxisId:0,yAxisId:0,zIndex:$r.bar};function q1t(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:a,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=kN(t,n),f=Uh(),h=Ni(),p=YH(e.children,sN),m=Be(b=>w1t(b,e.id,h,p));if(f!=="vertical"&&f!=="horizontal")return null;var g,v=m==null?void 0:m[0];return v==null||v.height==null||v.width==null?g=0:g=f==="vertical"?v.height/2:v.width/2,y.createElement(pSe,{xAxisId:t,yAxisId:n,data:m,dataPointFormatter:W1t,errorBarOffset:g},y.createElement(H1t,Eh({},e,{layout:f,needClip:d,data:m,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:a,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function G1t(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:o,bandSize:s,xAxis:a,yAxis:l,xAxisTicks:c,yAxisTicks:u,stackedData:d,displayedData:f,offset:h,cells:p,parentViewBox:m,dataStartIndex:g}=e,v=t==="horizontal"?l:a,b=d?v.scale.domain():null,w=Tct({numericAxis:v}),x=v.scale.map(w);return f.map((E,S)=>{var _,k,C,T,A,O;if(d){var R=d[S+g];if(R==null)return null;_=Ect(R,b)}else _=Zt(E,n),Array.isArray(_)||(_=[w,_]);var I=r1t(r,RSe)(_[1],S);if(t==="horizontal"){var F,N=l.scale.map(_[0]),B=l.scale.map(_[1]);if(N==null||B==null)return null;k=_J({axis:a,ticks:c,bandSize:s,offset:o.offset,entry:E,index:S}),C=(F=B??N)!==null&&F!==void 0?F:void 0,T=o.size;var M=N-B;if(A=zl(M)?0:M,O={x:k,y:h.top,width:T,height:h.height},Math.abs(I)>0&&Math.abs(A)<Math.abs(I)){var L=Ai(A||I)*(Math.abs(I)-Math.abs(A));C-=L,A+=L}}else{var P=a.scale.map(_[0]),G=a.scale.map(_[1]);if(P==null||G==null)return null;if(k=P,C=_J({axis:l,ticks:u,bandSize:s,offset:o.offset,entry:E,index:S}),T=G-P,A=o.size,O={x:h.left,y:C,width:h.width,height:A},Math.abs(I)>0&&Math.abs(T)<Math.abs(I)){var Z=Ai(T||I)*(Math.abs(I)-Math.abs(T));T+=Z}}if(k==null||C==null||T==null||A==null||!i&&(T===0||A===0))return null;var z=Mo(Mo({},E),{},{stackedBarStart:x,x:k,y:C,width:T,height:A,value:d?_:_[1],payload:E,background:O,tooltipPosition:{x:k+T/2,y:C+A/2},parentViewBox:m,originalDataIndex:S},p&&p[S]&&p[S].props);return z}).filter(Boolean)}function Y1t(e){var t=Vr(e,K1t),n=_1t(t.stackId),r=Ni();return y.createElement(EN,{id:t.id,type:"bar"},i=>y.createElement(y.Fragment,null,y.createElement(t9,{legendPayload:D1t(t)}),y.createElement(L1t,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),y.createElement(n9,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),y.createElement(Qo,{zIndex:t.zIndex},y.createElement(q1t,Eh({},t,{id:i})))))}var X1t=y.memo(Y1t,Sg);X1t.displayName="Bar";var Z1t=["domain","range"],Q1t=["domain","range"];function One(e,t){if(e==null)return{};var n,r,i=J1t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J1t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pne(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function MSe(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=One(e,Z1t),{domain:o,range:s}=t,a=One(t,Q1t);return!Pne(n,o)||!Pne(r,s)?!1:Sg(i,a)}var eSt=["type"],tSt=["dangerouslySetInnerHTML","ticks","scale"],nSt=["id","scale"];function Pz(){return Pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pz.apply(null,arguments)}function Ine(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1015t%2?Ine(Object(n),!0).forEach(function(r){rSt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ine(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rSt(e,t,n){return(t=iSt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iSt(e){var t=oSt(e,"string");return typeof t=="symbol"?t:t+""}function oSt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iz(e,t){if(e==null)return{};var n,r,i=sSt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sSt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function aSt(e){var t=_n(),n=y.useRef(null),r=RW(),{type:i}=e,o=Iz(e,eSt),s=VM(r,"xAxis",i),a=y.useMemo(()=>{if(s!=null)return Rne(Rne({},o),{},{type:s})},[o,s]);return y.useLayoutEffect(()=>{a!=null&&(n.current===null?t(_wt(a)):n.current!==a&&t(kwt({prev:n.current,next:a})),n.current=a)},[a,t]),y.useLayoutEffect(()=>()=>{n.current&&(t(Cwt(n.current)),n.current=null)},[t]),null}var lSt=e=>{var{xAxisId:t,className:n}=e,r=Be(TW),i=Ni(),o="xAxis",s=Be(v=>t1e(v,o,t,i)),a=Be(v=>QEe(v,t)),l=Be(v=>mgt(v,t)),c=Be(v=>PEe(v,t));if(a==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,h=Iz(e,tSt),{id:p,scale:m}=c,g=Iz(c,nSt);return y.createElement(i9,Pz({},h,g,{x:l.x,y:l.y,width:a.width,height:a.height,className:Wt("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:s,axisType:o,axisId:t}))},cSt={allowDataOverflow:oi.allowDataOverflow,allowDecimals:oi.allowDecimals,allowDuplicatedCategory:oi.allowDuplicatedCategory,angle:oi.angle,axisLine:sd.axisLine,height:oi.height,hide:!1,includeHidden:oi.includeHidden,interval:oi.interval,label:!1,minTickGap:oi.minTickGap,mirror:oi.mirror,orientation:oi.orientation,padding:oi.padding,reversed:oi.reversed,scale:oi.scale,tick:oi.tick,tickCount:oi.tickCount,tickLine:sd.tickLine,tickSize:sd.tickSize,type:oi.type,niceTicks:oi.niceTicks,xAxisId:0},uSt=e=>{var t=Vr(e,cSt);return y.createElement(y.Fragment,null,y.createElement(aSt,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),y.createElement(lSt,t))},dSt=y.memo(uSt,MSe);dSt.displayName="XAxis";var fSt=["type"],hSt=["dangerouslySetInnerHTML","ticks","scale"],pSt=["id","scale"];function Rz(){return Rz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rz.apply(null,arguments)}function Mne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mne(Object(n),!0).forEach(function(r){mSt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mSt(e,t,n){return(t=gSt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gSt(e){var t=vSt(e,"string");return typeof t=="symbol"?t:t+""}function vSt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mz(e,t){if(e==null)return{};var n,r,i=ySt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ySt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}
1015function bSt(e){var t=_n(),n=y.useRef(null),r=RW(),{type:i}=e,o=Mz(e,fSt),s=VM(r,"yAxis",i),a=y.useMemo(()=>{if(s!=null)return Nne(Nne({},o),{},{type:s})},[s,o]);return y.useLayoutEffect(()=>{a!=null&&(n.current===null?t(Twt(a)):n.current!==a&&t(Awt({prev:n.current,next:a})),n.current=a)},[a,t]),y.useLayoutEffect(()=>()=>{n.current&&(t(Owt(n.current)),n.current=null)},[t]),null}function wSt(e){var{yAxisId:t,className:n,width:r,label:i}=e,o=y.useRef(null),s=y.useRef(null),a=Be(TW),l=Ni(),c=_n(),u="yAxis",d=Be(S=>JEe(S,t)),f=Be(S=>vgt(S,t)),h=Be(S=>t1e(S,u,t,l)),p=Be(S=>IEe(S,t));if(y.useLayoutEffect(()=>{if(!(r!=="auto"||!d||VH(i)||y.isValidElement(i)||p==null)){var S=o.current;if(S){var _=S.getCalculatedWidth();Math.round(d.width)!==Math.round(_)&&c(Pwt({id:t,width:_}))}}},[h,d,c,i,t,r,p]),d==null||f==null||p==null)return null;var{dangerouslySetInnerHTML:m,ticks:g,scale:v}=e,b=Mz(e,hSt),{id:w,scale:x}=p,E=Mz(p,pSt);return y.createElement(i9,Rz({},b,E,{ref:o,labelRef:s,x:f.x,y:f.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:d.width,height:d.height,className:Wt("recharts-".concat(u," ").concat(u),n),viewBox:a,ticks:h,axisType:u,axisId:t}))}var xSt={allowDataOverflow:si.allowDataOverflow,allowDecimals:si.allowDecimals,allowDuplicatedCategory:si.allowDuplicatedCategory,angle:si.angle,axisLine:sd.axisLine,hide:!1,includeHidden:si.includeHidden,interval:si.interval,label:!1,minTickGap:si.minTickGap,mirror:si.mirror,orientation:si.orientation,padding:si.padding,reversed:si.reversed,scale:si.scale,tick:si.tick,tickCount:si.tickCount,tickLine:sd.tickLine,tickSize:sd.tickSize,type:si.type,niceTicks:si.niceTicks,width:si.width,yAxisId:0},ESt=e=>{var t=Vr(e,xSt);return y.createElement(y.Fragment,null,y.createElement(bSt,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),y.createElement(wSt,t))},SSt=y.memo(ESt,MSe);SSt.displayName="YAxis";var _St=(e,t)=>t,l9=q([_St,Ut,Hxe,Di,b1e,Nd,Fvt,gi],Hvt);function kSt(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function c9(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(kSt(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var o=e.currentTarget;n=o.offsetWidth>0?t.width/o.offsetWidth:1,r=o.offsetHeight>0?t.height/o.offsetHeight:1}var s=(a,l)=>({relativeX:Math.round((a-t.left)/n),relativeY:Math.round((l-t.top)/r)});return"touches"in e?Array.from(e.touches).map(a=>s(a.clientX,a.clientY)):s(e.clientX,e.clientY)}var NSe=ea("mouseClick"),DSe=FS();DSe.startListening({actionCreator:NSe,effect:(e,t)=>{var n=e.payload,r=l9(t.getState(),c9(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Mgt({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Nz=ea("mouseMove"),LSe=FS(),ev=null,gp=null,l$=null;LSe.startListening({actionCreator:Nz,effect:(e,t)=>{var n=e.payload,r=t.getState(),{throttleDelay:i,throttledEvents:o}=r.eventSettings,s=o==="all"||(o==null?void 0:o.includes("mousemove"));ev!==null&&(cancelAnimationFrame(ev),ev=null),gp!==null&&(typeof i!="number"||!s)&&(clearTimeout(gp),gp=null),l$=c9(n);var a=()=>{var l=t.getState(),c=t_(l,l.tooltip.settings.shared);if(!l$){ev=null,gp=null;return}if(c==="axis"){var u=l9(l,l$);(u==null?void 0:u.activeIndex)!=null?t.dispatch(c1e({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(l1e())}ev=null,gp=null};if(!s){a();return}i==="raf"?ev=requestAnimationFrame(a):typeof i=="number"&&gp===null&&(gp=setTimeout(a,i))}});function CSt(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>
1015>":t}var Dne={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},$Se=So({name:"rootProps",initialState:Dne,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:Dne.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),TSt=$Se.reducer,{updateOptions:ASt}=$Se.actions,OSt=null,PSt={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},FSe=So({name:"polarOptions",initialState:OSt,reducers:PSt}),{updatePolarOptions:ISt}=FSe.actions,RSt=FSe.reducer,BSe=ea("keyDown"),jSe=ea("focus"),zSe=ea("blur"),CN=FS(),tv=null,vp=null,iC=null;CN.startListening({actionCreator:BSe,effect:(e,t)=>{iC=e.payload,tv!==null&&(cancelAnimationFrame(tv),tv=null);var n=t.getState(),{throttleDelay:r,throttledEvents:i}=n.eventSettings,o=i==="all"||i.includes("keydown");vp!==null&&(typeof r!="number"||!o)&&(clearTimeout(vp),vp=null);var s=()=>{try{var a=t.getState(),l=a.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:c}=a.tooltip,u=iC;if(u!=="ArrowRight"&&u!=="ArrowLeft"&&u!=="Enter")return;var d=Wx(c,qm(a),ub(a),db(a)),f=d==null?-1:Number(d),h=!Number.isFinite(f)||f<0,p=Nd(a),m=qm(a),g=t_(a,a.tooltip.settings.shared);if(u==="Enter"){if(h)return;var v=yP(a,g,"hover",String(c.index));t.dispatch(vP({active:!c.active,activeIndex:c.index,activeCoordinate:v}));return}var b=Egt(a),w=b==="left-to-right"?1:-1,x=u==="ArrowRight"?1:-1,E;if(h){var S=ub(a),_=db(a),k=x*w,C=I=>({active:!1,index:String(I),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(E=-1,k>0){for(var T=0;T<m.length;T++)if(Wx(C(T),m,S,_)!=null){E=T;break}}else for(var A=m.length-1;A>=0;A--)if(Wx(C(A),m,S,_)!=null){E=A;break}if(E<0)return}else{E=f+x*w;var O=(p==null?void 0:p.length)||m.length;if(O===0||E>=O||E<0)return}var R=yP(a,g,"hover",String(E));t.dispatch(vP({active:!0,activeIndex:E.toString(),activeCoordinate:R}))}finally{tv=null,vp=null}};if(!o){s();return}r==="raf"?tv=requestAnimationFrame(s):typeof r=="number"&&vp===null&&(s(),iC=null,vp=setTimeout(()=>{iC?s():(vp=null,tv=null)},r))}});CN.startListening({actionCreator:jSe,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",s=t_(n,n.tooltip.settings.shared),a=yP(n,s,"hover",String(o));t.dispatch(vP({active:!0,activeIndex:o,activeCoordinate:a}))}}}});CN.startListening({actionCreator:zSe,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;i.active&&t.dispatch(vP({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function USe(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var i=Reflect.get(n,r);return typeof i=="function"?i.bind(n):i}})}var fa=ea("externalEvent"),VSe=FS(),oC=new Map,vw=new Map,c$=new Map;VSe.startListening({actionCreator:fa,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,o=USe(r);c$.set(i,{handler:n,reactEvent:o});var s=oC.get(i);s!==void 0&&(cancelAnimationFrame(s),oC.delete(i));var a=t.getState(),{throttleDelay:l,throttledEvents:c}=a.eventSettings,u=c,d=u==="all"||(u==null?void 0:u.includes(i)),f=vw.get(i);f!==void 0&&(typeof l!="number"||!d)&&(clearTimeout(f),vw.delete(i));var h=()=>{var g=c$.get(i);try{if(!g)return;var{handler:v,reactEvent:b}=g,w=t.getState(),x={activeCoordinate:Svt(w),activeDataKey:FH(w),activeIndex:wh(w),activeLabel:E1e(w),activeTooltipIndex:wh(w),isTooltipActive:_vt(w)};v&&v(x,b)}finally{oC.delete(i),vw.delete(i),c$.delete(i)}};if(!d){h();return}if(l==="raf"){var p=requestAnimationFrame(h);oC.set(i,p)}else if(typeof l=="number"){if(!vw.has(i)){h();var m=setTimeout(h,l);vw.set(i,m)}}else h()}}});var MSt=q([m0],e=>e.tooltipItemPayloads),NSt=q([MSt,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(o=>o.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),WSe=ea("touchMove"),HSe=FS(),yp=null,Hd=null,Lne=null,yw=null;HSe.startListening({actionCreator:WSe,effect:(e,t)=>
1015{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){yw=USe(n);var r=t.getState(),{throttleDelay:i,throttledEvents:o}=r.eventSettings,s=o==="all"||o.includes("touchmove");yp!==null&&(cancelAnimationFrame(yp),yp=null),Hd!==null&&(typeof i!="number"||!s)&&(clearTimeout(Hd),Hd=null),Lne=Array.from(n.touches).map(l=>c9({clientX:l.clientX,clientY:l.clientY,currentTarget:n.currentTarget}));var a=()=>{if(yw!=null){var l=t.getState(),c=t_(l,l.tooltip.settings.shared);if(c==="axis"){var u,d=(u=Lne)===null||u===void 0?void 0:u[0];if(d==null){yp=null,Hd=null;return}var f=l9(l,d);(f==null?void 0:f.activeIndex)!=null&&t.dispatch(c1e({activeIndex:f.activeIndex,activeDataKey:void 0,activeCoordinate:f.activeCoordinate}))}else if(c==="item"){var h,p=yw.touches[0];if(document.elementFromPoint==null||p==null)return;var m=document.elementFromPoint(p.clientX,p.clientY);if(!m||!m.getAttribute)return;var g=m.getAttribute(Wwe),v=(h=m.getAttribute(Hwe))!==null&&h!==void 0?h:void 0,b=Cg(l).find(E=>E.id===v);if(g==null||b==null||v==null)return;var{dataKey:w}=b,x=NSt(l,g,v);t.dispatch(a1e({activeDataKey:w,activeIndex:g,activeCoordinate:x,activeGraphicalItemId:v}))}yp=null,Hd=null}};if(!s){a();return}i==="raf"?yp=requestAnimationFrame(a):typeof i=="number"&&Hd===null&&(a(),yw=null,Hd=setTimeout(()=>{yw?a():(Hd=null,yp=null)},i))}}});var u9={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},KSe=So({name:"eventSettings",initialState:u9,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:DSt}=KSe.actions,LSt=KSe.reducer,$St=dwe({brush:Gwt,cartesianAxis:Iwt,chartData:wyt,errorBars:Gxt,eventSettings:LSt,graphicalItems:D0t,layout:vct,legend:but,options:myt,polarAxis:Xbt,polarOptions:RSt,referenceElements:Qwt,renderedTicks:mxt,rootProps:TSt,tooltip:Ngt,zIndex:iyt}),FSt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Ult({reducer:$St,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([DSe.middleware,LSe.middleware,CN.middleware,VSe.middleware,HSe.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(Cwe({type:"raf"}))},devTools:{serialize:{replacer:CSt},name:"recharts-".concat(n)}})};function qSe(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Ni(),o=y.useRef(null);if(i)return n;o.current==null&&(o.current=FSt(t,r));var s=yW;return y.createElement(zut,{context:s,store:o.current},n)}function BSt(e){var{layout:t,margin:n}=e,r=_n(),i=Ni();return y.useEffect(()=>{i||(r(pct(t)),r(hct(n)))},[r,i,t,n]),null}var GSe=y.memo(BSt,Sg);function YSe(e){var t=_n();return y.useEffect(()=>{t(ASt(e))},[t,e]),null}var jSt=e=>{var t=_n();return y.useEffect(()=>{t(DSt(e))},[t,e]),null},XSe=y.memo(jSt,Sg);function $ne(e){var{zIndex:t,isPanorama:n}=e,r=y.useRef(null),i=_n();return y.useLayoutEffect(()=>(r.current&&i(nyt({zIndex:t,element:r.current,isPanorama:n})),()=>{i(ryt({zIndex:t,isPanorama:n}))}),[i,t,n]),y.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function Fne(e){var{children:t,isPanorama:n}=e,r=Be(qvt);if(!r||r.length===0)return t;var i=r.filter(s=>s<0),o=r.filter(s=>s>0);return y.createElement(y.Fragment,null,i.map(s=>y.createElement($ne,{key:s,zIndex:s,isPanorama:n})),t,o.map(s=>y.createElement($ne,{key:s,zIndex:s,isPanorama:n})))}var zSt=["children"];function USt(e,t){if(e==null)return{};var n,r,i=VSt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function VSt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function CP(){return CP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CP.apply(null,arguments)}var WSt={width:"100%",height:"100%",display:"block"},HSt=y.forwardRef((e,t)=>
1015{var n=PW(),r=IW(),i=dxe();if(!Zc(n)||!Zc(r))return null;var{children:o,otherAttributes:s,title:a,desc:l}=e,c,u;return s!=null&&(typeof s.tabIndex=="number"?c=s.tabIndex:c=i?0:void 0,typeof s.role=="string"?u=s.role:u=i?"application":void 0),y.createElement(nW,CP({},s,{title:a,desc:l,role:u,tabIndex:c,width:n,height:r,style:WSt,ref:t}),o)}),KSt=e=>{var{children:t}=e,n=Be($M);if(!n)return null;var{width:r,height:i,y:o,x:s}=n;return y.createElement(nW,{width:r,height:i,x:s,y:o},t)},Bne=y.forwardRef((e,t)=>{var{children:n}=e,r=USt(e,zSt),i=Ni();return i?y.createElement(KSt,null,y.createElement(Fne,{isPanorama:!0},n)):y.createElement(HSt,CP({ref:t},r),y.createElement(Fne,{isPanorama:!1},n))});function qSt(){var e=_n(),[t,n]=y.useState(null),r=Be(Mct);return y.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;Rt(o)&&o!==r&&e(gct(o))}},[t,e,r]),n}function jne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function GSt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jne(Object(n),!0).forEach(function(r){YSt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YSt(e,t,n){return(t=XSt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XSt(e){var t=ZSt(e,"string");return typeof t=="symbol"?t:t+""}function ZSt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nh.apply(null,arguments)}var QSt=()=>(Oyt(),null);function TP(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var JSt=y.forwardRef((e,t)=>{var n,r,i=y.useRef(null),[o,s]=y.useState({containerWidth:TP((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:TP((r=e.style)===null||r===void 0?void 0:r.height)}),a=y.useCallback((c,u)=>{s(d=>{var f=Math.round(c),h=Math.round(u);return d.containerWidth===f&&d.containerHeight===h?d:{containerWidth:f,containerHeight:h}})},[]),l=y.useCallback(c=>{if(typeof t=="function"&&t(c),i.current!=null&&(i.current.disconnect(),i.current=null),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();a(u,d);var f=p=>{var m=p[0];if(m!=null){var{width:g,height:v}=m.contentRect;a(g,v)}},h=new ResizeObserver(f);h.observe(c),i.current=h}},[t,a]);return y.useEffect(()=>()=>{var c=i.current;c!=null&&c.disconnect()},[a]),y.createElement(y.Fragment,null,y.createElement(jS,{width:o.containerWidth,height:o.containerHeight}),y.createElement("div",nh({ref:l},e)))}),e_t=y.forwardRef((e,t)=>{var{width:n,height:r}=e,[i,o]=y.useState({containerWidth:TP(n),containerHeight:TP(r)}),s=y.useCallback((l,c)=>{o(u=>{var d=Math.round(l),f=Math.round(c);return u.containerWidth===d&&u.containerHeight===f?u:{containerWidth:d,containerHeight:f}})},[]),a=y.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();s(c,u)}},[t,s]);return y.createElement(y.Fragment,null,y.createElement(jS,{width:i.containerWidth,height:i.containerHeight}),y.createElement("div",nh({ref:a},e)))}),t_t=y.forwardRef((e,t)=>{var{width:n,height:r}=e;return y.createElement(y.Fragment,null,y.createElement(jS,{width:n,height:r}),y.createElement("div",nh({ref:t},e)))}),n_t=y.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?y.createElement(e_t,nh({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?y.createElement(t_t,nh({},e,{width:n,height:r,ref:t})):y.createElement(y.Fragment,null,y.createElement(jS,{width:n,height:r}),y.createElement("div",nh({ref:t},e)))});function r_t(e){return e?JSt:n_t}var i_t=y.forwardRef((e,t)=>
1015{var{children:n,className:r,height:i,onClick:o,onContextMenu:s,onDoubleClick:a,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:f,onTouchEnd:h,onTouchMove:p,onTouchStart:m,style:g,width:v,responsive:b,dispatchTouchEvents:w=!0}=e,x=y.useRef(null),E=_n(),[S,_]=y.useState(null),[k,C]=y.useState(null),T=qSt(),A=AW(),O=(A==null?void 0:A.width)>0?A.width:v,R=(A==null?void 0:A.height)>0?A.height:i,I=y.useCallback(K=>{T(K),typeof t=="function"&&t(K),_(K),C(K),K!=null&&(x.current=K)},[T,t,_,C]),F=y.useCallback(K=>{E(NSe(K)),E(fa({handler:o,reactEvent:K}))},[E,o]),N=y.useCallback(K=>{E(Nz(K)),E(fa({handler:c,reactEvent:K}))},[E,c]),B=y.useCallback(K=>{E(l1e()),E(fa({handler:u,reactEvent:K}))},[E,u]),M=y.useCallback(K=>{E(Nz(K)),E(fa({handler:d,reactEvent:K}))},[E,d]),L=y.useCallback(()=>{E(jSe())},[E]),P=y.useCallback(()=>{E(zSe())},[E]),G=y.useCallback(K=>{E(BSe(K.key))},[E]),Z=y.useCallback(K=>{E(fa({handler:s,reactEvent:K}))},[E,s]),z=y.useCallback(K=>{E(fa({handler:a,reactEvent:K}))},[E,a]),oe=y.useCallback(K=>{E(fa({handler:l,reactEvent:K}))},[E,l]),le=y.useCallback(K=>{E(fa({handler:f,reactEvent:K}))},[E,f]),se=y.useCallback(K=>{E(fa({handler:m,reactEvent:K}))},[E,m]),ue=y.useCallback(K=>{w&&E(WSe(K)),E(fa({handler:p,reactEvent:K}))},[E,w,p]),ce=y.useCallback(K=>{E(fa({handler:h,reactEvent:K}))},[E,h]),Q=r_t(b);return y.createElement(I1e.Provider,{value:S},y.createElement(l0e.Provider,{value:k},y.createElement(Q,{width:O??(g==null?void 0:g.width),height:R??(g==null?void 0:g.height),className:Wt("recharts-wrapper",r),style:GSt({position:"relative",cursor:"default",width:O,height:R},g),onClick:F,onContextMenu:Z,onDoubleClick:z,onFocus:L,onBlur:P,onKeyDown:G,onMouseDown:oe,onMouseEnter:N,onMouseLeave:B,onMouseMove:M,onMouseUp:le,onTouchEnd:ce,onTouchMove:ue,onTouchStart:se,ref:I},y.createElement(QSt,null),n)))}),o_t=["width","height","responsive","children","className","style","compact","title","desc"];function s_t(e,t){if(e==null)return{};var n,r,i=a_t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function a_t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ZSe=y.forwardRef((e,t)=>{var{width:n,height:r,responsive:i,children:o,className:s,style:a,compact:l,title:c,desc:u}=e,d=s_t(e,o_t),f=Ho(d);return l?y.createElement(y.Fragment,null,y.createElement(jS,{width:n,height:r}),y.createElement(Bne,{otherAttributes:f,title:c,desc:u},o)):y.createElement(i_t,{className:s,style:a,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},y.createElement(Bne,{otherAttributes:f,title:c,desc:u,ref:t},y.createElement(ext,null,o)))});function Dz(){return Dz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dz.apply(null,arguments)}function zne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function l_t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zne(Object(n),!0).forEach(function(r){c_t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c_t(e,t,n){return(t=u_t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u_t(e){var t=d_t(e,"string");return typeof t=="symbol"?t:t+""}function d_t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f_t={top:5,right:5,bottom:5,left:5},h_t=l_t({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:f_t,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},u9),d9=y.forwardRef(function(t,n){var r,i=Vr(t.categoricalChartProps,h_t),{chartName:o,defaultTooltipEventType:s,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,categoricalChartProps:c}
1015=t,u={chartName:o,defaultTooltipEventType:s,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,eventEmitter:void 0};return y.createElement(qSe,{preloadedState:{options:u},reduxStoreName:(r=c.id)!==null&&r!==void 0?r:o},y.createElement(aSe,{chartData:c.data}),y.createElement(GSe,{layout:i.layout,margin:i.margin}),y.createElement(XSe,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),y.createElement(YSe,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),y.createElement(ZSe,Dz({},i,{ref:n})))}),p_t=["axis"],crn=y.forwardRef((e,t)=>y.createElement(d9,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:p_t,tooltipPayloadSearcher:oN,categoricalChartProps:e,ref:t})),m_t=["axis","item"],urn=y.forwardRef((e,t)=>y.createElement(d9,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:m_t,tooltipPayloadSearcher:oN,categoricalChartProps:e,ref:t}));function g_t(e){var t=_n();return y.useEffect(()=>{t(ISt(e))},[t,e]),null}var v_t=["layout"];function Lz(){return Lz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lz.apply(null,arguments)}function y_t(e,t){if(e==null)return{};var n,r,i=b_t(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function b_t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Une(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function w_t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Une(Object(n),!0).forEach(function(r){x_t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Une(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x_t(e,t,n){return(t=E_t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E_t(e){var t=S_t(e,"string");return typeof t=="symbol"?t:t+""}function S_t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var __t={top:5,right:5,bottom:5,left:5},QSe=w_t({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:__t,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},u9),k_t=y.forwardRef(function(t,n){var r,i=Vr(t.categoricalChartProps,QSe),{layout:o}=i,s=y_t(i,v_t),{chartName:a,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:a,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return y.createElement(qSe,{preloadedState:{options:d},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:a},y.createElement(aSe,{chartData:i.data}),y.createElement(GSe,{layout:o,margin:i.margin}),y.createElement(XSe,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),y.createElement(YSe,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),y.createElement(g_t,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),y.createElement(ZSe,Lz({},s,{ref:n})))});function Vne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1015t%2?Vne(Object(n),!0).forEach(function(r){C_t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vne(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C_t(e,t,n){return(t=T_t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T_t(e){var t=A_t(e,"string");return typeof t=="symbol"?t:t+""}function A_t(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O_t=["item"],P_t=Wne(Wne({},QSe),{},{layout:"centric",startAngle:0,endAngle:360}),drn=y.forwardRef((e,t)=>{var n=Vr(e,P_t);return y.createElement(k_t,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:O_t,tooltipPayloadSearcher:oN,categoricalChartProps:n,ref:t})}),I_t=["axis"],frn=y.forwardRef((e,t)=>y.createElement(d9,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:I_t,tooltipPayloadSearcher:oN,categoricalChartProps:e,ref:t})),i_=e=>e.type==="checkbox",TN=e=>e.type==="file",$f=e=>e instanceof Date,ki=e=>e==null;const f9=e=>typeof e=="object";var Ir=e=>!ki(e)&&!Array.isArray(e)&&f9(e)&&!$f(e),$z=e=>Ir(e)&&e.target?i_(e.target)?e.target.checked:TN(e.target)?e.target.files:e.target.value:e;const R_t=/[.[\]'"]/;var Ym=e=>e.split(R_t).filter(Boolean);function M_t(e,t){const n=Ym(t);let r=e._formValues,i=e._defaultValues;for(let o=0;o<n.length-1;o++){const s=n[o];if(r=r==null?r:r[s],i=i==null?i:i[s],r===null||i===null)return null}}var JSe=(e,t)=>t.split(".").some((n,r,i)=>!isNaN(Number(n))&&e.has(i.slice(0,r).join("."))),AN=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function In(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(AN&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&e.constructor!==Object)return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=In(e[i]));return r}const af={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},bl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},il={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},e_e="root",h9=["__proto__","constructor","prototype"],N_t=/^\w*$/;var Xm=e=>N_t.test(e),on=e=>e===void 0,ke=(e,t,n)=>{if(!t||!Ir(e))return n;const r=Xm(t)?[t]:Ym(t);if(r.some(o=>h9.includes(o)))return n;const i=r.reduce((o,s)=>ki(o)?void 0:o[s],e);return on(i)||i===e?on(e[t])?n:e[t]:i},Ms=e=>typeof e=="boolean",go=e=>typeof e=="function",tn=(e,t,n)=>{let r=-1;const i=Xm(t)?[t]:Ym(t),o=i.length,s=o-1;for(;++r<o;){const a=i[r];let l=n;if(r!==s){const c=e[a];l=Ir(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(h9.includes(a))return;e[a]=l,e=e[a]}};const t_e=$.createContext(null);t_e.displayName="HookFormControlContext";const p9=()=>$.useContext(t_e);var n_e=(e,t,n,r=!0)=>{const i={};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==bl.all&&(t._proxyFormState[s]=!r||bl.all),n&&(n[s]=!0),e[s]}});return i};const m9=AN?$.useLayoutEffect:$.useEffect;var D_t=e=>{const t=e.constructor&&e.constructor.prototype;return Ir(t)&&t.hasOwnProperty("isPrototypeOf")},Fz=e=>ki(e)||!f9(e);const Hne=(e,t)=>t.length===0&&!Array.isArray(e)&&!D_t(e);function is(e,t,n=new WeakMap){if(e===t)return!0;if(Fz(e)||Fz(t))return Object.is(e,t);if($f(e)&&$f(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Hne(e,r)||Hne(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;const o=n.get(e);if(o&&o.has(t))return!0;if(o)o.add(t);else{const s=new WeakSet;s.add(t),n.set(e,s)}for(const s of r){const a=e[s];if(!(s in t))return!1;if(s!=="ref"){const l=t[s];if($f(a)&&$f(l)||(Ir(a)||Array.isArray(a))&&(Ir(l)||Array.isArray(l))?!is(a,l,n):!Object.is(a,l))return!1}}return!0}function g9(e){const t=$.useRef(!1),n=$.useRef(!1),r=$.useRef(void 0),i=$.useRef(0);i.current++,!n.current&&e&&(n.current=!0,r.current=In(e()));const o=$.useCallback((a,l,c)=>
1015{if(a&&(t.current||n.current&&i.current>1)){const u=l();is(r.current,u)||c(u)}t.current=!0},[]),s=$.useCallback((a,l)=>{a&&(r.current=In(l()))},[]);return{resyncIfNeeded:o,snapshot:s}}function L_t(e){const t=p9(),{control:n=t,disabled:r,name:i,exact:o}=e||{},s=()=>({...n._formState,defaultValues:n._defaultValues}),[a,l]=$.useState(s),c=$.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:u,snapshot:d}=g9(s);return m9(()=>{u(!r,s,l);const f=n._subscribe({name:i,formState:c.current,exact:o,callback:h=>{!r&&l({...n._formState,...h,defaultValues:n._defaultValues})}});return()=>{f(),d(!r,s)}},[i,r,o,u,d]),$.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),$.useMemo(()=>n_e(a,n,c.current,!1),[a,n])}var Ti=e=>typeof e=="string",Bz=(e,t,n,r,i)=>Ti(e)?(r&&t.watch.add(e),ke(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),ke(n,o,ke(i,o)))):(r&&(t.watchAll=!0),n);function $_t(e){const t=p9(),{control:n=t,name:r,defaultValue:i,disabled:o,exact:s,compute:a}=e||{},l=$.useRef(i),c=$.useRef(a),u=$.useRef(void 0),d=$.useRef(n),f=$.useRef(r);c.current=a;const h=()=>{const C=n._getWatch(r,l.current);return c.current?c.current(C):C},[p,m]=$.useState(h),g=$.useCallback(C=>{const T=Bz(r,n._names,C||n._formValues,!1,l.current);return c.current?c.current(T):T},[n._formValues,n._names,r]),v=$.useCallback(C=>{if(!o){const T=Bz(r,n._names,C||n._formValues,!1,l.current);if(c.current){const A=c.current(T);is(A,u.current)||(m(A),u.current=A)}else m(T)}},[n._formValues,n._names,o,r]),{resyncIfNeeded:b,snapshot:w}=g9(h),x=$.useRef(v);x.current=v;const E=$.useRef(g);E.current=g,m9(()=>{d.current!==n||!is(f.current,r)?(d.current=n,f.current=r,x.current()):b(!o,()=>E.current(),T=>{m(T),u.current=T});const C=n._subscribe({name:r,formState:{values:!0},exact:s,callback:T=>{x.current(T.values)}});return()=>{C(),w(!o,()=>E.current())}},[n,s,r,o,b,w]),$.useEffect(()=>n._removeUnmounted());const S=d.current!==n,_=f.current;return $.useMemo(()=>{if(o)return!1;const C=!S&&!is(_,r);return S||C},[o,S,r,_])?g():p}function F_t(e){const t=p9(),{name:n,disabled:r,control:i=t,shouldUnregister:o,defaultValue:s,exact:a=!0}=e,l=JSe(i._names.array,n),c=$.useMemo(()=>{const x=ke(i._formValues,n,ke(i._defaultValues,n,s));return on(x)?M_t(i,n):x},[i,n,s]),u=$_t({control:i,name:n,defaultValue:c,exact:a}),d=L_t({control:i,name:n,exact:a}),f=$.useRef(e),h=$.useRef(null),p=$.useRef(i.register(n,{...e.rules,value:u,...Ms(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=$.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!ke(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ke(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ke(d.validatingFields,n)},error:{enumerable:!0,get:()=>ke(d.errors,n)}}),[d,n]),g=$.useCallback(x=>{const E=$z(x);return ke(i._fields,n)||(p.current=i.register(n,{...f.current.rules,value:E})),p.current.onChange({target:{value:$z(x),name:n},type:af.CHANGE})},[n,i]),v=$.useCallback(()=>p.current.onBlur({target:{value:ke(i._formValues,n),name:n},type:af.BLUR}),[n,i._formValues]),b=$.useCallback(x=>{x&&(h.current={focus:()=>go(x.focus)&&x.focus(),select:()=>go(x.select)&&x.select(),setCustomValidity:S=>go(x.setCustomValidity)&&x.setCustomValidity(S),reportValidity:()=>go(x.reportValidity)&&x.reportValidity()});const E=ke(i._fields,n);E&&E._f&&x&&(E._f.ref=h.current)},[i._fields,n]),w=$.useMemo(()=>({name:n,value:u,...Ms(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:g,onBlur:v,ref:b}),[n,r,d.disabled,g,v,b,u]);return $.useEffect(()=>{const x=i._options.shouldUnregister||o;p.current=i.register(n,{...f.current.rules,...Ms(f.current.disabled)?{disabled:f.current.disabled}:{}});const E=(S,_)=>{const k=ke(i._fields,S);k&&k._f&&(k._f.mount=_)};if(E(n,!0),x){const S=In(ke(o?i._defaultValues:i._options.values||i._defaultValues,n,ke(i._options.defaultValues,n,f.current.defaultValue)));tn(i._defaultValues,n,S),on(ke(i._formValues,n))&&tn(i._formValues,n,S)}if(!l&&i.register(n),h.current){const S=ke(i._fields,n);S&&S._f&&(S._f.ref=h.current)}return()=>{(l?x&&!i._state.action:x)?i.unregister(n):E(n,!1)}},[n,i,l,o]),$.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),$.useMemo(()=>({field:w,formState:d,fieldState:m}),[w,d,m])}const hrn=e=>e.render(F_t(e));var sC=e=>({isOnSubmit:!e||e===bl.onSubmit,isOnBlur:e===bl.onBlur,isOnChange:e===bl.onChange,isOnAll:e===bl.all,isOnTouch:e===bl.onTouched}),u$=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const r of t.watch)if(e.startsWith(r)&&e.charAt(r.length)===".")return!0;return!1};const Kx=(e,t,n,r)=>{for(const i of n||Object.keys(e)){if(i==="_f")continue;const o=n?ke(e,i):e[i];if(o){const{_f:s}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;
vendor: 4,807 bytes, line 1015
1015if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Kx(o,t))break}else if((Ir(o)||Array.isArray(o))&&Kx(o,t))break}}};var Kne=(e,t,n)=>{const r=ke(e,n),i=Array.isArray(r)?r:[];return tn(i,e_e,t[n]),tn(e,n,i),e},zi=e=>Ir(e)&&!Object.keys(e).length,AP=e=>{if(!AN)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},v9=e=>e.type==="radio",OP=e=>e instanceof RegExp,r_e=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const qne={value:!1,isValid:!1},Gne={value:!0,isValid:!0};var i_e=e=>{if(!Array.isArray(e))return qne;if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}const t=e[0];return!t||!t.checked||t.disabled?qne:!t.attributes||!("value"in t.attributes)||on(t.value)||t.value===""?Gne:{value:t.value,isValid:!0}};const Yne={isValid:!1,value:null};var o_e=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Yne):Yne;function Xne(e,t,n="validate"){if(Ti(e)||Array.isArray(e)&&e.every(Ti)||Ms(e)&&!e)return{type:n,message:Ti(e)?e:"",ref:t}}var nv=e=>Ir(e)&&!OP(e)?e:{value:e,message:""},Zne=async(e,t,n,r,i,o)=>{const{ref:s,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:h,validate:p,name:m,valueAsNumber:g,mount:v}=e._f,b=ke(n,m);if(!v||t.has(m))return{};const w=a?a[0]:s,x=R=>{if(i&&w.reportValidity){const I=Ms(R)?"":R||"";a?a.forEach(F=>F.setCustomValidity(I)):w.setCustomValidity(I),w.reportValidity()}},E={},S=v9(s),_=i_(s),k=S||_,C=(g||TN(s))&&on(s.value)&&on(b)||AP(s)&&s.value===""||b===""||Array.isArray(b)&&!b.length,T=r_e.bind(null,m,r,E),A=(R,I,F,N=il.maxLength,B=il.minLength)=>{const M=R?I:F;E[m]={type:R?N:B,message:M,ref:s,...T(R?N:B,M)}};if(o?!Array.isArray(b)||!b.length:l&&(!k&&(C||ki(b))||Ms(b)&&!b||_&&!i_e(a).isValid||S&&!o_e(a).isValid)){const{value:R,message:I}=Ti(l)?{value:!!l,message:l}:nv(l);if(R&&(E[m]={type:il.required,message:I,ref:w,...T(il.required,I)},!r))return x(I),E}if(!C&&(!ki(d)||!ki(f))){let R,I;const F=nv(f),N=nv(d);if(!ki(b)&&!$f(b)&&!isNaN(b)){const B=s.valueAsNumber||b&&+b;ki(F.value)||(R=B>F.value),ki(N.value)||(I=B<N.value)}else{const B=s.valueAsDate||new Date(b),M=G=>new Date(new Date().toDateString()+" "+G),L=s.type=="time",P=s.type=="week";Ti(F.value)&&b&&(R=L?M(b)>M(F.value):P?b>F.value:B>new Date(F.value)),Ti(N.value)&&b&&(I=L?M(b)<M(N.value):P?b<N.value:B<new Date(N.value))}if((R||I)&&(A(!!R,F.message,N.message,il.max,il.min),!r))return x(E[m].message),E}if((c||u)&&!C&&(Ti(b)||o&&Array.isArray(b))){const R=nv(c),I=nv(u),F=!ki(R.value)&&b.length>+R.value,N=!ki(I.value)&&b.length<+I.value;if((F||N)&&(A(F,R.message,I.message),!r))return x(E[m].message),E}if(h&&!C&&Ti(b)){const{value:R,message:I}=nv(h);if(OP(R)&&!b.match(R)&&(E[m]={type:il.pattern,message:I,ref:s,...T(il.pattern,I)},!r))return x(I),E}if(p){if(go(p)){const R=await p(b,n),I=Xne(R,w);if(I&&(E[m]={...I,...T(il.validate,I.message)},!r))return x(I.message),E}else if(Ir(p)){let R={};for(const I in p){if(!zi(R)&&!r)break;const F=Xne(await p[I](b,n),w,I);F&&(R={...F,...T(I,F.message)},x(F.message),r&&(E[m]=R))}if(!zi(R)&&(E[m]={ref:w,...R},!r))return E}}const O=E[m];return x(O?O.message:!0),E},zT=e=>Array.isArray(e)?e:[e],s_e=e=>Array.isArray(e)?e.filter(Boolean):[];function B_t(e,t){const n=t.length-1;let r=0;for(;r<n;){if(ki(e)){e=void 0;break}e=e[t[r]],r++}return e}function j_t(e){for(const t in e)if(e.hasOwnProperty(t)&&!on(e[t]))return!1;return!0}function Nr(e,t){if(Ti(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:Xm(t)?[t]:Ym(t);if(n.some(s=>h9.includes(String(s))))return e;const r=n.length===1?e:B_t(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Ir(r)&&zi(r)||Array.isArray(r)&&j_t(r))&&Nr(e,n.slice(0,-1)),e}const z_t=$.createContext(null);z_t.displayName="HookFormContext";var Qne=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}};function a_e(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],o=t[r];if(i&&Ir(i)&&o){const s=a_e(i,o);Ir(s)&&(n[r]=s)}else e[r]&&(n[r]=o)}return n}const Jne=(e,t)=>e!==null&&f9(e)&&Object.prototype.hasOwnProperty.call(e,t);var U_t=(e,t)=>{if(!t)return!1;let n=e;for(const r of Xm(t)?[t]:Ym(t)){if(!Jne(n,r))return Jne(e,t);n=n[r]}return!0},l_e=e=>e.type==="select-multiple",V_t=e=>v9(e)||i_(e),d$=e=>AP(e)&&e.isConnected;function ere(e){return Array.isArray(e)||Ir(e)}function c_e(e,t,n="",r=[]){for(const i in e){const o=n?`${n}.${i}`:i,s=e[i];ere(s)&&ere(ke(t,o))?c_e(s,t,o,r):r.push(o)}return r}var W_t=e=>{for(const t in e)if(go(e[t]))return!0;return!1};function u_e(e){return Array.isArray(e)||Ir(e)&&!W_t(e)}
1015function d_e(e){return!!(e&&"_f"in e)}function f_e(e){return Array.isArray(e)?!e.some(t=>!on(t)):!Object.keys(e).length}function jz(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function zz(e,t={},n){for(const r in e){const i=e[r],o=n&&n[r];u_e(i)&&(!Array.isArray(i)||!d_e(o))?(t[r]=Array.isArray(i)?[]:{},zz(i,t[r],o),f_e(t[r])&&jz(t,r)):on(i)||(t[r]=!0)}return t}function Op(e,t,n,r){n||(n=zz(t,{},r));for(const i in e){const o=e[i],s=r&&r[i];u_e(o)&&(!Array.isArray(o)||!d_e(s))?(on(t)||Fz(n[i])?n[i]=zz(o,Array.isArray(o)?[]:{},s):Op(o,ki(t)?{}:t[i],n[i],s),f_e(n[i])&&jz(n,i)):is(o,t[i])?jz(n,i):n[i]=!0}return n}var H_t=(e,t)=>{const n=t.split("."),r=[];let i=n[0];for(let o=1;o<n.length;i+="."+n[o++])!isNaN(+n[o])&&e.has(i)&&r.push(`${i}.${n[o]}`);return r},h_e=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>on(e)?e:t?e===""?NaN:e&&+e:n&&Ti(e)?new Date(e):r?r(e):e;function tre(e){const t=e.ref;return TN(t)?t.files:v9(t)?o_e(e.refs).value:l_e(t)?[...t.selectedOptions].map(({value:n})=>n):i_(t)?i_e(e.refs).value:h_e(t.value,e)}var K_t=(e,t,n,r)=>{const i={};for(const o of e){const s=ke(t,o);s&&tn(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},bw=e=>on(e)?e:OP(e)?e.source:Ir(e)?OP(e.value)?e.value.source:e.value:e;const nre="AsyncFunction";var q_t=e=>{if(!e||!e.validate)return!1;if(go(e.validate))return e.validate.constructor.name===nre;if(Ir(e.validate)){for(const t in e.validate)if(e.validate[t].constructor.name===nre)return!0}return!1},G_t=e=>e.mount&&(e.required||!on(e.required)&&e.required!==!1||!on(e.min)||!on(e.max)||!on(e.maxLength)||!on(e.minLength)||e.pattern||e.validate);function rre(e,t,n){const r=ke(e,n);if(r||Xm(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=ke(t,o),a=ke(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};i.pop()}return{name:n}}var Y_t=(e,t,n,r)=>{n(e);const i=Object.keys(e).filter(o=>o!=="name");return!i.length||r&&i.length>=Object.keys(t).length||i.find(o=>t[o]===(!r||bl.all))},X_t=(e,t,n)=>!e||!t||e===t||zT(e).some(r=>r&&(n?r===t||r.startsWith(t+"."):r.startsWith(t)||t.startsWith(r))),Z_t=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Q_t=(e,t)=>{const n=ke(e,t);!s_e(n).length&&!(n!=null&&n.root)&&Nr(e,t)};const J_t={mode:bl.onSubmit,reValidateMode:bl.onChange,shouldFocusError:!0},f$="form",ekt=(e,t)=>{for(const n in e)n in t||delete e[n];Object.assign(e,t)},p_e={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function tkt(e={}){let t={...J_t,...e},n={...In(p_e),isLoading:go(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=Ir(t.defaultValues)||Ir(t.values)?In(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:In(i),s={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const l={},c={};let u=0,d=sC(t.mode),f=sC(t.reValidateMode);const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...h};let m={...p};const g={array:Qne(),state:Qne()};let v=0;const b=t.criteriaMode===bl.all,w=(U,j)=>V=>{clearTimeout(c[U]),c[U]=setTimeout(j,V)},x=async U=>{if(!s.keepIsValid&&!t.disabled&&(p.isValid||m.isValid||U)){const j=++v;let V;t.resolver?(V=zi((await F()).errors),j===v&&E()):V=await M({fields:r,onlyCheckValid:!0,eventType:af.VALID}),j===v&&V!==n.isValid&&g.state.next({isValid:V})}},E=(U,j)=>{!t.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((U||a.mount).forEach(V=>{V&&(j?tn(n.validatingFields,V,j):Nr(n.validatingFields,V))}),g.state.next({validatingFields:n.validatingFields,isValidating:!zi(n.validatingFields)}))},S=()=>{n.dirtyFields=Op(i,o,void 0,r)},_=(U,j=[],V,Y,ne=!0,ie=!0)=>{if(Y&&V&&!t.disabled){s.action=!0;const ge=ke(r,U);if(s.actionArrayLengths.has(U)||s.actionArrayLengths.set(U,Array.isArray(ge)?ge.length:0),ie&&Array.isArray(ge)){const Ne=V(ge,Y.argA,Y.argB);ne&&tn(r,U,Ne)}const be=ke(n.errors,U);if(ie&&Array.isArray(be)){const Ne=be.root,yt=V(be,Y.argA,Y.argB)||be;Ne&&(yt.root=Ne),ne&&tn(n.errors,U,yt),Q_t(n.errors,U)}const ze=ke(n.touchedFields,U);if((p.touchedFields||m.touchedFields)&&ie&&Array.isArray(ze)){const Ne=V(ze,Y.argA,Y.argB);ne&&tn(n.touchedFields,U,Ne)}(p.dirtyFields||m.dirtyFields)&&S(),g.state.next({name:U,isDirty:P(U,j),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else tn(o,U,j)},k=(U,j)=>{tn(n.errors,U,j),n.errors={...n.errors},g.state.next({errors:n.errors})},C=U=>
vendor: 13,708 bytes, line 1015
1015{n.errors=U,g.state.next({errors:n.errors,isValid:!1})},T=U=>{const j=Xm(U)?[U]:Ym(U);let V=o,Y=i;for(let ne=0;ne<j.length-1;ne++){const ie=j[ne];if(V=ki(V)?V:V[ie],Y=ki(Y)?Y:Y[ie],V===null&&Y!==null)return!0}return!1},A=U=>{if(!s.actionArrayLengths.size)return!1;const j=Xm(U)?[U]:Ym(U);let V=o,Y="",ne=-1,ie=0;for(let ge=0;ge<j.length;ge++){if(ki(V))return!1;const be=j[ge];if(Y=Y?`${Y}.${be}`:be,Array.isArray(V)&&+be>=V.length)return ne===-1?!1:ge===ne?+be<ie:!0;s.actionArrayLengths.has(Y)&&(ne=ge+1,ie=s.actionArrayLengths.get(Y)),V=V[be]}return!1},O=(U,j,V,Y)=>{const ne=ke(r,U);if(ne){if(T(U)||A(U))return;const ie=on(ke(o,U)),ge=ke(o,U,on(V)?ke(i,U):V);on(ge)||Y&&Y.defaultChecked||j?tn(o,U,j?ge:tre(ne._f)):z(U,ge),s.mount&&!s.action&&(x(),ie&&n.isDirty&&(p.isDirty||m.isDirty)&&(P()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&ie&&!on(ke(o,U))&&u$(U,a)&&(s.watch=!0))}},R=(U,j,V,Y,ne)=>{let ie=!1,ge=!1;const be={name:U};if(!t.disabled||Y===!0){if(!V||Y){const ze=is(ke(i,U),j);(p.isDirty||m.isDirty)&&(ge=n.isDirty,n.isDirty=be.isDirty=!ze||P(),ie=ge!==be.isDirty),ge=!!ke(n.dirtyFields,U),ze!==n.isDirty?ekt(n.dirtyFields,Op(i,o,void 0,r)):ze?Nr(n.dirtyFields,U):tn(n.dirtyFields,U,!0),be.dirtyFields=n.dirtyFields,ie=ie||(p.dirtyFields||m.dirtyFields)&&ge!==!ze}if(V){const ze=ke(n.touchedFields,U);ze||(tn(n.touchedFields,U,V),be.touchedFields=n.touchedFields,ie=ie||(p.touchedFields||m.touchedFields)&&ze!==V)}ie&&ne&&g.state.next(be)}return ie?be:{}},I=(U,j,V,Y)=>{const ne=ke(n.errors,U),ie=(p.isValid||m.isValid)&&Ms(j)&&n.isValid!==j;if(t.delayError&&V?(l[U]=w(U,()=>k(U,V)),l[U](t.delayError)):(clearTimeout(c[U]),delete l[U],V?tn(n.errors,U,V):Nr(n.errors,U),n.errors={...n.errors}),(V?!is(ne,V):ne)||!zi(Y)||ie){const ge={...Y,...ie&&Ms(j)?{isValid:j}:{},errors:n.errors,name:U};g.state.next(ge)}},F=async U=>(E(U,!0),await t.resolver(o,t.context,K_t(U||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),N=async U=>{const{errors:j}=await F(U);if(E(U),U){for(const V of U){const Y=ke(j,V);Y?a.array.has(V)&&Ir(Y)&&!Object.keys(Y).some(ne=>!Number.isNaN(Number(ne)))?Kne(n.errors,{[V]:Y},V):tn(n.errors,V,Y):Nr(n.errors,V)}n.errors={...n.errors}}else n.errors=j;return j},B=async({name:U,eventType:j})=>{if(e.validate){const V=await e.validate({formValues:o,formState:n,name:U,eventType:j});if(Ir(V))for(const Y in V){const ne=V[Y];ne&&tt(`${f$}.${Y}`,{message:Ti(ne.message)?ne.message:"",type:ne.type||il.validate})}else Ti(V)||!V?tt(f$,{message:V||"",type:il.validate}):Me(f$);return V}return!0},M=async({fields:U,onlyCheckValid:j,name:V,eventType:Y,context:ne={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(ne.runRootValidation=!0,!await B({name:V,eventType:Y})&&(ne.valid=!1,j)))return ne.valid;for(const ie in U){const ge=U[ie];if(ge){const{_f:be,...ze}=ge;if(be){const Ne=a.array.has(be.name),yt=ge._f&&q_t(ge._f),Jt=p.validatingFields||p.isValidating||m.validatingFields||m.isValidating;yt&&Jt&&E([be.name],!0);const jn=await Zne(ge,a.disabled,o,b,t.shouldUseNativeValidation&&!j,Ne);if(yt&&Jt&&E([be.name]),jn[be.name]&&(ne.valid=!1,j)||(!j&&(ke(jn,be.name)?Ne?Kne(n.errors,jn,be.name):tn(n.errors,be.name,jn[be.name]):Nr(n.errors,be.name)),e.shouldUseNativeValidation&&jn[be.name]))break}!zi(ze)&&await M({context:ne,onlyCheckValid:j,fields:ze,name:ie,eventType:Y})}}return ne.valid},L=()=>{for(const U of a.unMount){const j=ke(r,U);j&&(j._f.refs?j._f.refs.every(V=>!d$(V)):!d$(j._f.ref))&&hn(U)}a.unMount=new Set},P=(U,j)=>(U&&j&&tn(o,U,j),!is(s.mount?o:i,i)),G=(U,j,V)=>Bz(U,a,{...s.mount?o:on(j)||Ti(U)?i:j},V,j),Z=U=>s_e(ke(s.mount?o:i,U,t.shouldUnregister?ke(i,U,[]):[])),z=(U,j,V={},Y=!1,ne=!1,ie=!1)=>{const ge=ke(r,U);let be=j;if(ge){const ze=ge._f;ze&&(!ze.disabled&&tn(o,U,h_e(j,ze)),be=AP(ze.ref)&&ki(j)?"":j,l_e(ze.ref)?[...ze.ref.options].forEach(Ne=>Ne.selected=be.includes(Ne.value)):ze.refs?i_(ze.ref)?ze.refs.forEach(Ne=>{(!Ne.defaultChecked||!Ne.disabled)&&(Array.isArray(be)?Ne.checked=!!be.find(yt=>yt===Ne.value):Ne.checked=be===Ne.value||!!be)}):ze.refs.forEach(Ne=>Ne.checked=Ne.value===be):TN(ze.ref)?ze.ref.value="":(ze.ref.value=be,!ze.ref.type&&!ne&&!ie&&g.state.next({name:U,values:Y?o:In(o)})))}(V.shouldDirty||V.shouldTouch)&&R(U,be,V.shouldTouch,V.shouldDirty,!ne),V.shouldValidate&&K(U,{delayError:V.delayError})},oe=(U,j,V,Y=!1,ne=!1,ie=!1)=>{a.array.has(U)&&g.array.next({name:U,values:Y?o:In(o)});for(const ge in j){if(!j.hasOwnProperty(ge))continue;const be=j[ge],ze=U+"."+ge,Ne=ke(r,ze);(a.array.has(U)||Ir(be)||Ne&&!Ne._f)&&!$f(be)?oe(ze,be,V,Y,ne,ie):z(ze,be,V,Y,ne,ie)}},le=(U,j,V,Y,ne=!1)=>{const ie=ke(r,U),ge=a.array.has(U),be=Y?j:In(j),ze=ke(o,U),Ne=is(ze,be);if(Ne||tn(o,U,be),ge)g.array.next({name:U,values:Y?o:In(o)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&V.shouldDirty&&(S(),ne||g.state.next({name:U,dirtyFields:n.dirtyFields,isDirty:P(U,be)}));else{const yt=Array.isArray(be)&&!be.length||zi(be),Jt=!Ne&&!ne;!ie||ie._f||ki(be)||yt?z(U,be,V,Y,ne,Jt):oe(U,be,V,Y,ne,Jt)}if(!Ne&&!ne){const yt=u$(U,a),Jt=Y?o:In(o);if(g.state.next({...yt&&n,name:s.mount||yt?U:void 0,values:Jt}),!ge)for(const jn of H_t(a.array,U))g.state.next({name:jn,values:Jt})}},se=(U,j,V={})=>le(U,j,V,!1),ue=(U,j={})=>{const V=go(U)?U(o):U;if(!is(o,V)){o={...o,...V};for(const Y of a.mount)U_t(V,Y)&&le(Y,ke(V,Y),j,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:o}:{}}),j.shouldValidate&&x()}},ce=async U=>{s.mount=!0;const j=U.target;let V=j.name,Y=!0;const ne=ke(r,V),ie=ge=>{Y=Number.isNaN(ge)||$f(ge)&&isNaN(ge.getTime())||is(ge,ke(o,V,ge))};if(ne){let ge,be;const ze=j.type?tre(ne._f):$z(U),Ne=U.type===af.BLUR||U.type===af.FOCUS_OUT,yt=!G_t(ne._f)&&!e.validate&&!t.resolver&&!ke(n.errors,V)&&!ne._f.deps,Jt=yt||Z_t(Ne,ke(n.touchedFields,V),n.isSubmitted,f,d),jn=u$(V,a,Ne);if(tn(o,V,In(ze)),Ne){if(!j||!j.readOnly){ne._f.onBlur&&ne._f.onBlur(U);const Wr=l[V];Wr&&Wr(0)}}else ne._f.onChange&&ne._f.onChange(U);const zn=R(V,ze,Ne),Bi=!zi(zn)||jn;if(!Ne&&g.state.next({name:V,type:U.type,...u?{values:In(o)}:{}}),Jt)return(!yt||!n.isValid)&&(p.isValid||m.isValid)&&(t.mode==="onBlur"?Ne&&x():Ne||x()),Bi&&g.state.next({name:V,...jn?{}:zn});if(!t.resolver&&e.validate&&await B({name:V,eventType:U.type}),!Ne&&jn&&g.state.next({...n}),t.resolver){const{errors:Wr}=await F([V]);if(E([V]),ie(ze),!Y){!zi(zn)&&g.state.next(zn);return}const As=rre(n.errors,r,V),Hr=rre(Wr,r,As.name||V);ge=Hr.error,V=Hr.name,be=zi(Wr)}else E([V],!0),ge=(await Zne(ne,a.disabled,o,b,t.shouldUseNativeValidation))[V],E([V]),ie(ze),Y&&(ge?be=!1:(p.isValid||m.isValid)&&(be=await M({fields:r,onlyCheckValid:!0,name:V,eventType:U.type})));Y&&(ne._f.deps&&(!Array.isArray(ne._f.deps)||ne._f.deps.length>0)&&K(ne._f.deps),I(V,be,ge,zn))}},Q=(U,j)=>{if(ke(n.errors,j)&&U.focus)return U.focus(),1},K=async(U,j={})=>{let V,Y;const ne=zT(U);if(t.resolver){const ie=await N(on(U)?U:ne);V=zi(ie),Y=U?!ne.some(ge=>ke(ie,ge)):V}else U?(Y=(await Promise.all(ne.map(async ie=>{const ge=ke(r,ie);return await M({fields:ge&&ge._f?{[ie]:ge}:ge,eventType:af.TRIGGER})}))).every(Boolean),!(!Y&&!n.isValid)&&x()):Y=V=await M({fields:r,name:U,eventType:af.TRIGGER});if(j.delayError&&t.delayError&&Ti(U)){const ie=ke(n.errors,U);ie?(Nr(n.errors,U),l[U]=w(U,()=>k(U,ie)),l[U](t.delayError)):(clearTimeout(c[U]),delete l[U])}if(j.shouldTouch)for(const ie of U?ne:a.mount)!a.array.has(ie)&&tn(n.touchedFields,ie,!0);return g.state.next({...!Ti(U)||(p.isValid||m.isValid)&&V!==n.isValid?{}:{name:U},...t.resolver||!U?{isValid:V}:{},...j.shouldTouch&&(p.touchedFields||m.touchedFields)?{touchedFields:n.touchedFields}:{},errors:n.errors}),j.shouldFocus&&!Y&&Kx(r,Q,U?ne:a.mount),Y},pe=(U,j)=>{let V={...s.mount?o:i};return j&&(V=a_e(j.dirtyFields?n.dirtyFields:n.touchedFields,V)),on(U)?V:Ti(U)?ke(V,U):U.map(Y=>ke(V,Y))},X=U=>on(U)?{...n.errors}:Ti(U)?ke(n.errors,U):U.map(j=>ke(n.errors,j)),Ze=(U,j)=>{const V=j||n,Y=ke(V.errors,U);return{invalid:!!Y,isDirty:!!ke(V.dirtyFields,U),error:Y,isValidating:!!ke(n.validatingFields,U),isTouched:!!ke(V.touchedFields,U)}},Me=U=>{const j=U?zT(U):void 0;j==null||j.forEach(V=>Nr(n.errors,V)),j?j.forEach(V=>{g.state.next({name:V,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},tt=(U,j,V)=>{const Y=(ke(r,U,{_f:{}})._f||{}).ref,ne=ke(n.errors,U)||{},{ref:ie,message:ge,type:be,...ze}=ne;tn(n.errors,U,{...ze,...j,ref:Y}),g.state.next({name:U,errors:n.errors,isValid:!1}),V&&V.shouldFocus&&Y&&Y.focus&&Y.focus()},Oe=(U,j)=>{if(go(U)){u++;const{unsubscribe:V}=g.state.subscribe({next:ne=>"values"in ne&&U(ne.values||G(void 0,j),ne)});let Y=!1;return{unsubscribe:()=>{Y||(Y=!0,u--,V())}}}return G(U,j,!0)},Pt=U=>{var j;const V=!!(!((j=U.formState)===null||j===void 0)&&j.values);V&&u++;const{unsubscribe:Y}=g.state.subscribe({next:ie=>{if(X_t(U.name,ie.name,U.exact)&&Y_t(ie,U.formState||p,Ae,U.reRenderRoot)){const ge={...o};U.callback({values:ge,...n,...ie,defaultValues:i})}}});if(!V)return Y;let ne=!1;return()=>{ne||(ne=!0,u--,Y())}},Le=U=>(s.mount=!0,m={...m,...U.formState},Pt({...U,formState:{...h,...U.formState}})),hn=(U,j={})=>{for(const V of U?zT(U):a.mount)a.mount.delete(V),a.array.delete(V),j.keepValue||(Nr(r,V),Nr(o,V)),!j.keepError&&Nr(n.errors,V),!j.keepDirty&&Nr(n.dirtyFields,V),!j.keepTouched&&Nr(n.touchedFields,V),!j.keepIsValidating&&Nr(n.validatingFields,V),!t.shouldUnregister&&!j.keepDefaultValue&&Nr(i,V);u&&g.state.next({values:In(o)}),g.state.next({...n,...j.keepDirty?{}:{isDirty:P()}}),!j.keepIsValid&&x()},vt=({disabled:U,name:j})=>{if(Ms(U)&&s.mount||U||a.disabled.has(j)){const ne=a.disabled.has(j)!==!!U;U?a.disabled.add(j):a.disabled.delete(j),ne&&s.mount&&!s.action&&x()}},at=(U,j={})=>{let V=ke(r,U);const Y=Ms(j.disabled)||Ms(t.disabled),ne=!a.registerName.has(U)&&V&&V._f&&!V._f.mount;return tn(r,U,{...V||{},_f:{...V&&V._f?V._f:{ref:{name:U}},name:U,mount:!0,...j}}),a.mount.add(U),V&&!ne?vt({disabled:Ms(j.disabled)?j.disabled:t.disabled,name:U}):O(U,!0,j.value),{...Y?{disabled:j.disabled||t.disabled}:{},...t.progressive?{required:!!j.required,min:bw(j.min),max:bw(j.max),minLength:bw(j.minLength),maxLength:bw(j.maxLength),pattern:bw(j.pattern)}:{},name:U,onChange:ce,onBlur:ce,ref:ie=>{if(ie){a.registerName.add(U),at(U,j),a.registerName.delete(U),V=ke(r,U);const ge=on(ie.value)&&ie.querySelectorAll&&ie.querySelectorAll("input,select,textarea")[0]||ie,be=V_t(ge),ze=V._f.refs||[];if(be?ze.find(yt=>yt===ge):ge===V._f.ref)return;const Ne={...V._f};be?(Ne.refs=[...ze.filter(d$),ge,...Array.isArray(ke(i,U))?[{}]:[]],Ne.ref={type:ge.type,name:U}):(Ne.ref=ge,delete Ne.refs),tn(r,U,{_f:Ne}),O(U,!1,void 0,ge)}else V=ke(r,U,{}),V._f&&(V._f.mount=!1),(t.shouldUnregister||j.shouldUnregister)&&!(JSe(a.array,U)&&s.action)&&a.unMount.add(U)}}},Jn=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Kx(r,Q,a.mount),Pn=U=>{Ms(U)&&(g.state.next({disabled:U}),Kx(r,(j,V)=>{const Y=ke(r,V);Y&&(j.disabled=Y._f.disabled||U,Array.isArray(Y._f.refs)&&Y._f.refs.forEach(ne=>{ne.disabled=Y._f.disabled||U}))},0,!1))},$i=(U,j)=>async V=>{let Y,ne;V&&(V.preventDefault&&V.preventDefault(),V.persist&&V.persist());let ie=In(o);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:ge,values:be}=await F();E(),n.errors=ge,ie=In(be)}else await M({fields:r,eventType:af.SUBMIT});if(a.disabled.size)for(const ge of a.disabled)Nr(ie,ge);if(Nr(n.errors,e_e),zi(n.errors)){g.state.next({errors:{}});try{Y=await U(ie,V)}catch(ge){ne=ge}}else j&&await j({...n.errors},V),Jn(),setTimeout(Jn);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zi(n.errors)&&!ne,submitCount:n.submitCount+1,errors:n.errors}),ne)throw ne;return Y},Jo=(U,j={})=>{ke(r,U)&&(on(j.defaultValue)?se(U,In(ke(i,U))):(se(U,j.defaultValue),tn(i,U,In(j.defaultValue))),j.keepTouched||Nr(n.touchedFields,U),j.keepDirty||(Nr(n.dirtyFields,U),n.isDirty=j.defaultValue?P(U,In(ke(i,U))):P()),j.keepError||(Nr(n.errors,U),x()),g.state.next({...n}))},H=(U,j={})=>{const V=U?In(U):i,Y=In(V),ne=zi(U),ie=Y,ge=r;if(j.keepDefaultValues||(i=V),!j.keepValues){if(j.keepDirtyValues){const be=new Set([...a.mount,...c_e(Op(i,o,void 0,ge),n.dirtyFields)]);for(const ze of be){const Ne=ke(n.dirtyFields,ze),yt=ke(o,ze),Jt=ke(ie,ze);Ne&&!on(yt)?tn(ie,ze,yt):!Ne&&!on(Jt)&&se(ze,Jt)}}else{if(AN&&on(U))for(const be of a.mount){const ze=ke(r,be);if(ze&&ze._f){const Ne=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(AP(Ne)){const yt=Ne.closest("form");if(yt){yt.reset();break}}}}if(j.keepFieldsRef)for(const be of a.mount)se(be,ke(ie,be));else r={}}if(t.shouldUnregister){if(o=j.keepDefaultValues?In(i):{},j.keepFieldsRef)for(const be of a.mount)tn(o,be,ke(ie,be))}else o=In(ie);g.array.next({values:{...ie}}),g.state.next({name:void 0,type:void 0,values:{...ie}})}a={mount:j.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!j.keepIsValid||!!j.keepDirtyValues||!t.shouldUnregister&&!zi(ie),s.watch=!!t.shouldUnregister,s.keepIsValid=!!j.keepIsValid,s.action=!1,s.actionArrayLengths.clear(),j.keepErrors||(n.errors={}),g.state.next({submitCount:j.keepSubmitCount?n.submitCount:0,isDirty:ne?!1:j.keepDirty?n.isDirty:j.keepValues?P():!!(j.keepDefaultValues&&!is(U,i)),isSubmitted:j.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ne?{}:j.keepDirtyValues?j.keepDefaultValues&&o?Op(i,o,void 0,ge):n.dirtyFields:j.keepDefaultValues&&U?Op(i,U,void 0,ge):j.keepDirty?n.dirtyFields:{},touchedFields:j.keepTouched?n.touchedFields:{},errors:j.keepErrors?n.errors:{},isSubmitSuccessful:j.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},J=(U,j)=>H(go(U)?U(o):U,{...t.resetOptions,...j}),me=(U,j={})=>{const V=ke(r,U),Y=V&&V._f;if(Y){const ne=Y.refs?Y.refs[0]:Y.ref;
1015ne.focus&&setTimeout(()=>{ne.focus(),j.shouldSelect&&go(ne.select)&&ne.select()})}},Ae=U=>{const{name:j,type:V,values:Y,...ne}=U;n={...n,...ne}};g.state.subscribe({next:Ae});const Fi={control:{register:at,unregister:hn,getFieldState:Ze,handleSubmit:$i,setError:tt,_subscribe:Pt,_runSchema:F,_updateIsValidating:E,_focusError:Jn,_getWatch:G,_getDirty:P,_setValid:x,_setFieldArray:_,_setDisabledField:vt,_setErrors:C,_getFieldArray:Z,_reset:H,_resetDefaultValues:()=>go(t.defaultValues)&&t.defaultValues().then(U=>{J(U,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:Pn,_subjects:g,_proxyFormState:p,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return i},get _names(){return a},set _names(U){a=U},get _formState(){return n},get _options(){return t},set _options(U){t={...t,...U},d=sC(t.mode),f=sC(t.reValidateMode)}},subscribe:Le,trigger:K,register:at,handleSubmit:$i,watch:Oe,setValue:se,setValues:ue,getValues:pe,getErrors:X,reset:J,resetField:Jo,resetDefaultValues:(U,j={})=>{if(i=In(U),!j.keepDirty){const V=Op(i,o,void 0,r);n.dirtyFields=V,n.isDirty=!zi(V)}j.keepIsValid||x(),g.state.next({...n,defaultValues:i})},clearErrors:Me,unregister:hn,setError:tt,setFocus:me,getFieldState:Ze};return{...Fi,formControl:Fi}}function prn(e={}){const t=$.useRef(void 0),n=$.useRef(void 0),r=$.useRef(e.formControl),[i,o]=$.useState(()=>({...In(p_e),isLoading:go(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:go(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!go(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...u}=tkt(e);t.current={...u,formState:i}}const s=t.current.control;s._options=e;const{resyncIfNeeded:a,snapshot:l}=g9();return m9(()=>{const c=()=>({...s._formState,defaultValues:s._defaultValues});a(!0,c,o);const u=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState,defaultValues:s._defaultValues}),reRenderRoot:!0});return o(d=>({...d,isReady:!0})),s._formState.isReady=!0,()=>{u(),l(!0,c)}},[s,a,l]),$.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),$.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),$.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),$.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),$.useEffect(()=>{if(s._proxyFormState.isDirty){const c=s._getDirty();c!==i.isDirty&&s._subjects.state.next({isDirty:c})}},[s,i.isDirty]),$.useEffect(()=>{var c;e.values&&!is(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((c=s._options.resetOptions)===null||c===void 0)&&c.keepIsValid||s._setValid(),n.current=e.values,o(u=>({...u}))):s._resetDefaultValues()},[s,e.values]),$.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=$.useMemo(()=>n_e(i,s),[s,i]),t.current}const ire=(e,t,n)=>{if(e&&"reportValidity"in e){const r=ke(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},m_e=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?ire(r.ref,n,e):r.refs&&r.refs.forEach(i=>ire(i,n,e))}},nkt=(e,t)=>{t.shouldUseNativeValidation&&m_e(e,t);const n={};for(const r in e){const i=ke(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(rkt(t.names||Object.keys(e),r)){const s=Object.assign({},ke(n,r));tn(s,"root",o),tn(n,r,s)}else tn(n,r,o)}return n},rkt=(e,t)=>e.some(n=>n.startsWith(t+"."));var ikt=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,o=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[s]={message:a.message,type:a.code}}else n[s]={message:o,type:i};
vendor: 55,731 bytes, line 1015
1015if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[s].types,c=l&&l[r.code];n[s]=r_e(s,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},mrn=function(e,t,n){return n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(s,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return o.shouldUseNativeValidation&&m_e({},o),{errors:{},values:n.raw?r:c}})}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,function(s){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(s))return{values:{},errors:nkt(ikt(s.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw s}))}catch(s){return Promise.reject(s)}}},Xt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),s={};for(const a of o)s[a]=i[a];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(Xt||(Xt={}));var ore;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ore||(ore={}));const Xe=Xt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),lf=e=>{switch(typeof e){case"undefined":return Xe.undefined;case"string":return Xe.string;case"number":return Number.isNaN(e)?Xe.nan:Xe.number;case"boolean":return Xe.boolean;case"function":return Xe.function;case"bigint":return Xe.bigint;case"symbol":return Xe.symbol;case"object":return Array.isArray(e)?Xe.array:e===null?Xe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Xe.promise:typeof Map<"u"&&e instanceof Map?Xe.map:typeof Set<"u"&&e instanceof Set?Xe.set:typeof Date<"u"&&e instanceof Date?Xe.date:Xe.object;default:return Xe.unknown}},Se=Xt.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 Ed 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(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const c=s.path[l];l===s.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(s))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof Ed))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Xt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ed.create=e=>new Ed(e);const Uz=(e,t)=>{let n;switch(e.code){case Se.invalid_type:e.received===Xe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Se.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Xt.jsonStringifyReplacer)}`;break;case Se.unrecognized_keys:n=`Unrecognized key(s) in object: ${Xt.joinValues(e.keys,", ")}`;break;case Se.invalid_union:n="Invalid input";break;case Se.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Xt.joinValues(e.options)}`;break;case Se.invalid_enum_value:n=`Invalid enum value. Expected ${Xt.joinValues(e.options)}, received '${e.received}'`;break;case Se.invalid_arguments:n="Invalid function arguments";break;case Se.invalid_return_type:n="Invalid function return type";break;case Se.invalid_date:n="Invalid date";break;case Se.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}"`:Xt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Se.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==="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 Se.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 Se.custom:n="Invalid input";break;case Se.invalid_intersection_types:n="Intersection results could not be merged";break;case Se.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Se.not_finite:n="Number must be finite";break;default:n=t.defaultError,Xt.assertNever(e)}return{message:n}};let okt=Uz;function skt(){return okt}const akt=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...i,path:o,message:a}};function De(e,t){const n=skt(),r=akt({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Uz?void 0:Uz].filter(i=>!!i)});e.common.issues.push(r)}class na{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 i of n){if(i.status==="aborted")return kt;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return na.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return kt;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const kt=Object.freeze({status:"aborted"}),ax=e=>({status:"dirty",value:e}),Ya=e=>({status:"valid",value:e}),sre=e=>e.status==="aborted",are=e=>e.status==="dirty",fb=e=>e.status==="valid",PP=e=>typeof Promise<"u"&&e instanceof Promise;var Je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Je||(Je={}));var IP=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},g_e=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},lx,cx;class Sh{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}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 lre=(e,t)=>{if(fb(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 Ed(e.common.issues);return this._error=n,this._error}}};function Dt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=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:i}:{errorMap:(s,a)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:i}}class Yt{get description(){return this._def.description}_getType(t){return lf(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:lf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new na,ctx:{common:t.parent.common,data:t.data,parsedType:lf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(PP(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==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:lf(t)},i=this._parseSync({data:t,path:r.path,parent:r});return lre(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:lf(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return fb(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>fb(o)?{value:o.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==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:lf(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(PP(i)?i:Promise.resolve(i));return lre(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),a=()=>o.addIssue({code:Se.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new pb({schema:this,typeName:wt.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 rh.create(this,this._def)}nullable(){return mb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Uc.create(this)}promise(){return DP.create(this,this._def)}or(t){return MP.create([this,t],this._def)}and(t){return NP.create(this,t,this._def)}transform(t){return new pb({...Dt(this._def),schema:this,typeName:wt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Hz({...Dt(this._def),innerType:this,defaultValue:n,typeName:wt.ZodDefault})}brand(){return new Pkt({typeName:wt.ZodBranded,type:this,...Dt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Kz({...Dt(this._def),innerType:this,catchValue:n,typeName:wt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return y9.create(this,t)}readonly(){return qz.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const lkt=/^c[^\s-]{8,}$/i,ckt=/^[0-9a-z]+$/,ukt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,dkt=/^[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,fkt=/^[a-z0-9_-]{21}$/i,hkt=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,pkt=/^[-+]?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)?)??$/,mkt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gkt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let h$;const vkt=/^(?:(?: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])$/,ykt=/^(?:(?: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])$/,bkt=/^(([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]))$/,wkt=/^(([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])$/,xkt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ekt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,v_e="((\\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])))",Skt=new RegExp(`^${v_e}$`);function y_e(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 _kt(e){return new RegExp(`^${y_e(e)}$`)}function kkt(e){let t=`${v_e}T${y_e(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 Ckt(e,t){return!!((t==="v4"||!t)&&vkt.test(e)||(t==="v6"||!t)&&bkt.test(e))}function Tkt(e,t){if(!hkt.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Akt(e,t){return!!((t==="v4"||!t)&&ykt.test(e)||(t==="v6"||!t)&&wkt.test(e))}class Ff extends Yt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Xe.string){const o=this._getOrReturnCtx(t);return De(o,{code:Se.invalid_type,expected:Xe.string,received:o.parsedType}),kt}const r=new na;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),De(i,{code:Se.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),De(i,{code:Se.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(i=this._getOrReturnCtx(t,i),s?De(i,{code:Se.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&De(i,{code:Se.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")mkt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"email",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")h$||(h$=new RegExp(gkt,"u")),h$.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"emoji",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")dkt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"uuid",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")fkt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"nanoid",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")lkt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"cuid",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")ckt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"cuid2",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")ukt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"ulid",code:Se.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),De(i,{validation:"url",code:Se.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"regex",code:Se.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),De(i,{code:Se.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),De(i,{code:Se.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),De(i,{code:Se.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?kkt(o).test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{code:Se.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Skt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{code:Se.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?_kt(o).test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{code:Se.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?pkt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"duration",code:Se.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Ckt(t.data,o.version)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"ip",code:Se.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Tkt(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"jwt",code:Se.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?Akt(t.data,o.version)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"cidr",code:Se.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?xkt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"base64",code:Se.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Ekt.test(t.data)||(i=this._getOrReturnCtx(t,i),De(i,{validation:"base64url",code:Se.invalid_string,message:o.message}),r.dirty()):Xt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Se.invalid_string,...Je.errToObj(r)})}_addCheck(t){return new Ff({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Je.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Je.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Je.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Je.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Je.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Je.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Je.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Je.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Je.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Je.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Je.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Je.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Je.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==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Je.errToObj(t==null?void 0: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==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Je.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Je.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Je.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Je.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Je.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Je.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Je.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Je.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Je.errToObj(n)})}nonempty(t){return this.min(1,Je.errToObj(t))}trim(){return new Ff({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ff({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ff({...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}}Ff.create=e=>new Ff({checks:[],typeName:wt.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Dt(e)});function Okt(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return o%s/10**i}class y1 extends Yt{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)!==Xe.number){const o=this._getOrReturnCtx(t);return De(o,{code:Se.invalid_type,expected:Xe.number,received:o.parsedType}),kt}let r;const i=new na;for(const o of this._def.checks)o.kind==="int"?Xt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),De(r,{code:Se.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),De(r,{code:Se.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),De(r,{code:Se.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?Okt(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),De(r,{code:Se.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),De(r,{code:Se.not_finite,message:o.message}),i.dirty()):Xt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Je.toString(n))}setLimit(t,n,r,i){return new y1({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Je.toString(i)}]})}_addCheck(t){return new y1({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Je.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Je.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"&&Xt.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)}}y1.create=e=>new y1({checks:[],typeName:wt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Dt(e)});class b1 extends Yt{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)!==Xe.bigint)return this._getInvalidInput(t);let r;const i=new na;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),De(r,{code:Se.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),De(r,{code:Se.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),De(r,{code:Se.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):Xt.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return De(n,{code:Se.invalid_type,expected:Xe.bigint,received:n.parsedType}),kt}gte(t,n){return this.setLimit("min",t,!0,Je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Je.toString(n))}setLimit(t,n,r,i){return new b1({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Je.toString(i)}]})}_addCheck(t){return new b1({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Je.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}}b1.create=e=>new b1({checks:[],typeName:wt.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Dt(e)});class cre extends Yt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Xe.boolean){const r=this._getOrReturnCtx(t);return De(r,{code:Se.invalid_type,expected:Xe.boolean,received:r.parsedType}),kt}return Ya(t.data)}}cre.create=e=>new cre({typeName:wt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Dt(e)});class RP extends Yt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Xe.date){const o=this._getOrReturnCtx(t);return De(o,{code:Se.invalid_type,expected:Xe.date,received:o.parsedType}),kt}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return De(o,{code:Se.invalid_date}),kt}const r=new na;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),De(i,{code:Se.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),De(i,{code:Se.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Xt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new RP({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Je.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Je.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}}RP.create=e=>new RP({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:wt.ZodDate,...Dt(e)});class ure extends Yt{_parse(t){if(this._getType(t)!==Xe.symbol){const r=this._getOrReturnCtx(t);return De(r,{code:Se.invalid_type,expected:Xe.symbol,received:r.parsedType}),kt}return Ya(t.data)}}ure.create=e=>new ure({typeName:wt.ZodSymbol,...Dt(e)});class dre extends Yt{_parse(t){if(this._getType(t)!==Xe.undefined){const r=this._getOrReturnCtx(t);return De(r,{code:Se.invalid_type,expected:Xe.undefined,received:r.parsedType}),kt}return Ya(t.data)}}dre.create=e=>new dre({typeName:wt.ZodUndefined,...Dt(e)});class fre extends Yt{_parse(t){if(this._getType(t)!==Xe.null){const r=this._getOrReturnCtx(t);return De(r,{code:Se.invalid_type,expected:Xe.null,received:r.parsedType}),kt}return Ya(t.data)}}fre.create=e=>new fre({typeName:wt.ZodNull,...Dt(e)});class hre extends Yt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ya(t.data)}}hre.create=e=>new hre({typeName:wt.ZodAny,...Dt(e)});class pre extends Yt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ya(t.data)}}pre.create=e=>new pre({typeName:wt.ZodUnknown,...Dt(e)});class _h extends Yt{_parse(t){const n=this._getOrReturnCtx(t);return De(n,{code:Se.invalid_type,expected:Xe.never,received:n.parsedType}),kt}}_h.create=e=>new _h({typeName:wt.ZodNever,...Dt(e)});class mre extends Yt{_parse(t){if(this._getType(t)!==Xe.undefined){const r=this._getOrReturnCtx(t);return De(r,{code:Se.invalid_type,expected:Xe.void,received:r.parsedType}),kt}return Ya(t.data)}}mre.create=e=>new mre({typeName:wt.ZodVoid,...Dt(e)});class Uc extends Yt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Xe.array)return De(n,{code:Se.invalid_type,expected:Xe.array,received:n.parsedType}),kt;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(s||a)&&(De(n,{code:s?Se.too_big:Se.too_small,minimum:a?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(De(n,{code:Se.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(De(n,{code:Se.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>i.type._parseAsync(new Sh(n,s,n.path,a)))).then(s=>na.mergeArray(r,s));const o=[...n.data].map((s,a)=>i.type._parseSync(new Sh(n,s,n.path,a)));return na.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Uc({...this._def,minLength:{value:t,message:Je.toString(n)}})}max(t,n){return new Uc({...this._def,maxLength:{value:t,message:Je.toString(n)}})}length(t,n){return new Uc({...this._def,exactLength:{value:t,message:Je.toString(n)}})}nonempty(t){return this.min(1,t)}}Uc.create=(e,t)=>new Uc({type:e,minLength:null,maxLength:null,exactLength:null,typeName:wt.ZodArray,...Dt(t)});function pv(e){if(e instanceof Xr){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=rh.create(pv(r))}return new Xr({...e._def,shape:()=>t})}else return e instanceof Uc?new Uc({...e._def,type:pv(e.element)}):e instanceof rh?rh.create(pv(e.unwrap())):e instanceof mb?mb.create(pv(e.unwrap())):e instanceof Zm?Zm.create(e.items.map(t=>pv(t))):e}class Xr extends Yt{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=Xt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Xe.object){const c=this._getOrReturnCtx(t);return De(c,{code:Se.invalid_type,expected:Xe.object,received:c.parsedType}),kt}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof _h&&this._def.unknownKeys==="strip"))for(const c in i.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=o[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Sh(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof _h){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")a.length>0&&(De(i,{code:Se.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Sh(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>na.mergeObjectSync(r,c)):na.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Je.errToObj,new Xr({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s;const i=((s=(o=this._def).errorMap)==null?void 0:s.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Je.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Xr({...this._def,unknownKeys:"strip"})}passthrough(){return new Xr({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xr({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xr({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:wt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xr({...this._def,catchall:t})}pick(t){const n={};for(const r of Xt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Xr({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Xt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Xr({...this._def,shape:()=>n})}deepPartial(){return pv(this)}partial(t){const n={};for(const r of Xt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Xr({...this._def,shape:()=>n})}required(t){const n={};for(const r of Xt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof rh;)o=o._def.innerType;n[r]=o}return new Xr({...this._def,shape:()=>n})}keyof(){return b_e(Xt.objectKeys(this.shape))}}Xr.create=(e,t)=>new Xr({shape:()=>e,unknownKeys:"strip",catchall:_h.create(),typeName:wt.ZodObject,...Dt(t)});Xr.strictCreate=(e,t)=>new Xr({shape:()=>e,unknownKeys:"strict",catchall:_h.create(),typeName:wt.ZodObject,...Dt(t)});Xr.lazycreate=(e,t)=>new Xr({shape:e,unknownKeys:"strip",catchall:_h.create(),typeName:wt.ZodObject,...Dt(t)});class MP extends Yt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(a=>new Ed(a.ctx.common.issues));return De(n,{code:Se.invalid_union,unionErrors:s}),kt}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(l=>new Ed(l));return De(n,{code:Se.invalid_union,unionErrors:a}),kt}}get options(){return this._def.options}}MP.create=(e,t)=>new MP({options:e,typeName:wt.ZodUnion,...Dt(t)});function Vz(e,t){const n=lf(e),r=lf(t);if(e===t)return{valid:!0,data:e};if(n===Xe.object&&r===Xe.object){const i=Xt.objectKeys(t),o=Xt.objectKeys(e).filter(a=>i.indexOf(a)!==-1),s={...e,...t};for(const a of o){const l=Vz(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===Xe.array&&r===Xe.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],a=t[o],l=Vz(s,a);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Xe.date&&r===Xe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class NP extends Yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(sre(o)||sre(s))return kt;const a=Vz(o.value,s.value);return a.valid?((are(o)||are(s))&&n.dirty(),{status:n.value,value:a.data}):(De(r,{code:Se.invalid_intersection_types}),kt)};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(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}NP.create=(e,t,n)=>new NP({left:e,right:t,typeName:wt.ZodIntersection,...Dt(n)});class Zm extends Yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Xe.array)return De(r,{code:Se.invalid_type,expected:Xe.array,received:r.parsedType}),kt;if(r.data.length<this._def.items.length)return De(r,{code:Se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),kt;!this._def.rest&&r.data.length>this._def.items.length&&(De(r,{code:Se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Sh(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>na.mergeArray(n,s)):na.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Zm({...this._def,rest:t})}}Zm.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zm({items:e,typeName:wt.ZodTuple,rest:null,...Dt(t)})};class gre extends Yt{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!==Xe.map)return De(r,{code:Se.invalid_type,expected:Xe.map,received:r.parsedType}),kt;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([a,l],c)=>({key:i._parse(new Sh(r,a,r.path,[c,"key"])),value:o._parse(new Sh(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return kt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return kt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}gre.create=(e,t,n)=>new gre({valueType:t,keyType:e,typeName:wt.ZodMap,...Dt(n)});class w1 extends Yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Xe.set)return De(r,{code:Se.invalid_type,expected:Xe.set,received:r.parsedType}),kt;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(De(r,{code:Se.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(De(r,{code:Se.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return kt;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new Sh(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new w1({...this._def,minSize:{value:t,message:Je.toString(n)}})}max(t,n){return new w1({...this._def,maxSize:{value:t,message:Je.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}w1.create=(e,t)=>new w1({valueType:e,minSize:null,maxSize:null,typeName:wt.ZodSet,...Dt(t)});class vre extends Yt{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})}}vre.create=(e,t)=>new vre({getter:e,typeName:wt.ZodLazy,...Dt(t)});class Wz extends Yt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return De(n,{received:n.data,code:Se.invalid_literal,expected:this._def.value}),kt}return{status:"valid",value:t.data}}get value(){return this._def.value}}Wz.create=(e,t)=>new Wz({value:e,typeName:wt.ZodLiteral,...Dt(t)});function b_e(e,t){return new hb({values:e,typeName:wt.ZodEnum,...Dt(t)})}class hb extends Yt{constructor(){super(...arguments),lx.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return De(n,{expected:Xt.joinValues(r),received:n.parsedType,code:Se.invalid_type}),kt}if(IP(this,lx,"f")||g_e(this,lx,new Set(this._def.values),"f"),!IP(this,lx,"f").has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return De(n,{received:n.data,code:Se.invalid_enum_value,options:r}),kt}return Ya(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 hb.create(t,{...this._def,...n})}exclude(t,n=this._def){return hb.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}lx=new WeakMap;hb.create=b_e;class yre extends Yt{constructor(){super(...arguments),cx.set(this,void 0)}_parse(t){const n=Xt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Xe.string&&r.parsedType!==Xe.number){const i=Xt.objectValues(n);return De(r,{expected:Xt.joinValues(i),received:r.parsedType,code:Se.invalid_type}),kt}if(IP(this,cx,"f")||g_e(this,cx,new Set(Xt.getValidEnumValues(this._def.values)),"f"),!IP(this,cx,"f").has(t.data)){const i=Xt.objectValues(n);return De(r,{received:r.data,code:Se.invalid_enum_value,options:i}),kt}return Ya(t.data)}get enum(){return this._def.values}}cx=new WeakMap;yre.create=(e,t)=>new yre({values:e,typeName:wt.ZodNativeEnum,...Dt(t)});class DP extends Yt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Xe.promise&&n.common.async===!1)return De(n,{code:Se.invalid_type,expected:Xe.promise,received:n.parsedType}),kt;const r=n.parsedType===Xe.promise?n.data:Promise.resolve(n.data);return Ya(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}DP.create=(e,t)=>new DP({type:e,typeName:wt.ZodPromise,...Dt(t)});class pb extends Yt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===wt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{De(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return kt;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?kt:l.status==="dirty"||n.value==="dirty"?ax(l.value):l});{if(n.value==="aborted")return kt;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?kt:a.status==="dirty"||n.value==="dirty"?ax(a.value):a}}if(i.type==="refinement"){const s=a=>{const l=i.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?kt:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?kt:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fb(s))return s;const a=i.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>fb(s)?Promise.resolve(i.transform(s.value,o)).then(a=>({status:n.value,value:a})):s);Xt.assertNever(i)}}pb.create=(e,t,n)=>new pb({schema:e,typeName:wt.ZodEffects,effect:t,...Dt(n)});pb.createWithPreprocess=(e,t,n)=>new pb({schema:t,effect:{type:"preprocess",transform:e},typeName:wt.ZodEffects,...Dt(n)});class rh extends Yt{_parse(t){return this._getType(t)===Xe.undefined?Ya(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}rh.create=(e,t)=>new rh({innerType:e,typeName:wt.ZodOptional,...Dt(t)});class mb extends Yt{_parse(t){return this._getType(t)===Xe.null?Ya(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}mb.create=(e,t)=>new mb({innerType:e,typeName:wt.ZodNullable,...Dt(t)});class Hz extends Yt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Xe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Hz.create=(e,t)=>new Hz({innerType:e,typeName:wt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Dt(t)});class Kz extends Yt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return PP(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ed(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ed(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Kz.create=(e,t)=>new Kz({innerType:e,typeName:wt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Dt(t)});class bre extends Yt{_parse(t){if(this._getType(t)!==Xe.nan){const r=this._getOrReturnCtx(t);return De(r,{code:Se.invalid_type,expected:Xe.nan,received:r.parsedType}),kt}return{status:"valid",value:t.data}}}bre.create=e=>new bre({typeName:wt.ZodNaN,...Dt(e)});class Pkt extends Yt{_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 y9 extends Yt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?kt:o.status==="dirty"?(n.dirty(),ax(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?kt:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new y9({in:t,out:n,typeName:wt.ZodPipeline})}}class qz extends Yt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(fb(i)&&(i.value=Object.freeze(i.value)),i);return PP(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}qz.create=(e,t)=>new qz({innerType:e,typeName:wt.ZodReadonly,...Dt(t)});var wt;(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"})(wt||(wt={}));const grn=Ff.create;_h.create;Uc.create;const vrn=Xr.create;MP.create;NP.create;Zm.create;const yrn=Wz.create,brn=hb.create;DP.create;rh.create;mb.create;var Ikt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rkt=Ikt.reduce((e,t)=>
1015{const n=FR(`Primitive.${t}`),r=y.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Mkt="Label",w_e=y.forwardRef((e,t)=>D.jsx(Rkt.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));w_e.displayName=Mkt;var wrn=w_e;function wre(e,[t,n]){return Math.min(n,Math.max(t,e))}function Nkt(e){const t=Dkt(e),n=y.forwardRef((r,i)=>{const{children:o,...s}=r,a=y.Children.toArray(o),l=a.find($kt);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function Dkt(e){const t=y.forwardRef((n,r)=>{const{children:i,...o}=n;if(y.isValidElement(i)){const s=Bkt(i),a=Fkt(o,i.props);return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lkt=Symbol("radix.slottable");function $kt(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lkt}function Fkt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Bkt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ON(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var jkt=[" ","Enter","ArrowUp","ArrowDown"],zkt=[" ","Enter"],Qm="Select",[PN,IN,Ukt]=rS(Qm),[g0]=Ri(Qm,[Ukt,Fh]),RN=Fh(),[Vkt,Kh]=g0(Qm),[Wkt,Hkt]=g0(Qm),x_e=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:h,form:p}=e,m=RN(t),[g,v]=y.useState(null),[b,w]=y.useState(null),[x,E]=y.useState(!1),S=Qb(c),[_,k]=Wo({prop:r,defaultProp:i??!1,onChange:o,caller:Qm}),[C,T]=Wo({prop:s,defaultProp:a,onChange:l,caller:Qm}),A=y.useRef(null),O=g?p||!!g.closest("form"):!0,[R,I]=y.useState(new Set),F=Array.from(R).map(N=>N.props.value).join(";");return D.jsx(GR,{...m,children:D.jsxs(Vkt,{required:h,scope:t,trigger:g,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:x,onValueNodeHasChildrenChange:E,contentId:ys(),value:C,onValueChange:T,open:_,onOpenChange:k,dir:S,triggerPointerDownPosRef:A,disabled:f,children:[D.jsx(PN.Provider,{scope:t,children:D.jsx(Wkt,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(N=>{I(B=>new Set(B).add(N))},[]),onNativeOptionRemove:y.useCallback(N=>{I(B=>{const M=new Set(B);return M.delete(N),M})},[]),children:n})}),O?D.jsxs(H_e,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:C,onChange:N=>T(N.target.value),disabled:f,form:p,children:[C===void 0?D.jsx("option",{value:""}):null,Array.from(R)]},F):null]})})};x_e.displayName=Qm;var E_e="SelectTrigger",S_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=RN(n),s=Kh(E_e,n),a=s.disabled||r,l=xt(t,s.onTriggerChange),c=IN(n),u=y.useRef("touch"),[d,f,h]=q_e(m=>{const g=c().filter(w=>!w.disabled),v=g.find(w=>w.value===s.value),b=G_e(g,m,v);b!==void 0&&s.onValueChange(b.value)}),p=m=>{a||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return D.jsx(yS,{asChild:!0,...o,children:D.jsx(Qe.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":K_e(s.value)?"":void 0,...i,ref:l,onClick:Ee(i.onClick,m=>
1015{m.currentTarget.focus(),u.current!=="mouse"&&p(m)}),onPointerDown:Ee(i.onPointerDown,m=>{u.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(p(m),m.preventDefault())}),onKeyDown:Ee(i.onKeyDown,m=>{const g=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(g&&m.key===" ")&&jkt.includes(m.key)&&(p(),m.preventDefault())})})})});S_e.displayName=E_e;var __e="SelectValue",k_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...a}=e,l=Kh(__e,n),{onValueNodeHasChildrenChange:c}=l,u=o!==void 0,d=xt(t,l.onValueNodeChange);return zr(()=>{c(u)},[c,u]),D.jsx(Qe.span,{...a,ref:d,style:{pointerEvents:"none"},children:K_e(l.value)?D.jsx(D.Fragment,{children:s}):o})});k_e.displayName=__e;var Kkt="SelectIcon",C_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return D.jsx(Qe.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});C_e.displayName=Kkt;var qkt="SelectPortal",T_e=e=>D.jsx(mg,{asChild:!0,...e});T_e.displayName=qkt;var Jm="SelectContent",A_e=y.forwardRef((e,t)=>{const n=Kh(Jm,e.__scopeSelect),[r,i]=y.useState();if(zr(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?pr.createPortal(D.jsx(O_e,{scope:e.__scopeSelect,children:D.jsx(PN.Slot,{scope:e.__scopeSelect,children:D.jsx("div",{children:e.children})})}),o):null}return D.jsx(P_e,{...e,ref:t})});A_e.displayName=Jm;var ol=10,[O_e,qh]=g0(Jm),Gkt="SelectContentImpl",Ykt=Nkt("SelectContent.RemoveScroll"),P_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:g,...v}=e,b=Kh(Jm,n),[w,x]=y.useState(null),[E,S]=y.useState(null),_=xt(t,ue=>x(ue)),[k,C]=y.useState(null),[T,A]=y.useState(null),O=IN(n),[R,I]=y.useState(!1),F=y.useRef(!1);y.useEffect(()=>{if(w)return zR(w)},[w]),BR();const N=y.useCallback(ue=>{const[ce,...Q]=O().map(X=>X.ref.current),[K]=Q.slice(-1),pe=document.activeElement;for(const X of ue)if(X===pe||(X==null||X.scrollIntoView({block:"nearest"}),X===ce&&E&&(E.scrollTop=0),X===K&&E&&(E.scrollTop=E.scrollHeight),X==null||X.focus(),document.activeElement!==pe))return},[O,E]),B=y.useCallback(()=>N([k,w]),[N,k,w]);y.useEffect(()=>{R&&B()},[R,B]);const{onOpenChange:M,triggerPointerDownPosRef:L}=b;y.useEffect(()=>{if(w){let ue={x:0,y:0};const ce=K=>{var pe,X;ue={x:Math.abs(Math.round(K.pageX)-(((pe=L.current)==null?void 0:pe.x)??0)),y:Math.abs(Math.round(K.pageY)-(((X=L.current)==null?void 0:X.y)??0))}},Q=K=>{ue.x<=10&&ue.y<=10?K.preventDefault():w.contains(K.target)||M(!1),document.removeEventListener("pointermove",ce),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Q,{capture:!0})}}},[w,M,L]),y.useEffect(()=>{const ue=()=>M(!1);return window.addEventListener("blur",ue),window.addEventListener("resize",ue),()=>{window.removeEventListener("blur",ue),window.removeEventListener("resize",ue)}},[M]);const[P,G]=q_e(ue=>{const ce=O().filter(pe=>!pe.disabled),Q=ce.find(pe=>pe.ref.current===document.activeElement),K=G_e(ce,ue,Q);K&&setTimeout(()=>K.ref.current.focus())}),Z=y.useCallback((ue,ce,Q)=>{const K=!F.current&&!Q;(b.value!==void 0&&b.value===ce||K)&&(C(ue),K&&(F.current=!0))},[b.value]),z=y.useCallback(()=>w==null?void 0:w.focus(),[w]),oe=y.useCallback((ue,ce,Q)=>{const K=!F.current&&!Q;(b.value!==void 0&&b.value===ce||K)&&A(ue)},[b.value]),le=r==="popper"?Gz:I_e,se=le===Gz?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:p,hideWhenDetached:m,avoidCollisions:g}:{};return D.jsx(O_e,{scope:n,content:w,viewport:E,onViewportChange:S,itemRefCallback:Z,selectedItem:k,onItemLeave:z,itemTextRefCallback:oe,focusSelectedItem:B,selectedItemText:T,position:r,isPositioned:R,searchRef:P,children:D.jsx(gS,{as:Ykt,allowPinchZoom:!0,children:D.jsx(mS,{asChild:!0,trapped:b.o
vendor: 4,154 bytes, line 1015
1015pen,onMountAutoFocus:ue=>{ue.preventDefault()},onUnmountAutoFocus:Ee(i,ue=>{var ce;(ce=b.trigger)==null||ce.focus({preventScroll:!0}),ue.preventDefault()}),children:D.jsx(pg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:ue=>ue.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:D.jsx(le,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:ue=>ue.preventDefault(),...v,...se,onPlaced:()=>I(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Ee(v.onKeyDown,ue=>{const ce=ue.ctrlKey||ue.altKey||ue.metaKey;if(ue.key==="Tab"&&ue.preventDefault(),!ce&&ue.key.length===1&&G(ue.key),["ArrowUp","ArrowDown","Home","End"].includes(ue.key)){let K=O().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);if(["ArrowUp","End"].includes(ue.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(ue.key)){const pe=ue.target,X=K.indexOf(pe);K=K.slice(X+1)}setTimeout(()=>N(K)),ue.preventDefault()}})})})})})})});P_e.displayName=Gkt;var Xkt="SelectItemAlignedPosition",I_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=Kh(Jm,n),s=qh(Jm,n),[a,l]=y.useState(null),[c,u]=y.useState(null),d=xt(t,_=>u(_)),f=IN(n),h=y.useRef(!1),p=y.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:v,focusSelectedItem:b}=s,w=y.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&c&&m&&g&&v){const _=o.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),C=o.valueNode.getBoundingClientRect(),T=v.getBoundingClientRect();if(o.dir!=="rtl"){const pe=T.left-k.left,X=C.left-pe,Ze=_.left-X,Me=_.width+Ze,tt=Math.max(Me,k.width),Oe=window.innerWidth-ol,Pt=wre(X,[ol,Math.max(ol,Oe-tt)]);a.style.minWidth=Me+"px",a.style.left=Pt+"px"}else{const pe=k.right-T.right,X=window.innerWidth-C.right-pe,Ze=window.innerWidth-_.right-X,Me=_.width+Ze,tt=Math.max(Me,k.width),Oe=window.innerWidth-ol,Pt=wre(X,[ol,Math.max(ol,Oe-tt)]);a.style.minWidth=Me+"px",a.style.right=Pt+"px"}const A=f(),O=window.innerHeight-ol*2,R=m.scrollHeight,I=window.getComputedStyle(c),F=parseInt(I.borderTopWidth,10),N=parseInt(I.paddingTop,10),B=parseInt(I.borderBottomWidth,10),M=parseInt(I.paddingBottom,10),L=F+N+R+M+B,P=Math.min(g.offsetHeight*5,L),G=window.getComputedStyle(m),Z=parseInt(G.paddingTop,10),z=parseInt(G.paddingBottom,10),oe=_.top+_.height/2-ol,le=O-oe,se=g.offsetHeight/2,ue=g.offsetTop+se,ce=F+N+ue,Q=L-ce;if(ce<=oe){const pe=A.length>0&&g===A[A.length-1].ref.current;a.style.bottom="0px";const X=c.clientHeight-m.offsetTop-m.offsetHeight,Ze=Math.max(le,se+(pe?z:0)+X+B),Me=ce+Ze;a.style.height=Me+"px"}else{const pe=A.length>0&&g===A[0].ref.current;a.style.top="0px";const Ze=Math.max(oe,F+m.offsetTop+(pe?Z:0)+se)+Q;a.style.height=Ze+"px",m.scrollTop=ce-oe+m.offsetTop}a.style.margin=`${ol}px 0`,a.style.minHeight=P+"px",a.style.maxHeight=O+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[f,o.trigger,o.valueNode,a,c,m,g,v,o.dir,r]);zr(()=>w(),[w]);const[x,E]=y.useState();zr(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const S=y.useCallback(_=>{_&&p.current===!0&&(w(),b==null||b(),p.current=!1)},[w,b]);return D.jsx(Qkt,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:D.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:D.jsx(Qe.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});I_e.displayName=Xkt;var Zkt="SelectPopperPosition",Gz=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=ol,...o}=e,s=RN(n);return D.jsx(YR,{...s,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Gz.displayName=Zkt;var[Qkt,b9]=g0(Jm,{}),Yz="SelectViewport",R_e=y.forwardRef((e,t)=>
1015{const{__scopeSelect:n,nonce:r,...i}=e,o=qh(Yz,n),s=b9(Yz,n),a=xt(t,o.onViewportChange),l=y.useRef(0);return D.jsxs(D.Fragment,{children:[D.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),D.jsx(PN.Slot,{scope:n,children:D.jsx(Qe.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Ee(i.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=s;if(f!=null&&f.current&&d){const h=Math.abs(l.current-u.scrollTop);if(h>0){const p=window.innerHeight-ol*2,m=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),v=Math.max(m,g);if(v<p){const b=v+h,w=Math.min(p,b),x=b-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=x>0?x:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});R_e.displayName=Yz;var M_e="SelectGroup",[Jkt,eCt]=g0(M_e),tCt=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ys();return D.jsx(Jkt,{scope:n,id:i,children:D.jsx(Qe.div,{role:"group","aria-labelledby":i,...r,ref:t})})});tCt.displayName=M_e;var N_e="SelectLabel",D_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=eCt(N_e,n);return D.jsx(Qe.div,{id:i.id,...r,ref:t})});D_e.displayName=N_e;var LP="SelectItem",[nCt,L_e]=g0(LP),$_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=Kh(LP,n),l=qh(LP,n),c=a.value===r,[u,d]=y.useState(o??""),[f,h]=y.useState(!1),p=xt(t,b=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,b,r,i)}),m=ys(),g=y.useRef("touch"),v=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return D.jsx(nCt,{scope:n,value:r,disabled:i,textId:m,isSelected:c,onItemTextChange:y.useCallback(b=>{d(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:D.jsx(PN.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:D.jsx(Qe.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:p,onFocus:Ee(s.onFocus,()=>h(!0)),onBlur:Ee(s.onBlur,()=>h(!1)),onClick:Ee(s.onClick,()=>{g.current!=="mouse"&&v()}),onPointerUp:Ee(s.onPointerUp,()=>{g.current==="mouse"&&v()}),onPointerDown:Ee(s.onPointerDown,b=>{g.current=b.pointerType}),onPointerMove:Ee(s.onPointerMove,b=>{var w;g.current=b.pointerType,i?(w=l.onItemLeave)==null||w.call(l):g.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ee(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:Ee(s.onKeyDown,b=>{var x;((x=l.searchRef)==null?void 0:x.current)!==""&&b.key===" "||(zkt.includes(b.key)&&v(),b.key===" "&&b.preventDefault())})})})})});$_e.displayName=LP;var ux="SelectItemText",F_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=Kh(ux,n),a=qh(ux,n),l=L_e(ux,n),c=Hkt(ux,n),[u,d]=y.useState(null),f=xt(t,v=>d(v),l.onItemTextChange,v=>{var b;return(b=a.itemTextRefCallback)==null?void 0:b.call(a,v,l.value,l.disabled)}),h=u==null?void 0:u.textContent,p=y.useMemo(()=>D.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return zr(()=>(m(p),()=>g(p)),[m,g,p]),D.jsxs(D.Fragment,{children:[D.jsx(Qe.span,{id:l.textId,...o,ref:f}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?pr.createPortal(o.children,s.valueNode):null]})});F_e.displayName=ux;var B_e="SelectItemIndicator",j_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return L_e(B_e,n).isSelected?D.jsx(Qe.span,{"aria-hidden":!0,...r,ref:t}):null});j_e.displayName=B_e;var Xz="SelectScrollUpButton",z_e=y.forwardRef((e,t)=>
1015{const n=qh(Xz,e.__scopeSelect),r=b9(Xz,e.__scopeSelect),[i,o]=y.useState(!1),s=xt(t,r.onScrollButtonChange);return zr(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;o(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?D.jsx(V_e,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});z_e.displayName=Xz;var Zz="SelectScrollDownButton",U_e=y.forwardRef((e,t)=>{const n=qh(Zz,e.__scopeSelect),r=b9(Zz,e.__scopeSelect),[i,o]=y.useState(!1),s=xt(t,r.onScrollButtonChange);return zr(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;o(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?D.jsx(V_e,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});U_e.displayName=Zz;var V_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=qh("SelectScrollButton",n),s=y.useRef(null),a=IN(n),l=y.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return y.useEffect(()=>()=>l(),[l]),zr(()=>{var u;const c=a().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),D.jsx(Qe.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Ee(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Ee(i.onPointerMove,()=>{var c;(c=o.onItemLeave)==null||c.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Ee(i.onPointerLeave,()=>{l()})})}),rCt="SelectSeparator",W_e=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return D.jsx(Qe.div,{"aria-hidden":!0,...r,ref:t})});W_e.displayName=rCt;var Qz="SelectArrow",iCt=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=RN(n),o=Kh(Qz,n),s=qh(Qz,n);return o.open&&s.position==="popper"?D.jsx(XR,{...i,...r,ref:t}):null});iCt.displayName=Qz;var oCt="SelectBubbleInput",H_e=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=y.useRef(null),o=xt(r,i),s=ON(t);return y.useEffect(()=>{const a=i.current;if(!a)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&u){const d=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(d)}},[s,t]),D.jsx(Qe.select,{...n,style:{...hde,...n.style},ref:o,defaultValue:t})});H_e.displayName=oCt;function K_e(e){return e===""||e===void 0}function q_e(e){const t=Vo(e),n=y.useRef(""),r=y.useRef(0),i=y.useCallback(s=>{const a=n.current+s;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function G_e(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=sCt(e,Math.max(o,0));i.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function sCt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xrn=x_e,Ern=S_e,Srn=k_e,_rn=C_e,krn=T_e,Crn=A_e,Trn=R_e,Arn=D_e,Orn=$_e,Prn=F_e,Irn=j_e,Rrn=z_e,Mrn=U_e,Nrn=W_e,MN="Tabs",[aCt]=Ri(MN,[e0]),Y_e=e0(),[lCt,w9]=aCt(MN),X_e=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=Qb(a),[d,f]=Wo({prop:r,onChange:i,defaultProp:o??"",caller:MN});return D.jsx(lCt,{scope:n,baseId:ys(),value:d,onValueChange:f,orientation:s,dir:u,activationMode:l,children:D.jsx(Qe.div,{dir:u,"data-orientation":s,...c,ref:t})})});X_e.displayName=MN;var Z_e="TabsList",Q_e=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,o=w9(Z_e,n),s=Y_e(n);return D.jsx(JV,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:D.jsx(Qe.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});Q_e.displayName=Z_e;var J_e="TabsTrigger",eke=y.forwardRef((e,t)=>
1015{const{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=w9(J_e,n),a=Y_e(n),l=rke(s.baseId,r),c=ike(s.baseId,r),u=r===s.value;return D.jsx(e6,{asChild:!0,...a,focusable:!i,active:u,children:D.jsx(Qe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...o,ref:t,onMouseDown:Ee(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?s.onValueChange(r):d.preventDefault()}),onKeyDown:Ee(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:Ee(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!i&&d&&s.onValueChange(r)})})})});eke.displayName=J_e;var tke="TabsContent",nke=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:o,...s}=e,a=w9(tke,n),l=rke(a.baseId,r),c=ike(a.baseId,r),u=r===a.value,d=y.useRef(u);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),D.jsx(no,{present:i||u,children:({present:f})=>D.jsx(Qe.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&o})})});nke.displayName=tke;function rke(e,t){return`${e}-trigger-${t}`}function ike(e,t){return`${e}-content-${t}`}var Drn=X_e,Lrn=Q_e,$rn=eke,Frn=nke,cCt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],uCt=cCt.reduce((e,t)=>{const n=FR(`Primitive.${t}`),r=y.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),dCt="Separator",xre="horizontal",fCt=["horizontal","vertical"],oke=y.forwardRef((e,t)=>{const{decorative:n,orientation:r=xre,...i}=e,o=hCt(r)?r:xre,a=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return D.jsx(uCt.div,{"data-orientation":o,...a,...i,ref:t})});oke.displayName=dCt;function hCt(e){return fCt.includes(e)}var Brn=oke;const Jz=(e,t)=>t.some(n=>e instanceof n);let Ere,Sre;function pCt(){return Ere||(Ere=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function mCt(){return Sre||(Sre=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const e4=new WeakMap,p$=new WeakMap,NN=new WeakMap;function gCt(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(ym(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return NN.set(t,e),t}function vCt(e){if(e4.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});e4.set(e,t)}let t4={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return e4.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ym(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function ske(e){t4=e(t4)}function yCt(e){return mCt().includes(e)?function(...t){return e.apply(n4(this),t),ym(this.request)}:function(...t){return ym(e.apply(n4(this),t))}}function bCt(e){return typeof e=="function"?yCt(e):(e instanceof IDBTransaction&&vCt(e),Jz(e,pCt())?new Proxy(e,t4):e)}function ym(e){if(e instanceof IDBRequest)return gCt(e);
1015if(p$.has(e))return p$.get(e);const t=bCt(e);return t!==e&&(p$.set(e,t),NN.set(t,e)),t}const n4=e=>NN.get(e);function jrn(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=ym(s);return r&&s.addEventListener("upgradeneeded",l=>{r(ym(s.result),l.oldVersion,l.newVersion,ym(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const wCt=["get","getKey","getAll","getAllKeys","count"],xCt=["put","add","delete","clear"],m$=new Map;function _re(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(m$.get(t))return m$.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=xCt.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||wCt.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),i&&l.done]))[0]};return m$.set(t,o),o}ske(e=>({...e,get:(t,n,r)=>_re(t,n)||e.get(t,n,r),has:(t,n)=>!!_re(t,n)||e.has(t,n)}));const ECt=["continue","continuePrimaryKey","advance"],kre={},r4=new WeakMap,ake=new WeakMap,SCt={get(e,t){if(!ECt.includes(t))return e[t];let n=kre[t];return n||(n=kre[t]=function(...r){r4.set(this,ake.get(this)[t](...r))}),n}};async function*_Ct(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,SCt);for(ake.set(n,t),NN.set(n,n4(t));t;)yield n,t=await(r4.get(n)||t.continue()),r4.delete(n)}function Cre(e,t){return t===Symbol.asyncIterator&&Jz(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Jz(e,[IDBIndex,IDBObjectStore])}ske(e=>({...e,get(t,n,r){return Cre(t,n)?_Ct:e.get(t,n,r)},has(t,n){return Cre(t,n)||e.has(t,n)}}));var DN="Switch",[kCt]=Ri(DN),[CCt,TCt]=kCt(DN),lke=y.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:o,required:s,disabled:a,value:l="on",onCheckedChange:c,form:u,...d}=e,[f,h]=y.useState(null),p=xt(t,w=>h(w)),m=y.useRef(!1),g=f?u||!!f.closest("form"):!0,[v,b]=Wo({prop:i,defaultProp:o??!1,onChange:c,caller:DN});return D.jsxs(CCt,{scope:n,checked:v,disabled:a,children:[D.jsx(Qe.button,{type:"button",role:"switch","aria-checked":v,"aria-required":s,"data-state":fke(v),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:p,onClick:Ee(e.onClick,w=>{b(x=>!x),g&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),g&&D.jsx(dke,{control:f,bubbles:!m.current,name:r,value:l,checked:v,required:s,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});lke.displayName=DN;var cke="SwitchThumb",uke=y.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=TCt(cke,n);return D.jsx(Qe.span,{"data-state":fke(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});uke.displayName=cke;var ACt="SwitchBubbleInput",dke=y.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{const s=y.useRef(null),a=xt(s,o),l=ON(n),c=qR(t);return y.useEffect(()=>{const u=s.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&h){const p=new Event("click",{bubbles:r});h.call(u,n),u.dispatchEvent(p)}},[l,n,r]),D.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});dke.displayName=ACt;function fke(e){return e?"checked":"unchecked"}var zrn=lke,Urn=uke,LN="Collapsible",[OCt,hke]=Ri(LN),[PCt,x9]=OCt(LN),pke=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:s,...a}=e,[l,c]=Wo({prop:r,defaultProp:i??!1,onChange:s,caller:LN});return D.jsx(PCt,{scope:n,disabled:o,contentId:ys(),open:l,onOpenToggle:y.useCallback(()=>c(u=>!u),[c]),children:D.jsx(Qe.div,{"data-state":S9(l),"data-disabled":o?"":void 0,...a,ref:t})})});pke.displayName=LN;var mke="CollapsibleTrigger",gke=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=x9(mke,n);return D.jsx(Qe.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":S9(i.open
1015),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:Ee(e.onClick,i.onOpenToggle)})});gke.displayName=mke;var E9="CollapsibleContent",vke=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=x9(E9,e.__scopeCollapsible);return D.jsx(no,{present:n||i.open,children:({present:o})=>D.jsx(ICt,{...r,ref:t,present:o})})});vke.displayName=E9;var ICt=y.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...o}=e,s=x9(E9,n),[a,l]=y.useState(r),c=y.useRef(null),u=xt(t,c),d=y.useRef(0),f=d.current,h=y.useRef(0),p=h.current,m=s.open||a,g=y.useRef(m),v=y.useRef(void 0);return y.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),zr(()=>{const b=c.current;if(b){v.current=v.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,h.current=w.width,g.current||(b.style.transitionDuration=v.current.transitionDuration,b.style.animationName=v.current.animationName),l(r)}},[s.open,r]),D.jsx(Qe.div,{"data-state":S9(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!m,...o,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:m&&i})});function S9(e){return e?"open":"closed"}var RCt=pke,MCt=gke,NCt=vke,DCt=Symbol("radix.slottable");function LCt(e){const t=({children:n})=>D.jsx(D.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=DCt,t}var yke="AlertDialog",[$Ct]=Ri(yke,[Wme]),Dd=Wme(),bke=e=>{const{__scopeAlertDialog:t,...n}=e,r=Dd(t);return D.jsx(DGe,{...r,...n,modal:!0})};bke.displayName=yke;var FCt="AlertDialogTrigger",wke=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Dd(n);return D.jsx(LGe,{...i,...r,ref:t})});wke.displayName=FCt;var BCt="AlertDialogPortal",xke=e=>{const{__scopeAlertDialog:t,...n}=e,r=Dd(t);return D.jsx($Ge,{...r,...n})};xke.displayName=BCt;var jCt="AlertDialogOverlay",Eke=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Dd(n);return D.jsx(FGe,{...i,...r,ref:t})});Eke.displayName=jCt;var fy="AlertDialogContent",[zCt,UCt]=$Ct(fy),VCt=LCt("AlertDialogContent"),Ske=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,o=Dd(n),s=y.useRef(null),a=xt(t,s),l=y.useRef(null);return D.jsx(IGe,{contentName:fy,titleName:_ke,docsSlug:"alert-dialog",children:D.jsx(zCt,{scope:n,cancelRef:l,children:D.jsxs(BGe,{role:"alertdialog",...o,...i,ref:a,onOpenAutoFocus:Ee(i.onOpenAutoFocus,c=>{var u;c.preventDefault(),(u=l.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[D.jsx(VCt,{children:r}),D.jsx(HCt,{contentRef:s})]})})})});Ske.displayName=fy;var _ke="AlertDialogTitle",kke=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Dd(n);return D.jsx(jGe,{...i,...r,ref:t})});kke.displayName=_ke;var Cke="AlertDialogDescription",Tke=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Dd(n);return D.jsx(zGe,{...i,...r,ref:t})});Tke.displayName=Cke;var WCt="AlertDialogAction",Ake=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Dd(n);return D.jsx(sge,{...i,...r,ref:t})});Ake.displayName=WCt;var Oke="AlertDialogCancel",Pke=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=UCt(Oke,n),o=Dd(n),s=xt(t,i);return D.jsx(sge,{...o,...r,ref:s})});Pke.displayName=Oke;var HCt=({contentRef:e})=>{const t=`\`${fy}\` requires a description for the component to be accessible for screen reader users. 1016 1017You can add a description to the \`${fy}\` by passing a \`${Cke}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 1018 1019Alternatively, 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 \`${fy}\`. 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. 1020 1021For more information, see https://radix-ui.com/primitives/docs/components/
1021alert-dialog`;return y.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Vrn=bke,Wrn=wke,Hrn=xke,Krn=Eke,qrn=Ske,Grn=Ake,Yrn=Pke,Xrn=kke,Zrn=Tke;function KCt(e,t=[]){let n=[];function r(o,s){const a=y.createContext(s);a.displayName=o+"Context";const l=n.length;n=[...n,s];const c=d=>{var v;const{scope:f,children:h,...p}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,g=y.useMemo(()=>p,Object.values(p));return D.jsx(m.Provider,{value:g,children:h})};c.displayName=o+"Provider";function u(d,f){var m;const h=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,p=y.useContext(h);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[c,u]}const i=()=>{const o=n.map(s=>y.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,qCt(i,...t)]}function qCt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(o)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var GCt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_9=GCt.reduce((e,t)=>{const n=FR(`Primitive.${t}`),r=y.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function YCt(){return EM.useSyncExternalStore(XCt,()=>!0,()=>!1)}function XCt(){return()=>{}}var k9="Avatar",[ZCt]=KCt(k9),[QCt,Ike]=ZCt(k9),Rke=y.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,o]=y.useState("idle");return D.jsx(QCt,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o,children:D.jsx(_9.span,{...r,ref:t})})});Rke.displayName=k9;var Mke="AvatarImage",Nke=y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,s=Ike(Mke,n),a=JCt(r,o),l=Vo(c=>{i(c),s.onImageLoadingStatusChange(c)});return zr(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?D.jsx(_9.img,{...o,ref:t,src:r}):null});Nke.displayName=Mke;var Dke="AvatarFallback",Lke=y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,o=Ike(Dke,n),[s,a]=y.useState(r===void 0);return y.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&o.imageLoadingStatus!=="loaded"?D.jsx(_9.span,{...i,ref:t}):null});Lke.displayName=Dke;function Tre(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function JCt(e,{referrerPolicy:t,crossOrigin:n}){const r=YCt(),i=y.useRef(null),o=r?(i.current||(i.current=new window.Image),i.current):null,[s,a]=y.useState(()=>Tre(o,e));return zr(()=>{a(Tre(o,e))},[o,e]),zr(()=>{const l=d=>()=>{a(d)};if(!o)return;const c=l("loaded"),u=l("error");return o.addEventListener("load",c),o.addEventListener("error",u),t&&(o.referrerPolicy=t),typeof n=="string"&&(o.crossOrigin=n),()=>{o.removeEventListener("load",c),o.removeEventListener("error",u)}},[o,n,t]),s}var Qrn=Rke,Jrn=Nke,ein=Lke;const $ke=6048e5,eTt=864e5,aC=43200,Are=1440,Ore=Symbol.for("constructDateFrom");function ra(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ore in e?e[Ore](t):e instanceof Date?new e.constructor(t):new Date(t)}function Rr(e,t){return ra(t||e,e)}function tTt(e,t,n){const r=Rr(e,n==null?void 0:n.in);return isNaN(t)?ra(e,NaN):(t&&r.setDate(r.getDate()+t),r)}let nTt={};function o_(){return nTt}function x1(e,t){var a,l,c,u;const n=o_(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=Rr(e,t==null?void 0:t.in),o=i.getDay(),s=(o<r?7:0)+o-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function $P(e,t){return x1(e,{...t,weekStartsOn:1}
1021)}function Fke(e,t){const n=Rr(e,t==null?void 0:t.in),r=n.getFullYear(),i=ra(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=$P(i),s=ra(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const a=$P(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function FP(e){const t=Rr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function v0(e,...t){const n=ra.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function BP(e,t){const n=Rr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function rTt(e,t,n){const[r,i]=v0(n==null?void 0:n.in,e,t),o=BP(r),s=BP(i),a=+o-FP(o),l=+s-FP(s);return Math.round((a-l)/eTt)}function iTt(e,t){const n=Fke(e,t),r=ra(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$P(r)}function UT(e,t){const n=+Rr(e)-+Rr(t);return n<0?-1:n>0?1:n}function $N(e){return ra(e,Date.now())}function Bke(e,t,n){const[r,i]=v0(n==null?void 0:n.in,e,t);return+BP(r)==+BP(i)}function oTt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sTt(e){return!(!oTt(e)&&typeof e!="number"||isNaN(+Rr(e)))}function aTt(e,t,n){const[r,i]=v0(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return o*12+s}function lTt(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function cTt(e,t){return+Rr(e)-+Rr(t)}function uTt(e,t){const n=Rr(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function dTt(e,t){const n=Rr(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function fTt(e,t){const n=Rr(e,t==null?void 0:t.in);return+uTt(n,t)==+dTt(n,t)}function hTt(e,t,n){const[r,i,o]=v0(n==null?void 0:n.in,e,e,t),s=UT(i,o),a=Math.abs(aTt(i,o));if(a<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*a);let l=UT(i,o)===-s;fTt(r)&&a===1&&UT(r,o)===1&&(l=!1);const c=s*(a-+l);return c===0?0:c}function pTt(e,t,n){const r=cTt(e,t)/1e3;return lTt(n==null?void 0:n.roundingMethod)(r)}function mTt(e,t){const n=Rr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const gTt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vTt=(e,t,n)=>{let r;const i=gTt[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function g$(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const yTt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bTt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wTt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xTt={date:g$({formats:yTt,defaultWidth:"full"}),time:g$({formats:bTt,defaultWidth:"full"}),dateTime:g$({formats:wTt,defaultWidth:"full"})},ETt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},STt=(e,t,n,r)=>ETt[e];function ww(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const _Tt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kTt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}
1021,CTt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},TTt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ATt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OTt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},PTt=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ITt={ordinalNumber:PTt,era:ww({values:_Tt,defaultWidth:"wide"}),quarter:ww({values:kTt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ww({values:CTt,defaultWidth:"wide"}),day:ww({values:TTt,defaultWidth:"wide"}),dayPeriod:ww({values:ATt,defaultWidth:"wide",formattingValues:OTt,defaultFormattingWidth:"wide"})};function xw(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?MTt(a,d=>d.test(s)):RTt(a,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function RTt(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function MTt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function NTt(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(i.length);return{value:s,rest:a}}}const DTt=/^(\d+)(th|st|nd|rd)?/i,LTt=/\d+/i,$Tt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},FTt={any:[/^b/i,/^(a|c)/i]},BTt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jTt={any:[/1/i,/2/i,/3/i,/4/i]},zTt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UTt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},VTt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},WTt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},HTt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},KTt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qTt={ordinalNumber:NTt({matchPattern:DTt,parsePattern:LTt,valueCallback:e=>parseInt(e,10)}),era:xw({matchPatterns:$Tt,defaultMatchWidth:"wide",parsePatterns:FTt,defaultParseWidth:"any"}),quarter:xw({matchPatterns:BTt,defaultMatchWidth:"wide",parsePatterns:jTt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xw({matchPatterns:zTt,defaultMatchWidth:"wide",parsePatterns:UTt,defaultParseWidth:"any"}),day:xw({matchPatterns:VTt,defaultMatchWidth:"wide",parsePatterns:WTt,defaultParseWidth:"any"}),dayPeriod:xw({matchPatterns:HTt,defaultMatchWidth:"any",parsePatterns:KTt,defaultParseWidth:"any"})},jke={code:"en-US",formatDistance:vTt,formatLong:xTt,formatRelative:STt,localize:ITt,match:qTt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GTt(e,t){const n=Rr(e,t==null?void 0:t.in);return rTt(n,mTt(n))+1}function YTt(e,t){const n=Rr(e,t==null?void 0:t.in),r=+$P(n)-+iTt(n);return Math.round(r/$ke)+1}function zke(e,t){var u,d,f,h;const n=Rr(e,t==null?void 0:t.in),r=n.getFullYear(),i=o_(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=ra((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const a=x1(s,t),l=ra((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=x1(l,t);return+n>=+a?r+1:+n>=+c?r:r-1}function XTt(e,t){var a,l,c,u;
vendor: 10,418 bytes, line 1021
1021const n=o_(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=zke(e,t),o=ra((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),x1(o,t)}function ZTt(e,t){const n=Rr(e,t==null?void 0:t.in),r=+x1(n,t)-+XTt(n,t);return Math.round(r/$ke)+1}function pn(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Kd={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return pn(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pn(n+1,2)},d(e,t){return pn(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pn(e.getHours()%12||12,t.length)},H(e,t){return pn(e.getHours(),t.length)},m(e,t){return pn(e.getMinutes(),t.length)},s(e,t){return pn(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return pn(i,t.length)}},rv={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pre={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Kd.y(e,t)},Y:function(e,t,n,r){const i=zke(e,r),o=i>0?i:1-i;if(t==="YY"){const s=o%100;return pn(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):pn(o,t.length)},R:function(e,t){const n=Fke(e);return pn(n,t.length)},u:function(e,t){const n=e.getFullYear();return pn(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return pn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return pn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Kd.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return pn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=ZTt(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):pn(i,t.length)},I:function(e,t,n){const r=YTt(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):pn(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Kd.d(e,t)},D:function(e,t,n){const r=GTt(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):pn(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return pn(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return pn(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return pn(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=rv.noon:r===0?i=rv.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=rv.evening:r>=12?i=rv.afternoon:r>=4?i=rv.morning:i=rv.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Kd.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Kd.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):pn(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):pn(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Kd.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Kd.s(e,t)},S:function(e,t){return Kd.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Rre(r);case"XXXX":case"XX":return Pp(r);case"XXXXX":case"XXX":default:return Pp(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Rre(r);case"xxxx":case"xx":return Pp(r);case"xxxxx":case"xxx":default:return Pp(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ire(r,":");case"OOOO":default:return"GMT"+Pp(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ire(r,":");case"zzzz":default:return"GMT"+Pp(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return pn(r,t.length)},T:function(e,t,n){return pn(+e,t.length)}};function Ire(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+pn(o,2)}function Rre(e,t){return e%60===0?(e>0?"-":"+")+pn(Math.abs(e)/60,2):Pp(e,t)}function Pp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=pn(Math.trunc(r/60),2),o=pn(r%60,2);return n+i+t+o}const Mre=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Uke=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},QTt=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Mre(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Mre(r,t)).replace("{{time}}",Uke(i,t))},JTt={p:Uke,P:QTt},eAt=/^D+$/,tAt=/^Y+$/,nAt=["D","DD","YY","YYYY"];function rAt(e){return eAt.test(e)}function iAt(e){return tAt.test(e)}function oAt(e,t,n){const r=sAt(e,t,n);if(console.warn(r),nAt.includes(e))throw new RangeError(r)}function sAt(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const aAt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lAt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cAt=/^'([^]*?)'?$/,uAt=/''/g,dAt=/[a-zA-Z]/;function tin(e,t,n){var u,d,f,h;const r=o_(),i=r.locale??jke,o=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,s=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,a=Rr(e,n==null?void 0:n.in);if(!sTt(a))throw new RangeError("Invalid time value");let l=t.match(lAt).map(p=>{const m=p[0];if(m==="p"||m==="P"){const g=JTt[m];return g(p,i.formatLong)}return p}).join("").match(aAt).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:fAt(p)};if(Pre[m])return{isToken:!0,value:p};
1021if(m.match(dAt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const c={firstWeekContainsDate:o,weekStartsOn:s,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const m=p.value;(iAt(m)||rAt(m))&&oAt(m,t,String(e));const g=Pre[m[0]];return g(a,m,i.localize,c)}).join("")}function fAt(e){const t=e.match(cAt);return t?t[1].replace(uAt,"'"):e}function hAt(e,t,n){const r=o_(),i=(n==null?void 0:n.locale)??r.locale??jke,o=2520,s=UT(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:s}),[l,c]=v0(n==null?void 0:n.in,...s>0?[t,e]:[e,t]),u=pTt(c,l),d=(FP(c)-FP(l))/1e3,f=Math.round((u-d)/60);let h;if(f<2)return n!=null&&n.includeSeconds?u<5?i.formatDistance("lessThanXSeconds",5,a):u<10?i.formatDistance("lessThanXSeconds",10,a):u<20?i.formatDistance("lessThanXSeconds",20,a):u<40?i.formatDistance("halfAMinute",0,a):u<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):f===0?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",f,a);if(f<45)return i.formatDistance("xMinutes",f,a);if(f<90)return i.formatDistance("aboutXHours",1,a);if(f<Are){const p=Math.round(f/60);return i.formatDistance("aboutXHours",p,a)}else{if(f<o)return i.formatDistance("xDays",1,a);if(f<aC){const p=Math.round(f/Are);return i.formatDistance("xDays",p,a)}else if(f<aC*2)return h=Math.round(f/aC),i.formatDistance("aboutXMonths",h,a)}if(h=hTt(c,l),h<12){const p=Math.round(f/aC);return i.formatDistance("xMonths",p,a)}else{const p=h%12,m=Math.trunc(h/12);return p<3?i.formatDistance("aboutXYears",m,a):p<9?i.formatDistance("overXYears",m,a):i.formatDistance("almostXYears",m+1,a)}}function nin(e,t){return hAt(e,$N(e),t)}function pAt(e,t,n){const[r,i]=v0(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function rin(e,t){return pAt(ra(e,e),$N(e))}function iin(e,t){return Bke(ra(e,e),$N(e))}function oin(e,t,n){const r=+Rr(e,n==null?void 0:n.in),[i,o]=[+Rr(t.start,n==null?void 0:n.in),+Rr(t.end,n==null?void 0:n.in)].sort((s,a)=>s-a);return r>=i&&r<=o}function mAt(e,t,n){return tTt(e,-t,n)}function sin(e,t){return Bke(ra(e,e),mAt($N(e),1))}function Vke(e){return t=>typeof t===e}var gAt=Vke("function"),vAt=e=>e===null,Nre=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Dre=e=>!yAt(e)&&!vAt(e)&&(gAt(e)||typeof e=="object"),yAt=Vke("undefined");function bAt(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Fo(e[r],t[r]))return!1;return!0}function wAt(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function xAt(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Fo(n[1],t.get(n[0])))return!1;return!0}function EAt(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Fo(e,t){if(e===t)return!0;if(e&&Dre(e)&&t&&Dre(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return bAt(e,t);if(e instanceof Map&&t instanceof Map)return xAt(e,t);if(e instanceof Set&&t instanceof Set)return EAt(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return wAt(e,t);if(Nre(e)&&Nre(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Fo(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var SAt=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],_At=["bigint","boolean","null","number","string","symbol","undefined"];function FN(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(kAt(t))return t}function Gl(e){return t=>FN(t)===e}function kAt(e){return SAt.includes(e)}function y0(e){return t=>typeof t===e}function CAt(e){return _At.includes(e)}var TAt=["innerHTML","ownerDocument","style","attributes","nodeValue"];function $e(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if($e.array(e))return"Array";if($e.plainFunction(e))return"Function";const t=FN(e);return t||"Object"}$e.array=Array.isArray;$e.arrayOf=(e,t)=>!$e.array(e)&&!$e.function(t)?!1:e.every(n=>t(n));$e.asyncGeneratorFunction=e=>FN(e)==="AsyncGeneratorFunction";$e.asyncFunction=Gl("AsyncFunction");$e.bigint=y0("bigint");$e.boolean=e=>e===!0||e===!1;$e.date=Gl("Date");$e.defined=e=>!$e.undefined(e);$e.domElement=e=>$e.object(e)&&!$e.plainObject(e)&&e.nodeType===1&&$e.string(e.nodeName)&&TAt.every(t=>t in e);$e.empty=e=>$e.string(e)&&e.length===0||$e.array(e)&&e.length===0||$e.object(e)&&!$e.map(e)&&!$e.set(e)&&Object.keys(e).length===0||$e.set(e)&&e.size===0||$e.map(e)&&e.size===0;$e.error=Gl("Error");$e.function=y0("function");$e.generator=e=>$e.iterable(e)&&$e.function(e.next)&&$e.function(e.throw);$e.generatorFunction=Gl("GeneratorFunction");$e.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;$e.iterable=e=>!$e.nullOrUndefined(e)&&$e.function(e[Symbol.iterator]);$e.map=Gl("Map");$e.nan=e=>Number.isNaN(e);$e.null=e=>e===null;$e.nullOrUndefined=e=>$e.null(e)||$e.undefined(e);$e.number=e=>y0("number")(e)&&!$e.nan(e);$e.numericString=e=>$e.string(e)&&e.length>0&&!Number.isNaN(Number(e));$e.object=e=>!$e.nullOrUndefined(e)&&($e.function(e)||typeof e=="object");$e.oneOf=(e,t)=>$e.array(e)?e.indexOf(t)>-1:!1;$e.plainFunction=Gl("Function");$e.plainObject=e=>{if(FN(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};$e.primitive=e=>$e.null(e)||CAt(typeof e);$e.promise=Gl("Promise");$e.propertyOf=(e,t,n)=>{if(!$e.object(e)||!t)return!1;const r=e[t];return $e.function(n)?n(r):$e.defined(r)};$e.regexp=Gl("RegExp");
1021$e.set=Gl("Set");$e.string=y0("string");$e.symbol=y0("symbol");$e.undefined=y0("undefined");$e.weakMap=Gl("WeakMap");$e.weakSet=Gl("WeakSet");var Ke=$e;function AAt(...e){return e.every(t=>Ke.string(t)||Ke.array(t)||Ke.plainObject(t))}function OAt(e,t,n){return Wke(e,t)?[e,t].every(Ke.array)?!e.some(jre(n))&&t.some(jre(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(Bre(n))&&Object.entries(t).some(Bre(n)):t===n:!1}function Lre(e,t,n){const{actual:r,key:i,previous:o,type:s}=n,a=Mc(e,i),l=Mc(t,i);let c=[a,l].every(Ke.number)&&(s==="increased"?a<l:a>l);return Ke.undefined(r)||(c=c&&l===r),Ke.undefined(o)||(c=c&&a===o),c}function $re(e,t,n){const{key:r,type:i,value:o}=n,s=Mc(e,r),a=Mc(t,r),l=i==="added"?s:a,c=i==="added"?a:s;if(!Ke.nullOrUndefined(o)){if(Ke.defined(l)){if(Ke.array(l)||Ke.plainObject(l))return OAt(l,c,o)}else return Fo(c,o);return!1}return[s,a].every(Ke.array)?!c.every(C9(l)):[s,a].every(Ke.plainObject)?PAt(Object.keys(l),Object.keys(c)):![s,a].every(u=>Ke.primitive(u)&&Ke.defined(u))&&(i==="added"?!Ke.defined(s)&&Ke.defined(a):Ke.defined(s)&&!Ke.defined(a))}function Fre(e,t,{key:n}={}){let r=Mc(e,n),i=Mc(t,n);if(!Wke(r,i))throw new TypeError("Inputs have different types");if(!AAt(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function Bre(e){return([t,n])=>Ke.array(e)?Fo(e,n)||e.some(r=>Fo(r,n)||Ke.array(n)&&C9(n)(r)):Ke.plainObject(e)&&e[t]?!!e[t]&&Fo(e[t],n):Fo(e,n)}function PAt(e,t){return t.some(n=>!e.includes(n))}function jre(e){return t=>Ke.array(e)?e.some(n=>Fo(n,t)||Ke.array(t)&&C9(t)(n)):Fo(e,t)}function Ew(e,t){return Ke.array(e)?e.some(n=>Fo(n,t)):Fo(e,t)}function C9(e){return t=>e.some(n=>Fo(n,t))}function Wke(...e){return e.every(Ke.array)||e.every(Ke.number)||e.every(Ke.plainObject)||e.every(Ke.string)}function Mc(e,t){return Ke.plainObject(e)||Ke.array(e)?Ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):Ke.number(t)?e[t]:e:e}function jP(e,t){if([e,t].some(Ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(u=>Ke.plainObject(u)||Ke.array(u)))throw new Error("Expected plain objects or array");return{added:(u,d)=>{try{return $re(e,t,{key:u,type:"added",value:d})}catch{return!1}},changed:(u,d,f)=>{try{const h=Mc(e,u),p=Mc(t,u),m=Ke.defined(d),g=Ke.defined(f);if(m||g){const v=g?Ew(f,h):!Ew(d,h),b=Ew(d,p);return v&&b}return[h,p].every(Ke.array)||[h,p].every(Ke.plainObject)?!Fo(h,p):h!==p}catch{return!1}},changedFrom:(u,d,f)=>{if(!Ke.defined(u))return!1;try{const h=Mc(e,u),p=Mc(t,u),m=Ke.defined(f);return Ew(d,h)&&(m?Ew(f,p):!m)}catch{return!1}},decreased:(u,d,f)=>{if(!Ke.defined(u))return!1;try{return Lre(e,t,{key:u,actual:d,previous:f,type:"decreased"})}catch{return!1}},emptied:u=>{try{const[d,f]=Fre(e,t,{key:u});return!!d.length&&!f.length}catch{return!1}},filled:u=>{try{const[d,f]=Fre(e,t,{key:u});return!d.length&&!!f.length}catch{return!1}},increased:(u,d,f)=>{if(!Ke.defined(u))return!1;try{return Lre(e,t,{key:u,actual:d,previous:f,type:"increased"})}catch{return!1}},removed:(u,d)=>{try{return $re(e,t,{key:u,type:"removed",value:d})}catch{return!1}}}}var IAt=new Error("Element already at target scroll position"),RAt=new Error("Scroll cancelled"),MAt=Math.min,zre=Date.now,NAt={left:Ure("scrollLeft"),top:Ure("scrollTop")};function Ure(e){return function(n,r,i,o){i=i||{},typeof i=="function"&&(o=i,i={}),typeof o!="function"&&(o=LAt);var s=zre(),a=n[e],l=i.ease||DAt,c=isNaN(i.duration)?350:+i.duration,u=!1;return a===r?o(IAt,n[e]):requestAnimationFrame(f),d;function d(){u=!0}function f(h){if(u)return o(RAt,n[e]);var p=zre(),m=MAt(1,(p-s)/c),g=l(m);n[e]=g*(r-a)+a,m<1?requestAnimationFrame(f):requestAnimationFrame(function(){o(null,n[e])})}}}function DAt(e){return .5*(1-Math.cos(Math.PI*e))}function LAt(){}const $At=yr(NAt);var Hke={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(zt,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})})(Hke);var FAt=Hke.exports;const Kke=yr(FAt);var BAt=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},jAt=function(e,t){return e+E1(t)},E1=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(jAt,""):BAt(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?E1(e.props.children):""};E1.default=E1;var zAt=E1;const Vre=yr(zAt);var UAt=function(t){return VAt(t)&&!WAt(t)};function VAt(e){return!!e&&typeof e=="object"}function WAt(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||qAt(e)}var HAt=typeof Symbol=="function"&&Symbol.for,KAt=HAt?Symbol.for("react.element"):60103;function qAt(e){return e.$$typeof===KAt}function GAt(e){return Array.isArray(e)?[]:{}}function S1(e,t){return t.clone!==!1&&t.isMergeableObject(e)?gb(GAt(e),e,t):e}function YAt(e,t,n){return e.concat(t).map(function(r){return S1(r,n)})}function XAt(e,t){if(!t.customMerge)return gb;var n=t.customMerge(e);return typeof n=="function"?n:gb}function ZAt(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wre(e){return Object.keys(e).concat(ZAt(e))}function qke(e,t){try{return t in e}catch{return!1}}function QAt(e,t){return qke(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function JAt(e,t,n){var r={};return n.isMergeableObject(e)&&Wre(e).forEach(function(i){r[i]=S1(e[i],n)}
vendor: 22,324 bytes, lines 1021-1044
1021),Wre(t).forEach(function(i){QAt(e,i)||(qke(e,i)&&n.isMergeableObject(t[i])?r[i]=XAt(i,n)(e[i],t[i],n):r[i]=S1(t[i],n))}),r}function gb(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||YAt,n.isMergeableObject=n.isMergeableObject||UAt,n.cloneUnlessOtherwiseSpecified=S1;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):JAt(e,t,n):S1(t,n)}gb.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return gb(r,i,n)},{})};var eOt=gb,tOt=eOt;const _l=yr(tOt);/**! 1022 * @fileOverview Kickass library to create and place poppers near their reference elements. 1023 * @version 1.16.1 1024 * @license 1025 * Copyright (c) 2016 Federico Zivolo and contributors 1026 * 1027 * Permission is hereby granted, free of charge, to any person obtaining a copy 1028 * of this software and associated documentation files (the "Software"), to deal 1029 * in the Software without restriction, including without limitation the rights 1030 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1031 * copies of the Software, and to permit persons to whom the Software is 1032 * furnished to do so, subject to the following conditions: 1033 * 1034 * The above copyright notice and this permission notice shall be included in all 1035 * copies or substantial portions of the Software. 1036 * 1037 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1038 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1039 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1040 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1041 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1042 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1043 * SOFTWARE. 1044 */var s_=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",nOt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(s_&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function rOt(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function iOt(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},nOt))}}var oOt=s_&&window.Promise,sOt=oOt?rOt:iOt;function Gke(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Tg(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function T9(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function a_(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Tg(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:a_(T9(e))}function Yke(e){return e&&e.referenceNode?e.referenceNode:e}var Hre=s_&&!!(window.MSInputMethodContext&&document.documentMode),Kre=s_&&/MSIE 10/.test(navigator.userAgent);function b0(e){return e===11?Hre:e===10?Kre:Hre||Kre}function vb(e){if(!e)return document.documentElement;for(var t=b0(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Tg(n,"position")==="static"?vb(n):n}function aOt(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||vb(e.firstElementChild)===e}function i4(e){return e.parentNode!==null?i4(e.parentNode):e}function zP(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s=o.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return aOt(s)?s:vb(s);var a=i4(e);return a.host?zP(a.host,t):zP(e,i4(t).host)}function yb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function lOt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=yb(t,"top"),i=yb(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function qre(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Gre(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],b0(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Xke(e){var t=e.body,n=e.documentElement,r=b0(10)&&getComputedStyle(n);return{height:Gre("Height",t,n,r),width:Gre("Width",t,n,r)}}var cOt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},uOt=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),bb=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function kh(e){return Ma({},e,{right:e.left+e.width,bottom:e.top+e.height})}function o4(e){var t={};try{if(b0(10)){t=e.getBoundingClientRect();var n=yb(e,"top"),r=yb(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?Xke(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,a=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=Tg(e);l-=qre(u,"x"),c-=qre(u,"y"),i.width-=l,i.height-=c}return kh(i)}function A9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=b0(10),i=t.nodeName==="HTML",o=o4(e),s=o4(t),a=a_(e),l=Tg(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=kh({top:o.top-s.top-c,left:o.left-s.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=u-h,d.right-=u-h,d.marginTop=f,d.marginLeft=h}return(r&&!n?t.contains(a):t===a&&a.nodeName!=="BODY")&&(d=lOt(d,t)),d}function dOt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=A9(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:yb(n),a=t?0:yb(n,"left"),l={top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o};return kh(l)}function Zke(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Tg(e,"position")==="fixed")return!0;var n=T9(e);return n?Zke(n):!1}function Qke(e){if(!e||!e.parentElement||b0())return document.documentElement;for(var t=e.parentElement;t&&Tg(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function O9(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},s=i?Qke(e):zP(e,Yke(t));if(r==="viewport")o=dOt(s,i);else{var a=void 0;r==="scrollParent"?(a=a_(T9(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):r==="window"?a=e.ownerDocument.documentElement:a=r;var l=A9(a,s,i);if(a.nodeName==="HTML"&&!Zke(s)){var c=Xke(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}else o=l}n=n||0;var f=typeof n=="number";return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function fOt(e){var t=e.width,n=e.height;return t*n}function Jke(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=O9(n,r,o,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map(function(f){return Ma({key:f},a[f],{area:fOt(a[f])})}).sort(function(f,h){return h.area-f.area}),c=l.filter(function(f){var h=f.width,p=f.height;return h>=n.clientWidth&&p>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function eCe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?Qke(t):zP(t,Yke(n));return A9(n,i,r)}function tCe(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function UP(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function nCe(e,t,n){n=n.split("-")[0];var r=tCe(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[s]=t[s]+t[l]/2-r[l]/2,n===a?i[a]=t[a]-r[c]:i[a]=t[UP(a)],i}function l_(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function hOt(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=l_(e,function(i){return i[t]===n});return e.indexOf(r)}function rCe(e,t,n){var r=n===void 0?e:e.slice(0,hOt(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&Gke(o)&&(t.offsets.popper=kh(t.offsets.popper),t.offsets.reference=kh(t.offsets.reference),t=o(t,i))}),t}function pOt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=eCe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Jke(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=nCe(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=rCe(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function iCe(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function P9(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function mOt(){return this.state.isDestroyed=!0,iCe(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[P9("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function oCe(e){var t=e.ownerDocument;return t?t.defaultView:window}function sCe(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||sCe(a_(o.parentNode),t,n,r),r.push(o)}function gOt(e,t,n,r){n.updateBound=r,oCe(e).addEventListener("resize",n.updateBound,{passive:!0});var i=a_(e);return sCe(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function vOt(){this.state.eventsEnabled||(this.state=gOt(this.reference,this.options,this.state,this.scheduleUpdate))}function yOt(e,t){return oCe(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bOt(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=yOt(this.reference,this.state))}function I9(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function s4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&I9(t[n])&&(r="px"),e.style[n]=t[n]+r})}function wOt(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function xOt(e){return s4(e.instance.popper,e.styles),wOt(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&s4(e.arrowElement,e.arrowStyles),e}function EOt(e,t,n,r,i){var o=eCe(i,t,e,n.positionFixed),s=Jke(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),s4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function SOt(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,a=function(v){return v},l=o(i.width),c=o(r.width),u=["left","right"].indexOf(e.placement)!==-1,d=e.placement.indexOf("-")!==-1,f=l%2===c%2,h=l%2===1&&c%2===1,p=t?u||d||f?o:s:a,m=t?o:a;return{left:p(h&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}var _Ot=s_&&/Firefox/i.test(navigator.userAgent);function kOt(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=l_(e.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==void 0?o:t.gpuAcceleration,a=vb(e.instance.popper),l=o4(a),c={position:i.position},u=SOt(e,window.devicePixelRatio<2||!_Ot),d=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",h=P9("transform"),p=void 0,m=void 0;if(d==="bottom"?a.nodeName==="HTML"?m=-a.clientHeight+u.bottom:m=-l.height+u.bottom:m=u.top,f==="right"?a.nodeName==="HTML"?p=-a.clientWidth+u.right:p=-l.width+u.right:p=u.left,s&&h)c[h]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var g=d==="bottom"?-1:1,v=f==="right"?-1:1;c[d]=m*g,c[f]=p*v,c.willChange=d+", "+f}var b={"x-placement":e.placement};return e.attributes=Ma({},b,e.attributes),e.styles=Ma({},c,e.styles),e.arrowStyles=Ma({},e.offsets.arrow,e.arrowStyles),e}function aCe(e,t,n){var r=l_(e,function(a){var l=a.name;return l===t}),i=!!r&&e.some(function(a){return a.name===n&&a.enabled&&a.order<r.order});if(!i){var o="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function COt(e,t){var n;if(!aCe(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,l=["left","right"].indexOf(i)!==-1,c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",p=tCe(r)[c];a[h]-p<s[d]&&(e.offsets.popper[d]-=s[d]-(a[h]-p)),a[d]+p>s[h]&&(e.offsets.popper[d]+=a[d]+p-s[h]),e.offsets.popper=kh(e.offsets.popper);var m=a[d]+a[c]/2-p/2,g=Tg(e.instance.popper),v=parseFloat(g["margin"+u]),b=parseFloat(g["border"+u+"Width"]),w=m-e.offsets.popper[d]-v-b;return w=Math.max(Math.min(s[c]-p,w),0),e.arrowElement=r,e.offsets.arrow=(n={},bb(n,d,Math.round(w)),bb(n,f,""),n),e}function TOt(e){return e==="end"?"start":e==="start"?"end":e}var lCe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],v$=lCe.slice(3);function Yre(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=v$.indexOf(e),r=v$.slice(n+1).concat(v$.slice(0,n));return t?r.reverse():r}var y$={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function AOt(e,t){if(iCe(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=O9(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=UP(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case y$.FLIP:s=[r,i];break;case y$.CLOCKWISE:s=Yre(r);break;case y$.COUNTERCLOCKWISE:s=Yre(r,!0);break;default:s=t.behavior}return s.forEach(function(a,l){if(r!==a||s.length===l+1)return e;r=e.placement.split("-")[0],i=UP(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f=r==="left"&&d(c.right)>d(u.left)||r==="right"&&d(c.left)<d(u.right)||r==="top"&&d(c.bottom)>d(u.top)||r==="bottom"&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),p=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v=r==="left"&&h||r==="right"&&p||r==="top"&&m||r==="bottom"&&g,b=["top","bottom"].indexOf(r)!==-1,w=!!t.flipVariations&&(b&&o==="start"&&h||b&&o==="end"&&p||!b&&o==="start"&&m||!b&&o==="end"&&g),x=!!t.flipVariationsByContent&&(b&&o==="start"&&p||b&&o==="end"&&h||!b&&o==="start"&&g||!b&&o==="end"&&m),E=w||x;(f||v||E)&&(e.flipped=!0,(f||v)&&(r=s[l+1]),E&&(o=TOt(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Ma({},e.offsets.popper,nCe(e.instance.popper,e.offsets.reference,e.placement)),e=rCe(e.instance.modifiers,e,"flip"))}),e}function OOt(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=["top","bottom"].indexOf(i)!==-1,a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[a])&&(e.offsets.popper[l]=o(r[a])),e}function POt(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(s.indexOf("%")===0){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=r}var l=kh(a);return l[t]/100*o}else if(s==="vh"||s==="vw"){var c=void 0;return s==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}else return o}function IOt(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(u){return u.trim()}),a=s.indexOf(l_(s,function(u){return u.search(/,|\s/)!==-1}));s[a]&&s[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=a!==-1?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return c=c.map(function(u,d){var f=(d===1?!o:o)?"height":"width",h=!1;return u.reduce(function(p,m){return p[p.length-1]===""&&["+","-"].indexOf(m)!==-1?(p[p.length-1]=m,h=!0,p):h?(p[p.length-1]+=m,h=!1,p):p.concat(m)},[]).map(function(p){return POt(p,f,t,n)})}),c.forEach(function(u,d){u.forEach(function(f,h){I9(f)&&(i[d]+=f*(u[h-1]==="-"?-1:1))})}),i}function ROt(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,s=i.reference,a=r.split("-")[0],l=void 0;return I9(+n)?l=[+n,0]:l=IOt(n,o,s,a),a==="left"?(o.top+=l[0],o.left-=l[1]):a==="right"?(o.top+=l[0],o.left+=l[1]):a==="top"?(o.left+=l[0],o.top-=l[1]):a==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function MOt(e,t){var n=t.boundariesElement||vb(e.instance.popper);e.instance.reference===n&&(n=vb(n));var r=P9("transform"),i=e.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var l=O9(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(h){var p=u[h];return u[h]<l[h]&&!t.escapeWithReference&&(p=Math.max(u[h],l[h])),bb({},h,p)},secondary:function(h){var p=h==="right"?"left":"top",m=u[p];return u[h]>l[h]&&!t.escapeWithReference&&(m=Math.min(u[p],l[h]-(h==="right"?u.width:u.height))),bb({},p,m)}};return c.forEach(function(f){var h=["left","top"].indexOf(f)!==-1?"primary":"secondary";u=Ma({},u,d[h](f))}),e.offsets.popper=u,e}function NOt(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,a=["bottom","top"].indexOf(n)!==-1,l=a?"left":"top",c=a?"width":"height",u={start:bb({},l,o[l]),end:bb({},l,o[l]+o[c]-s[c])};e.offsets.popper=Ma({},s,u[r])}return e}function DOt(e){if(!aCe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=l_(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function LOt(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=["left","right"].indexOf(n)!==-1,a=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),e.placement=UP(t),e.offsets.popper=kh(i),e}var $Ot={shift:{order:100,enabled:!0,fn:NOt},offset:{order:200,enabled:!0,fn:ROt,offset:0},preventOverflow:{order:300,enabled:!0,fn:MOt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:OOt},arrow:{order:500,enabled:!0,fn:COt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:AOt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:LOt},hide:{order:800,enabled:!0,fn:DOt},computeStyle:{order:850,enabled:!0,fn:kOt,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:xOt,onLoad:EOt,gpuAcceleration:void 0}},FOt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:$Ot},_1=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};cOt(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=sOt(this.update.bind(this)),this.options=Ma({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ma({}
1044,e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=Ma({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Ma({name:s},r.options.modifiers[s])}).sort(function(s,a){return s.order-a.order}),this.modifiers.forEach(function(s){s.enabled&&Gke(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return uOt(e,[{key:"update",value:function(){return pOt.call(this)}},{key:"destroy",value:function(){return mOt.call(this)}},{key:"enableEventListeners",value:function(){return vOt.call(this)}},{key:"disableEventListeners",value:function(){return bOt.call(this)}}]),e}();_1.Utils=(typeof window<"u"?window:global).PopperUtils;_1.placements=lCe;_1.Defaults=FOt;var BOt=["innerHTML","ownerDocument","style","attributes","nodeValue"],jOt=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],zOt=["bigint","boolean","null","number","string","symbol","undefined"];function BN(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(UOt(t))return t}function Yl(e){return function(t){return BN(t)===e}}function UOt(e){return jOt.includes(e)}function w0(e){return function(t){return typeof t===e}}function VOt(e){return zOt.includes(e)}function re(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(re.array(e))return"Array";if(re.plainFunction(e))return"Function";var t=BN(e);return t||"Object"}re.array=Array.isArray;re.arrayOf=function(e,t){return!re.array(e)&&!re.function(t)?!1:e.every(function(n){return t(n)})};re.asyncGeneratorFunction=function(e){return BN(e)==="AsyncGeneratorFunction"};re.asyncFunction=Yl("AsyncFunction");re.bigint=w0("bigint");re.boolean=function(e){return e===!0||e===!1};re.date=Yl("Date");re.defined=function(e){return!re.undefined(e)};re.domElement=function(e){return re.object(e)&&!re.plainObject(e)&&e.nodeType===1&&re.string(e.nodeName)&&BOt.every(function(t){return t in e})};re.empty=function(e){return re.string(e)&&e.length===0||re.array(e)&&e.length===0||re.object(e)&&!re.map(e)&&!re.set(e)&&Object.keys(e).length===0||re.set(e)&&e.size===0||re.map(e)&&e.size===0};re.error=Yl("Error");re.function=w0("function");re.generator=function(e){return re.iterable(e)&&re.function(e.next)&&re.function(e.throw)};re.generatorFunction=Yl("GeneratorFunction");re.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};re.iterable=function(e){return!re.nullOrUndefined(e)&&re.function(e[Symbol.iterator])};re.map=Yl("Map");re.nan=function(e){return Number.isNaN(e)};re.null=function(e){return e===null};re.nullOrUndefined=function(e){return re.null(e)||re.undefined(e)};re.number=function(e){return w0("number")(e)&&!re.nan(e)};re.numericString=function(e){return re.string(e)&&e.length>0&&!Number.isNaN(Number(e))};re.object=function(e){return!re.nullOrUndefined(e)&&(re.function(e)||typeof e=="object")};re.oneOf=function(e,t){return re.array(e)?e.indexOf(t)>-1:!1};re.plainFunction=Yl("Function");re.plainObject=function(e){if(BN(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};re.primitive=function(e){return re.null(e)||VOt(typeof e)};re.promise=Yl("Promise");re.propertyOf=function(e,t,n){if(!re.object(e)||!t)return!1;var r=e[t];return re.function(n)?n(r):re.defined(r)};re.regexp=Yl("RegExp");re.set=Yl("Set");re.string=w0("string");re.symbol=w0("symbol");re.undefined=w0("undefined");re.weakMap=Yl("WeakMap");re.weakSet=Yl("WeakSet");function cCe(e){return function(t){return typeof t===e}}var WOt=cCe("function"),HOt=function(e){return e===null},Xre=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},Zre=function(e){return!KOt(e)&&!HOt(e)&&(WOt(e)||typeof e=="object")},KOt=cCe("undefined"),a4=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
1044if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function qOt(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!hs(e[r],t[r]))return!1;return!0}function GOt(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function YOt(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var s=a4(e.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!t.has(l[0]))return!1}}catch(d){n={error:d}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var c=a4(e.entries()),u=c.next();!u.done;u=c.next()){var l=u.value;if(!hs(l[1],t.get(l[0])))return!1}}catch(d){i={error:d}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return!0}function XOt(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=a4(e.entries()),o=i.next();!o.done;o=i.next()){var s=o.value;if(!t.has(s[0]))return!1}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function hs(e,t){if(e===t)return!0;if(e&&Zre(e)&&t&&Zre(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return qOt(e,t);if(e instanceof Map&&t instanceof Map)return YOt(e,t);if(e instanceof Set&&t instanceof Set)return XOt(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return GOt(e,t);if(Xre(e)&&Xre(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!hs(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function ZOt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return re.string(n)||re.array(n)||re.plainObject(n)})}function QOt(e,t,n){return uCe(e,t)?[e,t].every(re.array)?!e.some(nie(n))&&t.some(nie(n)):[e,t].every(re.plainObject)?!Object.entries(e).some(tie(n))&&Object.entries(t).some(tie(n)):t===n:!1}function Qre(e,t,n){var r=n.actual,i=n.key,o=n.previous,s=n.type,a=Nc(e,i),l=Nc(t,i),c=[a,l].every(re.number)&&(s==="increased"?a<l:a>l);return re.undefined(r)||(c=c&&l===r),re.undefined(o)||(c=c&&a===o),c}function Jre(e,t,n){var r=n.key,i=n.type,o=n.value,s=Nc(e,r),a=Nc(t,r),l=i==="added"?s:a,c=i==="added"?a:s;if(!re.nullOrUndefined(o)){if(re.defined(l)){if(re.array(l)||re.plainObject(l))return QOt(l,c,o)}else return hs(c,o);return!1}return[s,a].every(re.array)?!c.every(R9(l)):[s,a].every(re.plainObject)?JOt(Object.keys(l),Object.keys(c)):![s,a].every(function(u){return re.primitive(u)&&re.defined(u)})&&(i==="added"?!re.defined(s)&&re.defined(a):re.defined(s)&&!re.defined(a))}function eie(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Nc(e,i),s=Nc(t,i);if(!uCe(o,s))throw new TypeError("Inputs have different types");if(!ZOt(o,s))throw new TypeError("Inputs don't have length");return[o,s].every(re.plainObject)&&(o=Object.keys(o),s=Object.keys(s)),[o,s]}function tie(e){return function(t){var n=t[0],r=t[1];return re.array(e)?hs(e,r)||e.some(function(i){return hs(i,r)||re.array(r)&&R9(r)(i)}):re.plainObject(e)&&e[n]?!!e[n]&&hs(e[n],r):hs(e,r)}}function JOt(e,t){return t.some(function(n){return!e.includes(n)})}function nie(e){return function(t){return re.array(e)?e.some(function(n){return hs(n,t)||re.array(t)&&R9(t)(n)}):hs(e,t)}}function Sw(e,t){return re.array(e)?e.some(function(n){return hs(n,t)}):hs(e,t)}function R9(e){return function(t){return e.some(function(n){return hs(n,t)})}}function uCe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(re.array)||e.every(re.number)||e.every(re.plainObject)||e.every(re.string)}function Nc(e,t){if(re.plainObject(e)||re.array(e)){if(re.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return re.number(t)?e[t]:e}return e}function ePt(e,t){if([e,t].some(re.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(d){return re.plainObject(d)||re.array(d)}))throw new Error("Expected plain objects or array");var n=function(d,f){try{return Jre(e,t,{key:d,type:"added",value:f})}catch{return!1}},r=function(d,f,h){try{var p=Nc(e,d),m=Nc(t,d),g=re.defined(f),v=re.defined(h);if(g||v){var b=v?Sw(h,p):!Sw(f,p),w=Sw(f,m);return b&&w}return[p,m].every(re.array)||[p,m].every(re.plainObject)?!hs(p,m):p!==m}catch{return!1}},i=function(d,f,h){if(!re.defined(d))return!1;try{var p=Nc(e,d),m=Nc(t,d),g=re.defined(h);return Sw(f,p)&&(g?Sw(h,m):!g)}catch{return!1}},o=function(d,f){return re.defined(d)?r(d,f):!1},s=function(d,f,h){if(!re.defined(d))return!1;try{return Qre(e,t,{key:d,actual:f,previous:h,type:"decreased"})}catch{return!1}},a=function(d){try{var f=eie(e,t,{key:d}),h=f[0],p=f[1];return!!h.length&&!p.length}catch{return!1}},l=function(d){try{var f=eie(e,t,{key:d}),h=f[0],p=f[1];return!h.length&&!!p.length}catch{return!1}},c=function(d,f,h){if(!re.defined(d))return!1;try{return Qre(e,t,{key:d,actual:f,previous:h,type:"increased"})}catch{return!1}},u=function(d,f){try{return Jre(e,t,{key:d,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:s,emptied:a,filled:l,increased:c,removed:u}}function rie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1044t%2?rie(Object(n),!0).forEach(function(r){fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tPt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fCe(r.key),r)}}function u_(e,t,n){return t&&tPt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fo(e,t,n){return t=fCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l4(e,t)}function VP(e){return VP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},VP(e)}function l4(e,t){return l4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},l4(e,t)}function nPt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rPt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function dCe(e,t){if(e==null)return{};var n=rPt(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ku(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iPt(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ku(e)}function f_(e){var t=nPt();return function(){var r=VP(e),i;if(t){var o=VP(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iPt(this,i)}}function oPt(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fCe(e){var t=oPt(e,"string");return typeof t=="symbol"?t:String(t)}var sPt={flip:{padding:20},preventOverflow:{padding:10}},aPt="The typeValidator argument must be a function with the signature function(props, propName, componentName).",lPt="The error message is optional, but must be a string if provided.";function cPt(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function uPt(e,t){return Object.hasOwnProperty.call(e,t)}function dPt(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function fPt(e,t){if(typeof e!="function")throw new TypeError(aPt);if(t&&typeof t!="string")throw new TypeError(lPt)}function iie(e,t,n){return fPt(e,n),function(r,i,o){for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];return cPt(t,r,i,o)?uPt(r,i)?e.apply(void 0,[r,i,o].concat(a)):dPt(r,i,o):e.apply(void 0,[r,i,o].concat(a))}}var Vt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},_w=Zv.createPortal!==void 0;function yc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function b$(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function lC(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,s=o===void 0?!1:o,a=i?console.warn||console.error:console.log;s&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;
1044"),Array.isArray(n)?n.forEach(function(l){re.plainObject(l)&&l.key?a.apply(console,[l.key,l.value]):a.apply(console,[l])}):a.apply(console,[n]),console.groupEnd())}function hPt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function pPt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function mPt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),pPt(e,t,i)},hPt(e,t,i,r)}function oie(){}var hCe=function(e){d_(n,e);var t=f_(n);function n(){return c_(this,n),t.apply(this,arguments)}return u_(n,[{key:"componentDidMount",value:function(){yc()&&(this.node||this.appendNode(),_w||this.renderPortal())}},{key:"componentDidUpdate",value:function(){yc()&&(_w||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!yc()||!this.node||(_w||Zv.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,s=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!yc())return null;var i=this.props,o=i.children,s=i.setRef;if(this.node||this.appendNode(),_w)return Zv.createPortal(o,this.node);var a=Zv.unstable_renderSubtreeIntoContainer(this,o.length>1?$.createElement("div",null,o):o[0],this.node);return s(a),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,s=i.placement,a=i.target;return o?this.renderPortal():a||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return _w?this.renderReact16():null}}]),n}($.Component);fo(hCe,"propTypes",{children:Ce.oneOfType([Ce.element,Ce.array]),hasChildren:Ce.bool,id:Ce.oneOfType([Ce.string,Ce.number]),placement:Ce.string,setRef:Ce.func.isRequired,target:Ce.oneOfType([Ce.object,Ce.string]),zIndex:Ce.number});var pCe=function(e){d_(n,e);var t=f_(n);function n(){return c_(this,n),t.apply(this,arguments)}return u_(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,s=i.styles,a=s.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=a):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=a):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,s=i.setArrowRef,a=i.styles,l=a.arrow,c=l.color,u=l.display,d=l.length,f=l.margin,h=l.position,p=l.spread,m={display:u,position:h},g,v=p,b=d;return o.startsWith("top")?(g="0,0 ".concat(v/2,",").concat(b," ").concat(v,",0"),m.bottom=0,m.marginLeft=f,m.marginRight=f):o.startsWith("bottom")?(g="".concat(v,",").concat(b," ").concat(v/2,",0 0,").concat(b),m.top=0,m.marginLeft=f,m.marginRight=f):o.startsWith("left")?(b=p,v=d,g="0,0 ".concat(v,",").concat(b/2," 0,").concat(b),m.right=0,m.marginTop=f,m.marginBottom=f):o.startsWith("right")&&(b=p,v=d,g="".concat(v,",").concat(b," ").concat(v,",0 0,").concat(b/2),m.left=0,m.marginTop=f,m.marginBottom=f),$.createElement("div",{className:"__floater__arrow",style:this.parentStyle},$.createElement("span",{ref:s,style:m},$.createElement("svg",{width:v,height:b,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$.createElement("polygon",{points:g,fill:c}))))}}]),n}($.Component);fo(pCe,"propTypes",{placement:Ce.string.isRequired,setArrowRef:Ce.func.isRequired,styles:Ce.object.isRequired});var gPt=["color","height","width"];function mCe(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,s=dCe(n,gPt);return $.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},$.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},$.createElement("g",null,$.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}
1044mCe.propTypes={handleClick:Ce.func.isRequired,styles:Ce.object.isRequired};function gCe(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,s=e.showCloseButton,a=e.title,l=e.styles,c={content:$.isValidElement(t)?t:$.createElement("div",{className:"__floater__content",style:l.content},t)};return a&&(c.title=$.isValidElement(a)?a:$.createElement("div",{className:"__floater__title",style:l.title},a)),n&&(c.footer=$.isValidElement(n)?n:$.createElement("div",{className:"__floater__footer",style:l.footer},n)),(s||o)&&!re.boolean(i)&&(c.close=$.createElement(mCe,{styles:l.close,handleClick:r})),$.createElement("div",{className:"__floater__container",style:l.container},c.close,c.title,c.content,c.footer)}gCe.propTypes={content:Ce.node.isRequired,footer:Ce.node,handleClick:Ce.func.isRequired,open:Ce.bool,positionWrapper:Ce.bool.isRequired,showCloseButton:Ce.bool.isRequired,styles:Ce.object.isRequired,title:Ce.node};var vCe=function(e){d_(n,e);var t=f_(n);function n(){return c_(this,n),t.apply(this,arguments)}return u_(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,s=i.component,a=i.placement,l=i.hideArrow,c=i.status,u=i.styles,d=u.arrow.length,f=u.floater,h=u.floaterCentered,p=u.floaterClosing,m=u.floaterOpening,g=u.floaterWithAnimation,v=u.floaterWithComponent,b={};return l||(a.startsWith("top")?b.padding="0 0 ".concat(d,"px"):a.startsWith("bottom")?b.padding="".concat(d,"px 0 0"):a.startsWith("left")?b.padding="0 ".concat(d,"px 0 0"):a.startsWith("right")&&(b.padding="0 0 0 ".concat(d,"px"))),[Vt.OPENING,Vt.OPEN].indexOf(c)!==-1&&(b=rr(rr({},b),m)),c===Vt.CLOSING&&(b=rr(rr({},b),p)),c===Vt.OPEN&&!o&&(b=rr(rr({},b),g)),a==="center"&&(b=rr(rr({},b),h)),s&&(b=rr(rr({},b),v)),rr(rr({},f),b)}},{key:"render",value:function(){var i=this.props,o=i.component,s=i.handleClick,a=i.hideArrow,l=i.setFloaterRef,c=i.status,u={},d=["__floater"];return o?$.isValidElement(o)?u.content=$.cloneElement(o,{closeFn:s}):u.content=o({closeFn:s}):u.content=$.createElement(gCe,this.props),c===Vt.OPEN&&d.push("__floater__open"),a||(u.arrow=$.createElement(pCe,this.props)),$.createElement("div",{ref:l,className:d.join(" "),style:this.style},$.createElement("div",{className:"__floater__body"},u.content,u.arrow))}}]),n}($.Component);fo(vCe,"propTypes",{component:Ce.oneOfType([Ce.func,Ce.element]),content:Ce.node,disableAnimation:Ce.bool.isRequired,footer:Ce.node,handleClick:Ce.func.isRequired,hideArrow:Ce.bool.isRequired,open:Ce.bool,placement:Ce.string.isRequired,positionWrapper:Ce.bool.isRequired,setArrowRef:Ce.func.isRequired,setFloaterRef:Ce.func.isRequired,showCloseButton:Ce.bool,status:Ce.string.isRequired,styles:Ce.object.isRequired,title:Ce.node});var yCe=function(e){d_(n,e);var t=f_(n);function n(){return c_(this,n),t.apply(this,arguments)}return u_(n,[{key:"render",value:function(){var i=this.props,o=i.children,s=i.handleClick,a=i.handleMouseEnter,l=i.handleMouseLeave,c=i.setChildRef,u=i.setWrapperRef,d=i.style,f=i.styles,h;if(o)if($.Children.count(o)===1)if(!$.isValidElement(o))h=$.createElement("span",null,o);else{var p=re.function(o.type)?"innerRef":"ref";h=$.cloneElement($.Children.only(o),fo({},p,c))}else h=o;return h?$.createElement("span",{ref:u,style:rr(rr({},f),d),onClick:s,onMouseEnter:a,onMouseLeave:l},h):null}}]),n}($.Component);fo(yCe,"propTypes",{children:Ce.node,handleClick:Ce.func.isRequired,handleMouseEnter:Ce.func.isRequired,handleMouseLeave:Ce.func.isRequired,setChildRef:Ce.func.isRequired,setWrapperRef:Ce.func.isRequired,style:Ce.object,styles:Ce.object.isRequired});var vPt={zIndex:100};function yPt(e){var t=_l(vPt,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var bPt=["arrow","flip","offset"],wPt=["position","top","right","bottom","left"],M9=function(e){d_(n,e);var t=f_(n);function n(r){var i;return c_(this,n),i=t.call(this,r),fo(ku(i),"setArrowRef",function(o){i.arrowRef=o}),fo(ku(i),"setChildRef",function(o){i.childRef=o}),fo(ku(i),"setFloaterRef",function(o){i.floaterRef=o}),fo(ku(i),"setWrapperRef",function(o){i.wrapperRef=o}),fo(ku(i),"handleTransitionEnd",function(){var o=i.state.status,s=i.props.callback;
1044i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===Vt.OPENING?Vt.OPEN:Vt.IDLE},function(){var a=i.state.status;s(a===Vt.OPEN?"open":"close",i.props)})}),fo(ku(i),"handleClick",function(){var o=i.props,s=o.event,a=o.open;if(!re.boolean(a)){var l=i.state,c=l.positionWrapper,u=l.status;(i.event==="click"||i.event==="hover"&&c)&&(lC({title:"click",data:[{event:s,status:u===Vt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),fo(ku(i),"handleMouseEnter",function(){var o=i.props,s=o.event,a=o.open;if(!(re.boolean(a)||b$())){var l=i.state.status;i.event==="hover"&&l===Vt.IDLE&&(lC({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),fo(ku(i),"handleMouseLeave",function(){var o=i.props,s=o.event,a=o.eventDelay,l=o.open;if(!(re.boolean(l)||b$())){var c=i.state,u=c.status,d=c.positionWrapper;i.event==="hover"&&(lC({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),a?[Vt.OPENING,Vt.OPEN].indexOf(u)!==-1&&!d&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},a*1e3)):i.toggle(Vt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Vt.INIT,statusWrapper:Vt.INIT},i._isMounted=!1,i.hasMounted=!1,yc()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return u_(n,[{key:"componentDidMount",value:function(){if(yc()){var i=this.state.positionWrapper,o=this.props,s=o.children,a=o.open,l=o.target;this._isMounted=!0,lC({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:re.boolean(a),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&re.boolean(a)}}},{key:"componentDidUpdate",value:function(i,o){if(yc()){var s=this.props,a=s.autoOpen,l=s.open,c=s.target,u=s.wrapperOptions,d=ePt(o,this.state),f=d.changedFrom,h=d.changed;if(i.open!==l){var p;re.boolean(l)&&(p=l?Vt.OPENING:Vt.CLOSING),this.toggle(p)}(i.wrapperOptions.position!==u.position||i.target!==c)&&this.changeWrapperPosition(this.props),h("status",Vt.IDLE)&&l?this.toggle(Vt.OPEN):f("status",Vt.INIT,Vt.IDLE)&&a&&this.toggle(Vt.OPEN),this.popper&&h("status",Vt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(h("status",Vt.OPENING)||h("status",Vt.CLOSING))&&mPt(this.floaterRef,"transitionend",this.handleTransitionEnd),h("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){yc()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,a=this.props,l=a.disableFlip,c=a.getPopper,u=a.hideArrow,d=a.offset,f=a.placement,h=a.wrapperOptions,p=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:Vt.IDLE});else if(o&&this.floaterRef){var m=this.options,g=m.arrow,v=m.flip,b=m.offset,w=dCe(m,bPt);
1044new _1(o,this.floaterRef,{placement:f,modifiers:rr({arrow:rr({enabled:!u,element:this.arrowRef},g),flip:rr({enabled:!l,behavior:p},v),offset:rr({offset:"0, ".concat(d,"px")},b)},w),onCreate:function(S){var _;if(i.popper=S,!((_=i.floaterRef)!==null&&_!==void 0&&_.isConnected)){i.setState({needsUpdate:!0});return}c(S,"floater"),i._isMounted&&i.setState({currentPlacement:S.placement,status:Vt.IDLE}),f!==S.placement&&setTimeout(function(){S.instance.update()},1)},onUpdate:function(S){i.popper=S;var _=i.state.currentPlacement;i._isMounted&&S.placement!==_&&i.setState({currentPlacement:S.placement})}})}if(s){var x=re.undefined(h.offset)?0:h.offset;new _1(this.target,this.wrapperRef,{placement:h.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(x,"px")},flip:{enabled:!1}},onCreate:function(S){i.wrapperPopper=S,i._isMounted&&i.setState({statusWrapper:Vt.IDLE}),c(S,"wrapper"),f!==S.placement&&setTimeout(function(){S.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,s=i.wrapperOptions;this.setState({positionWrapper:s.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,s=o===Vt.OPEN?Vt.CLOSING:Vt.OPENING;re.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||yc()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,s=i.event;return s==="hover"&&b$()&&!o?"click":s}},{key:"options",get:function(){var i=this.props.options;return _l(sPt,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,s=o.status,a=o.positionWrapper,l=o.statusWrapper,c=this.props.styles,u=_l(yPt(c),c);if(a){var d;[Vt.IDLE].indexOf(s)===-1||[Vt.IDLE].indexOf(l)===-1?d=u.wrapperPosition:d=this.wrapperPopper.styles,u.wrapper=rr(rr({},u.wrapper),d)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?u.wrapper=rr(rr({},u.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},a||(wPt.forEach(function(h){i.wrapperStyles[h]=f[h]}),u.wrapper=rr(rr({},u.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return u}},{key:"target",get:function(){if(!yc())return null;var i=this.props.target;return i?re.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,s=i.positionWrapper,a=i.status,l=this.props,c=l.children,u=l.component,d=l.content,f=l.disableAnimation,h=l.footer,p=l.hideArrow,m=l.id,g=l.open,v=l.showCloseButton,b=l.style,w=l.target,x=l.title,E=$.createElement(yCe,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:b,styles:this.styles.wrapper},c),S={};return s?S.wrapperInPortal=E:S.wrapperAsChildren=E,$.createElement("span",null,$.createElement(hCe,{hasChildren:!!c,id:m,placement:o,setRef:this.setFloaterRef,target:w,zIndex:this.styles.options.zIndex},$.createElement(vCe,{component:u,content:d,disableAnimation:f,footer:h,handleClick:this.handleClick,hideArrow:p||o==="center",open:g,placement:o,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:v,status:a,styles:this.styles,title:x}),S.wrapperInPortal),S.wrapperAsChildren)}}]),n}($.Component);fo(M9,"propTypes",{autoOpen:Ce.bool,callback:Ce.func,children:Ce.node,component:iie(Ce.oneOfType([Ce.func,Ce.element]),function(e){return!e.content}),content:iie(Ce.node,function(e){return!e.component}),debug:Ce.bool,disableAnimation:Ce.bool,disableFlip:Ce.bool,disableHoverToClick:Ce.bool,event:Ce.oneOf(["hover","click"]),eventDelay:Ce.number,footer:Ce.node,getPopper:Ce.func,hideArrow:Ce.bool,id:Ce.oneOfType([Ce.string,Ce.number]),offset:Ce.number,open:Ce.bool,options:Ce.object,placement:Ce.oneOf(["top","top-start","to
1044p-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Ce.bool,style:Ce.object,styles:Ce.object,target:Ce.oneOfType([Ce.object,Ce.string]),title:Ce.node,wrapperOptions:Ce.shape({offset:Ce.number,placement:Ce.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Ce.bool})});fo(M9,"defaultProps",{autoOpen:!1,callback:oie,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:oie,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var xPt=Object.defineProperty,EPt=(e,t,n)=>t in e?xPt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ye=(e,t,n)=>EPt(e,typeof t!="symbol"?t+"":t,n),cn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},hl={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Et={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},$t={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function gf(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function bCe(e){return e?e.getBoundingClientRect():null}function SPt(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,s)=>o-s),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function ed(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function _Pt(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function k1(e,t,n){if(!e)return qp();const r=Kke(e);if(r){if(r.isSameNode(qp()))return n?document:qp();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",qp()}return r}function jN(e,t){if(!e)return!1;const n=k1(e,t);return n?!n.isSameNode(qp()):!1}function kPt(e){return e.offsetParent!==document.body}function wb(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=_Pt(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?wb(e.parentNode,t):!1}function CPt(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function TPt(e,t,n){var r,i,o;const s=bCe(e),a=k1(e,n),l=jN(e,n),c=wb(e);let u=0,d=(r=s==null?void 0:s.top)!=null?r:0;if(l&&c){const f=(i=e==null?void 0:e.offsetTop)!=null?i:0,h=(o=a==null?void 0:a.scrollTop)!=null?o:0;d=f-h}else a instanceof HTMLElement&&(u=a.scrollTop,!l&&!wb(e)&&(d+=u),a.isSameNode(qp())||(d+=qp().scrollTop));return Math.floor(d-t)}function APt(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=Kke(e))!=null?r:{};let s=e.getBoundingClientRect().top+o;i&&(jN(e,n)||kPt(e))&&(s-=i);const a=Math.floor(s-t);return a<0?0:a}function qp(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function OPt(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:s}=r,a=e>s?e-s:s-e;$At.top(r,e,{duration:a<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var kw=pr.createPortal!==void 0;function wCe(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function VT(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function bc(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=Vre(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(y.isValidElement(e)&&!Object.values(e.props).length&&VT(e.type)==="function"){const s=e.type({});o=bc(s,t)}else o=Vre(n);return o}function PPt(e,t){return!Ke.plainObject(e)||!Ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function IPt(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,s,a)=>o+o+s+s+a+a),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function sie(e){return e.disableBeacon||e.placement==="center"}function aie(){return!["chrome","safari","firefox","opera"].includes(wCe())}function eg({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{Ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function RPt(e){return Object.keys(e)}function xCe(e,...t){if(!Ke.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function MPt(e,...t){if(!Ke.plainObject(e))throw new TypeError("Expected an object");
1044if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function c4(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(VT(e)==="string")return r(e);if(!y.isValidElement(e))return e;const{children:i}=e.props;if(VT(i)==="string"&&i.includes("{step}"))return y.cloneElement(e,{children:r(i)});if(Array.isArray(i))return y.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):c4(o,t,n))});if(VT(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return c4(o,t,n)}return e}function NPt(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:s}=e;return!o.disableScrolling&&(!t||i||n===Et.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!wb(s))&&r!==n&&[Et.BEACON,Et.TOOLTIP].includes(n)}var DPt={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},ECe={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},LPt={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:ECe,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},$Pt={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},FPt={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Cw={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},lie={borderRadius:4,position:"absolute"};function BPt(e,t){var n,r,i,o,s;const{floaterProps:a,styles:l}=e,c=_l((n=t.floaterProps)!=null?n:{},a??{}),u=_l(l??{},(r=t.styles)!=null?r:{}),d=_l(FPt,u.options||{}),f=t.placement==="center"||t.disableBeacon;let{width:h}=d;window.innerWidth>480&&(h=380),"width"in d&&(h=typeof d.width=="number"&&window.innerWidth<d.width?window.innerWidth-30:d.width);const p={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:d.zIndex},m={beacon:{...Cw,display:f?"none":"inline-block",height:d.beaconSize,position:"relative",width:d.beaconSize,zIndex:d.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:d.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${IPt(d.primaryColor).join(",")}, 0.2)`,border:`2px solid ${d.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:d.backgroundColor,borderRadius:5,boxSizing:"border-box",color:d.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:h},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Cw,backgroundColor:d.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Cw,color:d.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Cw,color:d.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Cw,color:d.textColor,fontSize:14},overlay:{...p,backgroundColor:d.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...p},overlayLegacyCenter:{...p,backgroundColor:d.overlayColor},spotlight:{...lie,backgroundColor:"gray"},spotlightLegacy:{...lie,boxShadow:`0 0 0 9999px ${d.overlayColor}, ${d.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(o=(i=c==null?void 0:c.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?s:d.arrowColor},options:{zIndex:d.zIndex+100}},options:d};return _l(m,u)}function jPt(e){return MPt(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function iv(e,t){var n,r,i,o,s,a;const l=t??{},c=_l.all([LPt,jPt(e),l],{isMergeableObject:Ke.plainObject}),u=BPt(e,c),d=jN(ed(c.target),c.disableScrollParentFix),f=_l.all([DPt,(n=e.floaterProps)!=null?n:{},(r=c.floaterProps)!=null?r:{}]);return f.offset=c.offset,f.styles=_l((i=f.styles)!=null?i:{},u.floaterStyles),f.offset+=(s=(o=e.spotlightPadding)!=null?o:c.spotlightPadding)!=null?s:0,c.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=c.placementBeacon),d&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...c,locale:_l.all([ECe,(a=e.locale)!=null?a:{},c.locale||{}]),floaterProps:f,styles:xCe(u,"floaterStyles")}}function SCe(e,t=!1){return Ke.plainObject(e)?e.target?!0:(eg({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(eg({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function cie(e,t=!1){return Ke.array(e)?e.every(n=>SCe(n,t)):(eg({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var _Ce={action:"init",controlled:!1,index:0,lifecycle:Et.INIT,origin:null,size:0,status:$t.IDLE},uie=RPt(xCe(_Ce,"controlled","size")),zPt=class{constructor(e){Ye(this,"beaconPopper"),Ye(this,"tooltipPopper"),Ye(this,"data",new Map),Ye(this,"listener"),Ye(this,"store",new Map),Ye(this,"addListener",i=>{this.listener=i}),Ye(this,"setSteps",i=>{const{size:o,status:s}=this.getState(),a={size:i.length,status:s};this.data.set("steps",i),s===$t.WAITING&&!o&&i.length&&(a.status=$t.RUNNING),this.setState(a)}),Ye(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Ye(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Ye(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Ye(this,"close",(i=null)=>{const{index:o,status:s}=this.getState();s===$t.RUNNING&&this.setState({...this.getNextState({action:cn.CLOSE,index:o+1,origin:i})})}),Ye(this,"go",i=>{const{controlled:o,status:s}=this.getState();if(o||s!==$t.RUNNING)return;const a=this.getSteps()[i];this.setState({...this.getNextState({action:cn.GO,index:i}),status:a?s:$t.FINISHED})}),Ye(this,"info",()=>this.getState()),Ye(this,"next",()=>{const{index:i,status:o}=this.getState();o===$t.RUNNING&&this.setState(this.getNextState({action:cn.NEXT,index:i+1}))}),Ye(this,"open",()=>{const{status:i}=this.getState();i===$t.RUNNING&&this.setState({...this.getNextState({action:cn.UPDATE,lifecycle:Et.TOOLTIP})})}),Ye(this,"prev",()=>{const{index:i,status:o}=this.getState();o===$t.RUNNING&&this.setState({...this.getNextState({action:cn.PREV,index:i-1})})}),Ye(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:cn.RESET,index:0}),status:i?$t.RUNNING:$t.READY})}),Ye(this,"skip",()=>{const{status:i}=this.getState();i===$t.RUNNING&&this.setState({action:cn.SKIP,lifecycle:Et.INIT,status:$t.SKIPPED})}),Ye(this,"start",i=>{const{index:o,size:s}=this.getState();this.setState({...this.getNextState({action:cn.START,index:Ke.number(i)?i:o},!0),status:s?$t.RUNNING:$t.WAITING})}),Ye(this,"stop",(i=!1)=>{const{index:o,status:s}=this.getState();[$t.FINISHED,$t.SKIPPED].includes(s)||this.setState({...this.getNextState({action:cn.STOP,index:o+(i?1:0)}),status:$t.PAUSED})}),Ye(this,"update",i=>{var o,s;
1044if(!PPt(i,uie))throw new Error(`State is not valid. Valid keys: ${uie.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:cn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:cn.INIT,controlled:Ke.number(n),continuous:t,index:Ke.number(n)?n:0,lifecycle:Et.INIT,origin:null,status:r.length?$t.READY:$t.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{..._Ce}}getNextState(e,t=!1){var n,r,i,o,s;const{action:a,controlled:l,index:c,size:u,status:d}=this.getState(),f=Ke.number(e.index)?e.index:c,h=l&&!t?c:Math.min(Math.max(f,0),u);return{action:(n=e.action)!=null?n:a,controlled:l,index:h,lifecycle:(r=e.lifecycle)!=null?r:Et.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:u,status:h===u?$t.FINISHED:(s=e.status)!=null?s:d}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:s=null,size:a,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",s),this.store.set("size",a),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function UPt(e){return new zPt(e)}function VPt({styles:e}){return y.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var WPt=VPt,HPt=class extends y.Component{constructor(){super(...arguments),Ye(this,"isActive",!1),Ye(this,"resizeTimeout"),Ye(this,"scrollTimeout"),Ye(this,"scrollParent"),Ye(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Ye(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Et.INIT,Et.BEACON,Et.COMPLETE,Et.ERROR];return t||(e?r.includes(n):n!==Et.TOOLTIP)}),Ye(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:s}=this.spotlightStyles,a=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,c=a>=o&&a<=o+n,d=l>=r&&l<=r+s&&c;d!==t&&this.updateState({mouseOverSpotlight:d})}),Ye(this,"handleScroll",()=>{const{target:e}=this.props,t=ed(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else wb(t,"sticky")&&this.updateState({})}),Ye(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=ed(r);this.scrollParent=k1(i??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:s}=jP(e,this.props);if(s("target")||s("disableScrollParentFix")){const a=ed(o);this.scrollParent=k1(a??document.body,n,!0)}s("lifecycle",Et.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:a}=this.state;a||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===Et.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Et.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}
1044get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return aie()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:SPt(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:s=0,styles:a,target:l}=this.props,c=ed(l),u=bCe(c),d=wb(c),f=TPt(c,s,i);return{...aie()?a.spotlightLegacy:a.spotlight,height:Math.round(((e=u==null?void 0:u.height)!=null?e:0)+s*2),left:Math.round(((t=u==null?void 0:u.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:o?"none":"auto",position:d?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round(((n=u==null?void 0:u.width)!=null?n:0)+s*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let s=n!=="center"&&e&&y.createElement(WPt,{styles:o});if(wCe()==="safari"){const{mixBlendMode:a,zIndex:l,...c}=i;s=y.createElement("div",{style:{...c}},s),delete i.backgroundColor}return y.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},KPt=class extends y.Component{constructor(){super(...arguments),Ye(this,"node",null)}componentDidMount(){const{id:e}=this.props;gf()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),kw||this.renderReact15())}componentDidUpdate(){gf()&&(kw||this.renderReact15())}componentWillUnmount(){!gf()||!this.node||(kw||pr.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!gf())return;const{children:e}=this.props;this.node&&pr.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!gf()||!kw)return null;const{children:e}=this.props;return this.node?pr.createPortal(e,this.node):null}render(){return kw?this.renderReact16():null}},qPt=class{constructor(e,t){if(Ye(this,"element"),Ye(this,"options"),Ye(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Ye(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),Ye(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Ye(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Ye(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Ye(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),Ye(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),Ye(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Ye(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Ye(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},GPt=class extends y.Component{constructor(e){if(super(e),Ye(this,"beacon",null),Ye(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(` 1045 @keyframes joyride-beacon-inner { 1046 20% { 1047 opacity: 0.9; 1048 } 1049 1050 90% { 1051 opacity: 0.7; 1052 } 1053 } 1054 1055 @keyframes joyride-beacon-outer { 1056 0% { 1057 transform: scale(1); 1058 } 1059 1060 45% { 1061 opacity: 0.7; 1062 transform: scale(0.75); 1063 } 1064 1065 100% { 1066 opacity: 0.9; 1067 transform: scale(1); 1068 } 1069 } 1070 `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{Ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:s,step:a,styles:l}=this.props,c=bc(i.open),u={"aria-label":c,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:c};let d;if(e){const f=e;d=y.createElement(f,{continuous:t,index:n,isLastStep:r,size:s,step:a,...u})}else d=y.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...u},y.createElement("span",{style:l.beaconInner}),y.createElement("span",{style:l.beaconOuter}));return d}};function YPt({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return $.createElement("button",{style:o,type:"button",...t},$.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},$.createElement("g",null,$.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var XPt=YPt;function ZPt(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:s,step:a,tooltipProps:l}=e,{content:c,hideBackButton:u,hideCloseButton:d,hideFooter:f,showSkipButton:h,styles:p,title:m}=a,g={};return g.primary=y.createElement("button",{"data-test-id":"button-primary",style:p.buttonNext,type:"button",...o}),h&&!i&&(g.skip=y.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:p.buttonSkip,type:"button",...s})),!u&&r>0&&(g.back=y.createElement("button",{"data-test-id":"button-back",style:p.buttonBack,type:"button",...t})),g.close=!d&&y.createElement(XPt,{"data-test-id":"button-close",styles:p.buttonClose,...n}),y.createElement("div",{key:"JoyrideTooltip","aria-label":bc(m??c),className:"react-joyride__tooltip",style:p.tooltip,...l},y.createElement("div",{style:p.tooltipContainer},m&&y.createElement("h1",{"aria-label":bc(m),style:p.tooltipTitle},m),y.createElement("div",{style:p.tooltipContent},c)),!f&&y.createElement("div",{style:p.tooltipFooter},y.createElement("div",{style:p.tooltipFooterSpacer},g.skip),g.back,g.primary),g.close)}
1070var QPt=ZPt,JPt=class extends y.Component{constructor(){super(...arguments),Ye(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Ye(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Ye(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Ye(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Ye(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:s,close:a,last:l,next:c,nextLabelWithProgress:u,skip:d}=o.locale,f=bc(s),h=bc(a),p=bc(l),m=bc(c),g=bc(d);let v=a,b=h;if(e){if(v=c,b=m,o.showProgress&&!n){const w=bc(u,{step:t+1,steps:i});v=c4(u,t+1,i),b=w}n&&(v=l,b=p)}return{backProps:{"aria-label":f,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":h,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:h},primaryProps:{"aria-label":b,children:v,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:b},skipProps:{"aria-label":g,children:d,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:g},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:s,tooltipComponent:a,...l}=o;let c;if(a){const u={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},d=a;c=y.createElement(d,{...u})}else c=y.createElement(QPt,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return c}},eIt=class extends y.Component{constructor(){super(...arguments),Ye(this,"scope",null),Ye(this,"tooltip",null),Ye(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Et.TOOLTIP})}),Ye(this,"setTooltipRef",e=>{this.tooltip=e}),Ye(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||o.placement==="center")&&i===Et.INIT&&s.update({action:r,lifecycle:Et.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Ye(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return y.createElement(JPt,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;eg({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:s,helpers:a,index:l,lifecycle:c,shouldScroll:u,status:d,step:f,store:h}=this.props,{changed:p,changedFrom:m}=jP(e,this.props),g=a.info(),v=i&&n!==cn.CLOSE&&(l>0||n===cn.PREV),b=p("action")||p("index")||p("lifecycle")||p("status"),w=m("lifecycle",[Et.TOOLTIP,Et.INIT],Et.INIT),x=p("action",[cn.NEXT,cn.PREV,cn.SKIP,cn.CLOSE]),E=o&&l===e.index;if(x&&(w||E)&&r({...g,index:e.index,lifecycle:Et.COMPLETE,step:e.step,type:hl.STEP_AFTER}),f.placement==="center"&&d===$t.RUNNING&&p("index")&&n!==cn.START&&c===Et.INIT&&h.update({lifecycle:Et.READY}),b){const S=ed(f.target),_=!!S;_&&CPt(S)?(m("status",$t.READY,$t.RUNNING)||m("lifecycle",Et.INIT,Et.READY))&&r({...g,step:f,type:hl.STEP_BEFORE}):(console.warn(_?"Target not visible":"Target not mounted",f),r({...g,type:hl.TARGET_NOT_FOUND,step:f}),o||h.update({index:l+(n===cn.PREV?-1:1)}))}m("lifecycle",Et.INIT,Et.READY)&&h.update({lifecycle:sie(f)||v?Et.TOOLTIP:Et.BEACON}),p("index")&&eg({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:s}),p("lifecycle",Et.BEACON)&&r({...g,step:f,type:hl.BEACON}),p("lifecycle",Et.TOOLTIP)&&(r({...g,step:f,type:hl.TOOLTIP}),u&&this.tooltip&&(this.scope=new qPt(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),m("lifecycle",[Et.TOOLTIP,Et.INIT],Et.INIT)&&((t=this.scope)==null||t.removeScope(),h.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return sie(t)||e===Et.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:s}=this.props,a=ed(s.target);return!SCe(s)||!Ke.domElement(a)?null:y.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},y.createElement(M9,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},y.createElement(GPt,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:s,styles:s.styles})))}},kCe=class extends y.Component{constructor(e){super(e),Ye(this,"helpers"),Ye(this,"store"),Ye(this,"callback",s=>{const{callback:a}=this.props;Ke.function(a)&&a(s)}),Ye(this,"handleKeyboard",s=>{const{index:a,lifecycle:l}=this.state,{steps:c}=this.props,u=c[a];l===Et.TOOLTIP&&s.code==="Escape"&&u&&!u.disableCloseOnEsc&&this.store.close("keyboard")}),Ye(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:a}=this.props;iv(this.props,a[s]).disableOverlayClose||this.helpers.close("overlay")}),Ye(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=UPt({...e,controlled:r&&Ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;eg({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!gf())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;cie(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!gf())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:s,run:a,stepIndex:l,steps:c}=this.props,{stepIndex:u,steps:d}=e,{reset:f,setSteps:h,start:p,stop:m,update:g}=this.store,{changed:v}=jP(e,this.props),{changed:b,changedFrom:w}=jP(t,this.state),x=iv(this.props,c[i]),E=!Fo(d,c),S=Ke.number(l)&&v("stepIndex"),_=ed(x.target);if(E&&(cie(c,s)?h(c):console.warn("Steps are not valid",c)),v("run")&&(a?p(l):m()),S){let T=Ke.number(u)&&u<l?cn.NEXT:cn.PREV;n===cn.STOP&&(T=cn.START),[$t.FINISHED,$t.SKIPPED].includes(o)||g({action:n===cn.CLOSE?cn.CLOSE:T,index:l,lifecycle:Et.INIT})}!r&&o===$t.RUNNING&&i===0&&!_&&(this.store.update({index:i+1}),this.callback({...this.state,type:hl.TARGET_NOT_FOUND,step:x}));const k={...this.state,index:i,step:x};if(b("action",[cn.NEXT,cn.PREV,cn.SKIP,cn.CLOSE])&&b("status",$t.PAUSED)){const T=iv(this.props,c[t.index]);this.callback({...k,index:t.index,lifecycle:Et.COMPLETE,step:T,type:hl.STEP_AFTER})}if(b("status",[$t.FINISHED,$t.SKIPPED])){const T=iv(this.props,c[t.index]);r||this.callback({...k,index:t.index,lifecycle:Et.COMPLETE,step:T,type:hl.STEP_AFTER}),this.callback({...k,type:hl.TOUR_END,step:T,index:t.index}),f()}else w("status",[$t.IDLE,$t.READY],$t.RUNNING)?this.callback({...k,type:hl.TOUR_START}):(b("status")||b("action",cn.RESET))&&this.callback({...k,type:hl.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=iv(this.props,c[t]),d=ed(u.target),f=NPt({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:u,target:d});if(r===$t.RUNNING&&f){const h=jN(d,o),p=k1(d,o);let m=Math.floor(APt(d,a,o))||0;eg({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const g=this.store.getPopper("beacon"),v=this.store.getPopper("tooltip");if(n===Et.BEACON&&g){const{offsets:b,placement:w}=g;!["bottom"].includes(w)&&!h&&(m=Math.floor(b.popper.top-a))}else if(n===Et.TOOLTIP&&v){const{flipped:b,offsets:w,placement:x}=v;["top","right","left"].includes(x)&&!b&&!h?m=Math.floor(w.popper.top-a):m-=u.spotlightPadding}m=m>=0?m:0,r===$t.RUNNING&&OPt(m,{element:p,duration:s}).then(()=>{setTimeout(()=>{var b;
1070(b=this.store.getPopper("tooltip"))==null||b.instance.update()},10)})}}render(){if(!gf())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:s=!1,steps:a}=this.props,l=n===$t.RUNNING,c={};if(l&&a[e]){const u=iv(this.props,a[e]);c.step=y.createElement(eIt,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!u.disableScrolling&&(e!==0||s),step:u,store:this.store}),c.overlay=y.createElement(KPt,{id:"react-joyride-portal"},y.createElement(HPt,{...u,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return y.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};Ye(kCe,"defaultProps",$Pt);var ain=kCe;function tIt(e){const t=nIt(e),n=y.forwardRef((r,i)=>{const{children:o,...s}=r,a=y.Children.toArray(o),l=a.find(iIt);if(l){const c=l.props.children,u=a.map(d=>d===l?y.Children.count(c)>1?y.Children.only(null):y.isValidElement(c)?c.props.children:null:d);return D.jsx(t,{...s,ref:i,children:y.isValidElement(c)?y.cloneElement(c,void 0,u):null})}return D.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function nIt(e){const t=y.forwardRef((n,r)=>{const{children:i,...o}=n;if(y.isValidElement(i)){const s=sIt(i),a=oIt(o,i.props);return i.type!==y.Fragment&&(a.ref=r?lu(r,s):s),y.cloneElement(i,a)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rIt=Symbol("radix.slottable");function iIt(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rIt}function oIt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function sIt(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zN="Popover",[CCe]=Ri(zN,[Fh]),h_=Fh(),[aIt,Gh]=CCe(zN),TCe=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=h_(t),l=y.useRef(null),[c,u]=y.useState(!1),[d,f]=Wo({prop:r,defaultProp:i??!1,onChange:o,caller:zN});return D.jsx(GR,{...a,children:D.jsx(aIt,{scope:t,contentId:ys(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:s,children:n})})};TCe.displayName=zN;var ACe="PopoverAnchor",lIt=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Gh(ACe,n),o=h_(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return y.useEffect(()=>(s(),()=>a()),[s,a]),D.jsx(yS,{...o,...r,ref:t})});lIt.displayName=ACe;var OCe="PopoverTrigger",PCe=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Gh(OCe,n),o=h_(n),s=xt(t,i.triggerRef),a=D.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":DCe(i.open),...r,ref:s,onClick:Ee(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?a:D.jsx(yS,{asChild:!0,...o,children:a})});PCe.displayName=OCe;var N9="PopoverPortal",[cIt,uIt]=CCe(N9,{forceMount:void 0}),ICe=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=Gh(N9,t);return D.jsx(cIt,{scope:t,forceMount:n,children:D.jsx(no,{present:n||o.open,children:D.jsx(mg,{asChild:!0,container:i,children:r})})})};ICe.displayName=N9;var xb="PopoverContent",RCe=y.forwardRef((e,t)=>{const n=uIt(xb,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=Gh(xb,e.__scopePopover);return D.jsx(no,{present:r||o.open,children:o.modal?D.jsx(fIt,{...i,ref:t}):D.jsx(hIt,{...i,ref:t})})});RCe.displayName=xb;var dIt=tIt("PopoverContent.RemoveScroll"),fIt=y.forwardRef((e,t)=>{const n=Gh(xb,e.__scopePopover),r=y.useRef(null),i=xt(t,r),o=y.useRef(!1);return y.useEffect(()=>{const s=r.current;if(s)return zR(s)},[]),D.jsx(gS,{as:dIt,allowPinchZoom:!0,children:D.jsx(MCe,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),hIt=y.forwardRef((e,t)=>
1070{const n=Gh(xb,e.__scopePopover),r=y.useRef(!1),i=y.useRef(!1);return D.jsx(MCe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),MCe=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Gh(xb,n),h=h_(n);return BR(),D.jsx(mS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:D.jsx(pg,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:D.jsx(YR,{"data-state":DCe(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.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)"}})})})}),NCe="PopoverClose",pIt=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Gh(NCe,n);return D.jsx(Qe.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))})});pIt.displayName=NCe;var mIt="PopoverArrow",gIt=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=h_(n);return D.jsx(XR,{...i,...r,ref:t})});gIt.displayName=mIt;function DCe(e){return e?"open":"closed"}var lin=TCe,cin=PCe,uin=ICe,din=RCe,UN="Checkbox",[vIt]=Ri(UN),[yIt,D9]=vIt(UN);function bIt(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:o,form:s,name:a,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[f,h]=Wo({prop:n,defaultProp:i??!1,onChange:l,caller:UN}),[p,m]=y.useState(null),[g,v]=y.useState(null),b=y.useRef(!1),w=p?!!s||!!p.closest("form"):!0,x={checked:f,disabled:o,setChecked:h,control:p,setControl:m,name:a,form:s,value:u,hasConsumerStoppedPropagationRef:b,required:c,defaultChecked:ih(i)?!1:i,isFormControl:w,bubbleInput:g,setBubbleInput:v};return D.jsx(yIt,{scope:t,...x,children:EIt(d)?d(x):r})}var LCe="CheckboxTrigger",$Ce=y.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{const{control:o,value:s,disabled:a,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:h,bubbleInput:p}=D9(LCe,e),m=xt(i,u),g=y.useRef(l);return y.useEffect(()=>{const v=o==null?void 0:o.form;if(v){const b=()=>d(g.current);return v.addEventListener("reset",b),()=>v.removeEventListener("reset",b)}},[o,d]),D.jsx(Qe.button,{type:"button",role:"checkbox","aria-checked":ih(l)?"mixed":l,"aria-required":c,"data-state":zCe(l),"data-disabled":a?"":void 0,disabled:a,value:s,...r,ref:m,onKeyDown:Ee(t,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:Ee(n,v=>{d(b=>ih(b)?!0:!b),p&&h&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});$Ce.displayName=LCe;var wIt=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:a,value:l,onCheckedChange:c,form:u,...d}=e;return D.jsx(bIt,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:a,required:s,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>D.jsxs(D.Fragment,{children:[D.jsx($Ce,{...d,ref:t,__scopeCheckbox:n}),f&&D.jsx(jCe,{__scopeCheckbox:n})]})})});wIt.displayName=UN;var FCe="CheckboxIndicator",xIt=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=D9(FCe,n);return D.jsx(no,{present:r||ih(o.checked)||o.checked===!0,children:D.jsx(Qe.span,{"data-state":zCe(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});xIt.displayName=FCe;var BCe="CheckboxBubbleInput",jCe=y.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:o,defaultChecked:s,required:a,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:h}=D9(BCe,e),p=xt(n,h),m=ON(o),g=qR(r);y.useEffect(()=>{const b=f;if(!b)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,S=!i.current;if(m!==o&&E){const _=new Event("click",{bubbles:S});b.indeterminate=ih(o),E.call(b,ih(o)?!1:o),b.dispatchEvent(_)}},[f,m,o,i]);const v=y.useRef(ih(o)?!1:o);return D.jsx(Qe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??v.current,required:a,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:p,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});jCe.displayName=BCe;function EIt(e){return typeof e=="function"}function ih(e){return e==="indeterminate"}function zCe(e){return ih(e)?"indeterminate":e?"checked":"unchecked"}const SIt=$.createContext(void 0);function Xa(e){const{displayName:t,type:n}=e,r=$.forwardRef(({variant:i,...o},s)=>{var l;const a=(l=$.useContext(SIt))==null?void 0:l[t];return a?$.createElement(a,{...o,ref:s,variant:i}):$.createElement(n,{...o,ref:s})});return r.displayName=t,r}function an(e,t){const n=$.forwardRef((r,i)=>$.createElement(e,{...typeof t=="function"?t(r):t,...r,ref:i}));return n.displayName=e.displayName,n}
1070const UCe=$.createContext(void 0),_It=({children:e,aiContext:t})=>$.createElement(UCe.Provider,{value:t},e),L9=$.createContext(void 0),kIt=({children:e,actions:t})=>$.createElement(L9.Provider,{value:t},e),VN=$.createContext(void 0),CIt=({children:e,avatars:t})=>$.createElement(VN.Provider,{value:t},e),Yh=$.createContext({}),TIt=({children:e})=>{const[t,n]=$.useState(),[r,i]=$.useState(),o=$.useMemo(()=>({input:t,setInput:n,error:r,setError:i}),[t,n,r,i]);return $.createElement(Yh.Provider,{value:o},e)},WN=$.createContext(void 0),x0=$.createContext(void 0),AIt=({children:e,messages:t})=>$.createElement(WN.Provider,{value:t},e),$9=$.createContext(void 0),OIt=({children:e,suggestedPrompts:t})=>$.createElement($9.Provider,{value:t},e),Ag=$.createContext(void 0),PIt=({children:e,variant:t})=>$.createElement(Ag.Provider,{value:t},e),IIt={category:Ys.AI,apis:[Iu.CreateConversation,Iu.DeleteConversation,Iu.ListConversations,Iu.UpdateConversation,Iu.OnMessage,Iu.SendMessage,Iu.Generation]},RIt={apis:[nt.DeleteUser,nt.UpdatePassword],category:Ys.Auth},MIt={apis:[nt.SignUp,nt.ConfirmSignUp,nt.ResendSignUpCode,nt.SignIn,nt.ConfirmSignIn,nt.FetchUserAttributes,nt.SignOut,nt.ResetPassword,nt.ConfirmResetPassword,nt.SignInWithRedirect],category:Ys.Auth},NIt={apis:[ul.UploadData],category:Ys.Storage},DIt={apis:[OB.NotifyMessageInteraction],category:Ys.InAppMessaging},LIt={category:Ys.Geo,apis:[Tx.SearchByText,Tx.SearchForSuggestions,Tx.SearchByPlaceId]},$It={category:Ys.Geo,apis:[]},FIt={apis:[ul.UploadData],category:Ys.Storage},BIt={apis:[ul.UploadData,ul.Copy,ul.GetUrl,ul.List,ul.Remove,ul.GetDataAccess,ul.ListCallerAccessGrants],category:Ys.Storage};function Ch(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function tg(e){return typeof e=="string"||typeof e=="object"&&Object.prototype.toString.call(e)==="[object String]"}function u4(e){return e===void 0}function Th(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function wc(e){return typeof e=="function"}const jr=(e,t)=>t?`${e}--${t}`:"",ad=(e,t,n)=>n?`${e}--${t}`:"";function jIt(...e){}function zIt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var UIt=zIt,VIt=typeof zt=="object"&&zt&&zt.Object===Object&&zt,WIt=VIt,HIt=WIt,KIt=typeof self=="object"&&self&&self.Object===Object&&self,qIt=HIt||KIt||Function("return this")(),GIt=qIt,YIt=GIt,XIt=YIt.Symbol,F9=XIt,die=F9,VCe=Object.prototype,ZIt=VCe.hasOwnProperty,QIt=VCe.toString,Tw=die?die.toStringTag:void 0;function JIt(e){var t=ZIt.call(e,Tw),n=e[Tw];try{e[Tw]=void 0;var r=!0}catch{}var i=QIt.call(e);return r&&(t?e[Tw]=n:delete e[Tw]),i}var eRt=JIt,tRt=Object.prototype,nRt=tRt.toString;function rRt(e){return nRt.call(e)}var iRt=rRt,fie=F9,oRt=eRt,sRt=iRt,aRt="[object Null]",lRt="[object Undefined]",hie=fie?fie.toStringTag:void 0;function cRt(e){return e==null?e===void 0?lRt:aRt:hie&&hie in Object(e)?oRt(e):sRt(e)}var uRt=cRt,dRt=Array.isArray,fRt=dRt;function hRt(e){return e!=null&&typeof e=="object"}var pRt=hRt,mRt=uRt,gRt=pRt,vRt="[object Symbol]";function yRt(e){return typeof e=="symbol"||gRt(e)&&mRt(e)==vRt}var bRt=yRt,pie=F9,wRt=UIt,xRt=fRt,ERt=bRt,mie=pie?pie.prototype:void 0,gie=mie?mie.toString:void 0;function WCe(e){if(typeof e=="string")return e;if(xRt(e))return wRt(e,WCe)+"";if(ERt(e))return gie?gie.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var SRt=WCe,_Rt=SRt;function kRt(e){return e==null?"":_Rt(e)}var HCe=kRt;const CRt={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},TRt={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.primary.80.value}"},hover:{value:"{colors.primary.90.value}"},focus:{value:"{colors.primary.100.value}"},active:{value:"{colors.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.10.value}"},warning:{value:"{colors.orange.10.value}"},error:{value:"{colors.red.10.value}"},success:{value:"{colors.green.10.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.primary.100.value}"},focus:{value:"{colors.primary.100.value}"},error:{value:"{colors.red.80.value}"},info:{value:"{colors.blue.80.value}"},success:{value:"{colors.green.80.value}"},warning:{value:"{colors.orange.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{5:{value:"hsla(0, 0%, 0%, 0.05)"},10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"}
1070,60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},ARt={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},ORt={message:{backgroundColor:{value:"{colors.background.secondary.value}"},borderRadius:{value:"{radii.large.value}"},gap:{value:"{space.small.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.small.value}"},user:{backgroundColor:{value:"{colors.background.secondary.value}"}},assistant:{backgroundColor:{value:"{colors.primary.10.value}"}},sender:{gap:{value:"{space.small.value}"},username:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"{fontWeights.bold.value}"}},timestamp:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"inherit"},fontWeight:{value:"inherit"}}},body:{gap:{value:"{space.xs.value}"}},actions:{gap:{value:"{space.xs.value}"}}},form:{gap:{value:"{space.small.value}"},padding:{value:"{space.small.value}"}},attachment:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},fontSize:{value:"{fontSizes.small.value}"},paddingBlock:{value:"{space.xxxs.value}"},paddingInline:{value:"{space.xs.value}"},gap:{value:"{space.xs.value}"},list:{padding:{value:"{space.xs.value}"},paddingBlockStart:{value:"0"},gap:{value:"{space.xxs.value}"}},name:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},size:{color:{value:"{colors.font.tertiary.value}"},fontSize:{value:"{fontSizes.small.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},remove:{padding:{value:"{space.xxs.value}"}},image:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}}}},PRt={menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},IRt={maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},RRt={color:{value:"{colors.font.tertiary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},backgroundColor:{value:"{colors.background.tertiary}"},borderRadius:{value:"100%"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"{colors.border.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"{colors.border.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"{colors.border.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"{colors.border.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},width:{value:"{fontSizes.xl.value}"},height:{value:"{fontSizes.xl.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}}},MRt={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},NRt={flexDirection:{value:"row"},flexWrap:{value:"wrap"}
1070,gap:{value:"0"},color:{value:"{colors.font.tertiary}"},item:{flexDirection:{value:"row"},color:{value:"inherit"},fontSize:{value:"inherit"},alignItems:{value:"center"},lineHeight:{value:"1"}},separator:{color:{value:"inherit"},fontSize:{value:"inherit"},paddingInline:{value:"{space.xxs}"}},link:{color:{value:"{components.link.color}"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"},paddingInline:{value:"{space.xs}"},paddingBlock:{value:"{space.xxs}"},current:{color:{value:"inherit"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"}}}},DRt={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.primary.20.value}"},borderColor:{value:"{colors.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontro
1070l.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},LRt={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},$Rt={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.border.error.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},icon:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},FRt={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},BRt={pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},jRt={fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},zRt={height:{value:"{space.relative.full.value}"}},URt={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},VRt={backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.font.primary}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.primary}"}},_disabled:{backgroundColor:{value:"{colors.background.disabled}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.disabled}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.disabled}"}},accepted:{backgroundColor:{value:"{colors.background.success}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.success}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.success}"}},rejected:{backgroundColor:{value:"{colors.background.error}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.error}"}}},WRt={backgroundColor:{value:"{colors.background.primary.value}"},item:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small.value}"},trigger:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"inherit"},gap:{value:"{space.small.value}"},justifyContent:{value:"space-between"},paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},_hover:{color:{value:"inherit"},backgroundColor:{value:"{colors.overlay.5.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},content:{color:{value:"inherit"},paddingInline:{value:"{space.small.value}"},paddingBlockEnd:{value:"{space.small.value}"},paddingBlockStart:{value:"{space.xxxs.value}"}},icon:{color:{value:"{colors.font.tertiary.value}"},transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}},HRt={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},KRt={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}
1070,quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},color:{value:"{colors.font.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}},info:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.blue.100.value}"}}}},warning:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.orange.100.value}"}}}},success:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.green.100.value}"}}}},overlay:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.overlay.90.value}"}}}}},qRt={gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},GRt={backgroundColor:{value:"transparent"},borderRadius:{value:"{radii.xs.value}"},flexDirection:{value:"column"},gap:{value:"{components.field.gap.value}"},legend:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{components.field.fontSize.value}"},fontWeight:{value:"{fontWeights.bold.value}"},lineHeight:{value:"{lineHeights.medium.value}"},small:{fontSize:"{components.field.small.fontSize.value}"},large:{fontSize:"{components.field.large.fontSize.value}"}},outlined:{padding:"{space.medium.value}",borderColor:"{colors.neutral.40.value}",borderWidth:"{borderWidths.small.value}",borderStyle:"solid",small:{padding:"{space.small.value}"},large:{padding:"{space.large.value}"}},small:{gap:"{components.field.small.gap.value}"},large:{gap:"{components.field.large.gap.value}"}},YRt={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},XRt={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},ZRt={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},QRt={color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},JRt={highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},eMt={lineHeight:{value:1},height:{value:"1em"}},tMt={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},nMt={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},rMt={banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},iMt={active:{color:{value:"{colors.font.active.value}"}}
1070,color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},oMt={cameraModule:{backgroundColor:{value:"{colors.background.primary.value}"}}},sMt={width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.xxxs.value}"},fontSize:{value:"{fontSizes.xxxs.value}"}},large:{strokeWidth:{value:"{fontSizes.xs.value}"},fontSize:{value:"{fontSizes.xs.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},aMt={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},lMt={alignItems:{value:"center"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderColor:{value:"transparent"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.xs.value}"},color:{value:"{colors.font.primary.value}"},justifyContent:{value:"flex-start"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},lineHeight:{value:"{lineHeights.small.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},dismiss:{gap:{value:"{space.xxs.value}"}},plain:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}}},outlined:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.primary.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.error.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.success.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.warning.value}"}}},filled:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.secondary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"transparent"}}}},cMt={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}}
1070,itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},uMt={color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_error:{color:{value:"{components.button.outlined.error.color.value}"},backgroundColor:{value:"{components.button.outlined.error.backgroundColor.value}"},borderColor:{value:"{components.button.outlined.error.borderColor.value}"},_active:{borderColor:{value:"{components.button.outlined.error._active.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._active.backgroundColor.value}"},color:{value:"{components.button.outlined.error._active.color.value}"}},_focus:{borderColor:{value:"{components.button.outlined.error._focus.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._focus.backgroundColor.value}"},color:{value:"{components.button.outlined.error._focus.color.value}"},boxShadow:{value:"{components.button.outlined.error._focus.boxShadow.value}"}},_hover:{borderColor:{value:"{components.button.outlined.error._hover.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._hover.backgroundColor.value}"},color:{value:"{components.button.outlined.error._hover.color.value}"}}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},dMt={color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},fMt={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},hMt={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},pMt={radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},legend:{color:{value:"{components.fieldset.legend.color}"},fontWeight:{value:"{fontWeights.normal}"}}},mMt={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},gMt={color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},vMt={color:{value:"{components.fieldcontrol.color}"},backgroundColor:{value:"{colors.background.primary.value}"},paddingInlineEnd:{value:"{space.xxl.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"},small:{right:{value:"{space.xs.value}"}},large:{right:{value:"{space.medium.value}"}}},option:{backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"},paddingInlineEnd:{value:"{space.xl.value}"}},large:{minWidth:{value:"7.5rem"},paddingInlineEnd:{value:"{space.xxl.value}"}},expanded:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},option:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"}}}},yMt={borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},bMt={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"}
1070,height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},wMt={borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},xMt={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.storagemanager.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.storagemanager.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},EMt={_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},SMt={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},_Mt={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"}
1070,gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.hover.value}"}},_focus:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"{borderWidths.medium}",color:"{colors.border.focus.value}"}},color:{value:"{colors.font.focus.value}"}},_active:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.font.interactive.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.interactive.value}"}},_disabled:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.disabled.value}"}}},panel:{backgroundColor:{value:"transparent"},paddingInline:{value:"0"},paddingBlock:{value:"{space.small.value}"}}},kMt={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},CMt={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},TMt={color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},AMt={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.primary.80.value}"},borderColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.primary.60.value}"},backgroundColor:{value:"{colors.primary.60.value}"},boxShadow:{value:"{colors.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},OMt={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}},PMt={accordion:WRt,aiConversation:ORt,alert:ARt,authenticator:IRt,autocomplete:PRt,avatar:RRt,badge:MRt,breadcrumbs:NRt,button:DRt,card:LRt,checkbox:$Rt,checkboxfield:FRt,collection:BRt,copy:jRt,countrycodeselect:zRt,divider:URt,dropzone:VRt,field:HRt,fieldcontrol:KRt,fieldgroup:qRt,fieldmessages:YRt,fieldset:GRt,fileuploader:XRt,flex:ZRt,heading:QRt,icon:eMt,highlightmatch:JRt,image:nMt,inappmessaging:rMt,input:tMt,link:iMt,liveness:oMt,loader:sMt,menu:aMt,message:lMt,pagination:cMt,passwordfield:uMt,phonenumberfield:dMt,placeholder:fMt,radio:hMt,radiogroup:pMt,rating:mMt,searchfield:gMt,select:vMt,selectfield:yMt,sliderfield:bMt,stepperfield:wMt,storagemanager:xMt,switchfield:EMt,table:SMt,tabs:_Mt,text:kMt,textareafield:CMt,textfield:TMt,togglebutton:AMt,togglebuttongroup:OMt},IMt={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 1071 'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 1072 sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 1073 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}}
1073,Cu={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},RMt={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},MMt={small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},NMt={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},DMt={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},LMt={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},$Mt={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},FMt={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}},Tu={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}},BMt={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},jMt={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},zMt={components:PMt,borderWidths:CRt,colors:TRt,fonts:IMt,fontSizes:Cu,fontWeights:RMt,lineHeights:MMt,opacities:NMt,outlineOffsets:DMt,outlineWidths:LMt,radii:$Mt,shadows:FMt,space:Tu,time:BMt,transforms:jMt};Cu.xxs,Cu.xs,Cu.small,Cu.medium,Cu.large,Cu.xl,Cu.xxl,Cu.xxxl,Tu.xxxs,Tu.xs,Tu.small,Tu.medium,Tu.large,Tu.xl,Tu.xxl,Tu.xxxl;const UMt={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},KCe={tokens:zMt,breakpoints:UMt,name:"default-theme"};function VMt(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}var WMt=VMt;function HMt(e){return function(t){return e==null?void 0:e[t]}}var KMt=HMt,qMt=KMt,GMt={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},YMt=qMt(GMt),XMt=YMt,ZMt=XMt,QMt=HCe,JMt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
10737f]/g,eNt="\\u0300-\\u036f",tNt="\\ufe20-\\ufe2f",nNt="\\u20d0-\\u20ff",rNt=eNt+tNt+nNt,iNt="["+rNt+"]",oNt=RegExp(iNt,"g");function sNt(e){return e=QMt(e),e&&e.replace(JMt,ZMt).replace(oNt,"")}var aNt=sNt,lNt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function cNt(e){return e.match(lNt)||[]}var uNt=cNt,dNt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function fNt(e){return dNt.test(e)}var hNt=fNt,qCe="\\ud800-\\udfff",pNt="\\u0300-\\u036f",mNt="\\ufe20-\\ufe2f",gNt="\\u20d0-\\u20ff",vNt=pNt+mNt+gNt,GCe="\\u2700-\\u27bf",YCe="a-z\\xdf-\\xf6\\xf8-\\xff",yNt="\\xac\\xb1\\xd7\\xf7",bNt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wNt="\\u2000-\\u206f",xNt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",XCe="A-Z\\xc0-\\xd6\\xd8-\\xde",ENt="\\ufe0e\\ufe0f",ZCe=yNt+bNt+wNt+xNt,QCe="['â]",vie="["+ZCe+"]",SNt="["+vNt+"]",JCe="\\d+",_Nt="["+GCe+"]",eTe="["+YCe+"]",tTe="[^"+qCe+ZCe+JCe+GCe+YCe+XCe+"]",kNt="\\ud83c[\\udffb-\\udfff]",CNt="(?:"+SNt+"|"+kNt+")",TNt="[^"+qCe+"]",nTe="(?:\\ud83c[\\udde6-\\uddff]){2}",rTe="[\\ud800-\\udbff][\\udc00-\\udfff]",mv="["+XCe+"]",ANt="\\u200d",yie="(?:"+eTe+"|"+tTe+")",ONt="(?:"+mv+"|"+tTe+")",bie="(?:"+QCe+"(?:d|ll|m|re|s|t|ve))?",wie="(?:"+QCe+"(?:D|LL|M|RE|S|T|VE))?",iTe=CNt+"?",oTe="["+ENt+"]?",PNt="(?:"+ANt+"(?:"+[TNt,nTe,rTe].join("|")+")"+oTe+iTe+")*",INt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RNt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",MNt=oTe+iTe+PNt,NNt="(?:"+[_Nt,nTe,rTe].join("|")+")"+MNt,DNt=RegExp([mv+"?"+eTe+"+"+bie+"(?="+[vie,mv,"$"].join("|")+")",ONt+"+"+wie+"(?="+[vie,mv+yie,"$"].join("|")+")",mv+"?"+yie+"+"+bie,mv+"+"+wie,RNt,INt,JCe,NNt].join("|"),"g");function LNt(e){return e.match(DNt)||[]}var $Nt=LNt,FNt=uNt,BNt=hNt,jNt=HCe,zNt=$Nt;function UNt(e,t,n){return e=jNt(e),t=n?void 0:t,t===void 0?BNt(e)?zNt(e):FNt(e):e.match(t)||[]}var VNt=UNt,WNt=WMt,HNt=aNt,KNt=VNt,qNt="['â]",GNt=RegExp(qNt,"g");function YNt(e){return function(t){return WNt(KNt(HNt(t).replace(GNt,"")),e,"")}}var XNt=YNt,ZNt=XNt,QNt=ZNt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),JNt=QNt;const sTe=yr(JNt),eDt=/\{([^}]+)\}/g;function aTe(e){const t=new RegExp(eDt);if(typeof e=="string")return t.test(e);if(typeof e=="object"){let n=!1;for(const r in e)if(Th(e,r)){const i=e[r];if(aTe(i)){n=!0;break}}return n}return!1}const tDt="amplify";function nDt(e){return Object.entries(e).map(([t,n])=>{const r=HN(n)?n.toString():lTe({value:n});return`${sTe(t)}:${r}; `}).join(" ")}function B9({path:e=[]}){return`${sTe([tDt,...e].join(" "))}`}const rDt=["offsetX","offsetY","blurRadius","spreadRadius","color"];function lTe(e){const{value:t}=e;return tg(t)?Eie(t):xie(t)?rDt.map(n=>Eie(xie(e)?e[n]:t[n])).join(" "):t}function HN(e){return Ch(e)&&Th(e,"value")}function xie(e){return Ch(e)&&Th(e,"offsetX")}function Eie(e){if(!e)return"";if(aTe(e)){const t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${B9({path:t})})`}return e}const Sie=({token:e,path:t})=>{const n=`--${B9({path:t})}`,{value:r}=e,i=lTe(e);return{name:n,original:r,path:t,value:i,toString:()=>`var(${n})`}};function d4({tokens:e,path:t=[],setupToken:n}){if(Th(e,"value"))return n({token:e,path:t});const r={};for(const i in e)if(Th(e,i)){const o=e[i],s=Ch(o)?o:{value:o};r[i]=d4({tokens:s,path:t.concat(i),setupToken:n})}return r}function f4(e,t){t=t||[];for(var n in e)Th(e,n)&&(Ch(e[n])&&"value"in e[n]?t.push(e[n]):Ch(e[n])&&f4(e[n],t));return t}function cTe(e,t,n){if(e==null)return{};var r,i,o,s,a,l,c=e[0]||{},u=1,d=e.length;for(n=n||[],typeof c!="object"&&(c={});u<d;u++)if((a=e[u])!=null){for(s in a)if(Th(a,s)&&s!=="__proto__"&&(r=c[s],o=a[s],c!==o))if(o&&(Ch(o)||(i=Array.isArray(o)))){i?(i=!1,l=r&&Array.isArray(r)?r:[]):l=r&&Ch(r)?r:{};var f=n.slice(0);f.push(s),c[s]=cTe([l,o],t,f)}else o!==void 0&&(c[s]=o)}return c}function _ie({keys:e,value:t}){return e.reduce((n,r)=>({...n,[r]:{value:`{colors.${t}.${r}.value}`}}),{})}function iDt({animations:e,tokens:t}){let n="";return Object.entries(e).forEach(([r,i])=>{n+=` 1074 @keyframes ${r}
1074 {`,Object.entries(i).forEach(([o,s])=>{n+=` 1075 ${o} { 1076`;const a=wc(s)?s(t):s;n+=nDt(a),n+=` 1077 }`}),n+=` 1078 }`}),n}function uTe(e,t=KCe){const n=cTe([{},t,{...e,components:{}}]),{primaryColor:r,secondaryColor:i}=n;tg(r)&&(n.tokens.colors.primary=_ie({keys:Object.keys(n.tokens.colors[r]),value:r})),tg(i)&&(n.tokens.colors.secondary=_ie({keys:Object.keys(n.tokens.colors[i]),value:i}));const o=d4({tokens:n.tokens,setupToken:Sie}),{breakpoints:s,name:a}=n;let l=`[data-amplify-theme="${a}"] { 1079`+f4(o).map(u=>`${u.name}: ${u.value};`).join(` 1080`)+` 1081} 1082`,c=[];return n.animations&&(l+=iDt({animations:n.animations,tokens:o})),n.overrides&&(c=n.overrides.map(u=>{const d=d4({tokens:u.tokens,setupToken:Sie}),f=f4(d).map(h=>`${h.name}: ${h.value};`).join(` 1083`);if("selector"in u&&(l+=` 1084${u.selector} { 1085${f} 1086} 1087`),"mediaQuery"in u&&(l+=` 1088@media (${u.mediaQuery}) { 1089 [data-amplify-theme="${a}"] { 1090 ${f} 1091 } 1092} 1093`),"breakpoint"in u){const h=n.breakpoints.values[u.breakpoint];l+=` 1094@media (min-width: ${h}px) { 1095 [data-amplify-theme="${a}"] { 1096 ${f} 1097 } 1098} 1099`}return"colorMode"in u&&(l+=` 1100@media (prefers-color-scheme: ${u.colorMode}) { 1101 [data-amplify-theme="${a}"][data-amplify-color-mode="system"] { 1102 ${f} 1103 color-scheme: ${u.colorMode}; 1104 } 1105 } 1106`,l+=` 1107[data-amplify-theme="${a}"][data-amplify-color-mode="${u.colorMode}"] { 1108 ${f} 1109 color-scheme: ${u.colorMode}; 1110 } 1111`),{...u,tokens:d}})),{tokens:o,breakpoints:s,name:a,cssText:l,containerProps:({colorMode:u}={})=>({"data-amplify-theme":a,"data-amplify-color-mode":u}),overrides:c}}const Ft=(...e)=>{const t=[];for(const n of e)if(n){if(tg(n)){t.push(n);continue}if(typeof n=="number"){t.push(n.toString());continue}if(Array.isArray(n)){t.push(Ft(...n));continue}if(Ch(n)){if(n.toString!==Object.prototype.toString&&n.toString()!=="[object Object]"){t.push(n.toString());continue}for(const r in n)Th(n,r)&&n[r]&&t.push(r)}}return t.join(" ")},fe={Avatar:"amplify-avatar",AvatarIcon:"amplify-avatar__icon",AvatarImage:"amplify-avatar__image",AvatarLoader:"amplify-avatar__loader",AIConversation:"amplify-ai-conversation",AIConversationAttachment:"amplify-ai-conversation__attachment",AIConversationAttachmentList:"amplify-ai-conversation__attachment__list",AIConversationAttachmentImage:"amplify-ai-conversation__attachment__image",AIConversationAttachmentName:"amplify-ai-conversation__attachment__name",AIConversationAttachmentSize:"amplify-ai-conversation__attachment__size",AIConversationAttachmentRemove:"amplify-ai-conversation__attachment__remove",AIConversationForm:"amplify-ai-conversation__form",AIConversationFormAttach:"amplify-ai-conversation__form__attach",AIConversationFormError:"amplify-ai-conversation__form__error",AIConversationFormSend:"amplify-ai-conversation__form__send",AIConversationFormField:"amplify-ai-conversation__form__field",AIConversationFormDropzone:"amplify-ai-conversation__form__dropzone",AIConversationMessage:"amplify-ai-conversation__message",AIConversationMessageAvatar:"amplify-ai-conversation__message__avatar",AIConversationMessageSender:"amplify-ai-conversation__message__sender",AIConversationMessageSenderUsername:"amplify-ai-conversation__message__sender__username",AIConversationMessageSenderTimestamp:"amplify-ai-conversation__message__sender__timestamp",AIConversationMessageBody:"amplify-ai-conversation__message__body",AIConversationMessageContent:"amplify-ai-conversation__message__content",AIConversationMessageActions:"amplify-ai-conversation__message__actions",AIConversationMessageList:"amplify-ai-conversation__message__list",AIConversationPrompt:"amplify-ai-conversation__prompt",Button:"amplify-button",ButtonLoaderWrapper:"amplify-button__loader-wrapper",Card:"amplify-card",DropZone:"amplify-dropzone",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroupControl:"amplify-field-group__control",Flex:"amplify-flex",Icon:"amplify-icon",Image:"amplify-image",Label:"amplify-label",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",Message:"amplify-message",Me
1111ssageIcon:"amplify-message__icon",MessageHeading:"amplify-message__heading",MessageContent:"amplify-message__content",MessageDismiss:"amplify-message__dismiss",Placeholder:"amplify-placeholder",ScrollView:"amplify-scrollview",Text:"amplify-text",Textarea:"amplify-textarea",TextAreaField:"amplify-textareafield",VisuallyHidden:"amplify-visually-hidden"},oDt=({componentName:e,packageName:t,version:n})=>{const r=[`ui-${t}`,n];switch(e){case"AIConversation":{mu({...IIt,additionalDetails:[[e],r]});break}case"Authenticator":{mu({...MIt,additionalDetails:[[e],r]});break}case"ChangePassword":case"DeleteUser":{mu({...RIt,additionalDetails:[["AccountSettings"],r]});break}case"FileUploader":{mu({...NIt,additionalDetails:[[e],r]});break}case"InAppMessaging":{mu({...DIt,additionalDetails:[[e],r]});break}case"LocationSearch":{mu({...LIt,additionalDetails:[[e],r]});break}case"MapView":{mu({...$It,additionalDetails:[[e],r]});break}case"StorageManager":{mu({...FIt,additionalDetails:[[e],r]});break}case"StorageBrowser":{mu({...BIt,additionalDetails:[[e],r]});break}}return jIt};function j9(e,t=!1,n=1){const r=t?1e3:1024;if(Math.abs(e)<r)return`${e} B`;const i=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let o=-1;const s=10**n;do e/=r,++o;while(Math.round(Math.abs(e)*s)/s>=r&&o<i.length-1);return e.toFixed(n)+" "+i[o]}function sDt(e){const t=y.useRef(void 0);return y.useEffect(()=>{t.current=e},[e]),t.current}function aDt(e,t=!1){const n=sDt(e);return u4(n)&&t?!1:n!==e}function kie(e,t){if(!t||t.length===0||t.includes("*"))return{acceptedFiles:e,rejectedFiles:[]};const n=[],r=[];function i(o){const{type:s="",name:a=""}=o,l=s.toLowerCase(),c=l.split("/")[0];return t.some(u=>{const d=u.trim().toLowerCase();return d.charAt(0)==="."?a.toLowerCase().endsWith(d):d.endsWith("/*")?c===d.split("/")[0]:l===d})}return e.forEach(o=>{(i(o)?n:r).push(o)}),{acceptedFiles:n,rejectedFiles:r}}const lDt=e=>new Promise(t=>{e.file(t)}),cDt=async e=>{const t=[];let n=[];do n=await new Promise((r,i)=>{try{e.readEntries(r,i)}catch(o){i(o)}}),t.push(...n);while(n.length>0);return t};async function uDt(e){const t=[],n=async r=>{if(r.isFile){const i=await lDt(r);r.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),t.push(i)}else if(r.isDirectory){const i=r.createReader(),o=await cDt(i);await Promise.all(o.map(n))}};return await Promise.all(e.reduce((r,i)=>{const o=i.webkitGetAsEntry();return i.kind==="file"&&o?[...r,o]:r},[]).map(n)),t}function dTe({onDropComplete:e,onDragEnter:t,onDragLeave:n,onDragOver:r,onDragStart:i,onDrop:o,acceptedFileTypes:s=[]}){const[a,l]=y.useState("inactive");return{onDragStart:p=>{p.dataTransfer.clearData(),wc(i)&&i(p)},onDragEnter:p=>{p.preventDefault(),p.stopPropagation(),wc(t)&&t(p)},onDragLeave:p=>{p.preventDefault(),p.stopPropagation(),l("inactive"),wc(n)&&n(p)},onDragOver:p=>{p.preventDefault(),p.stopPropagation(),p.dataTransfer.dropEffect="copy",wc(r)&&r(p);const m=Array.from(p.dataTransfer.items).map(({kind:v,type:b})=>({kind:v,type:b})),{rejectedFiles:g}=kie(m,s);l(g.length>0?"reject":"accept")},onDrop:p=>{p.preventDefault(),p.stopPropagation(),l("inactive");const{files:m,items:g}=p.dataTransfer;wc(o)&&o(p);const v=b=>{const{acceptedFiles:w,rejectedFiles:x}=kie(b,s);wc(e)&&e({acceptedFiles:w,rejectedFiles:x})};g?uDt(Array.from(g)).then(v):v(Array.from(m))},dragState:a}}function dDt({componentName:e,packageName:t,version:n}){y.useEffect(()=>oDt({componentName:e,packageName:t,version:n}),[e,t,n])}const fDt="an `errorMessage` or a `defaultValue` must be provided in `options`";function fTe(e){const{contextName:t,defaultValue:n,errorMessage:r}=e??{};if(u4(n)&&!tg(r))throw new Error(fDt);const i=`${t}Context`,o=`${t}Provider`,s=$.createContext(n);s.displayName=i;function a(l){const{children:c,...u}=l,d=$.useMemo(()=>u,Object.values(u));return $.createElement(s.Provider,{value:d},c)}return a.displayName=o,{[`use${t}`]:function(l){const c=$.useContext(s);if(u4(c))throw new Error((l==null?void 0:l.errorMessage)??r);return c},[o]:a,[i]:s}}function hDt(e){const t=e.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),n=e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0});return`${t} at ${n}`}function hTe(e){if(typeof Buffer<"u")return Buffer.from(new Uint8Array(e)).toString("base64");{let t="";const n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}}function pDt(e,t){const n=hTe(e);return`data:image/${t};base64,${n}`}function z9(e){const t=e.name.split(".");return t.length>1?t[t.length-1]:e.type.split("/")[1]}function mDt(e){const t=e.name.split("."),n=t.length>1?t.slice(0,-1).join(""):e.name,r=/[!@#$%^&*()+\-=[\]{};':"\\|,.<>/?]/g;return n.replace(r,"").replace(/\s+/g,"_")}const U9=new Set(["docx","csv","html","txt","pdf","md","doc","xlsx","xls"]),pTe=new Set(["png","jpeg","gif","webp"]),V9=new Set([...U9,...pTe]);function gDt(e){return U9.has(e)}function vDt(e){return pTe.has(e)}async function yDt({files:e,maxAttachments:t,maxAttachmentSize:n}){const r=[],i=[];let o=!1,s=!1;for(const a of e){const l=z9(a);if(!V9.has(l)){i.push(a),s=!0;continue}const c=await a.arrayBuffer();hTe(c).length<n?r.push(a):(i.push(a),o=!0)}return r.length>t?{acceptedFiles:r.slice(0,t),rejectedFiles:[...r.slice(t),...i],hasMaxAttachmentSizeError:o,hasUnsupportedFileError:s,hasMaxAttachmentsError:!0}:{acceptedFiles:r,rejectedFiles:i,hasMaxAttachmentSizeError:o,hasUnsupportedFileError:s,hasMaxAttachmentsError:!1}}
1111const mTe={getMessageTimestampText:e=>hDt(e),getMaxAttachmentErrorText(e){return`Cannot choose more than ${e} ${e===1?"file":"files"}. `},getAttachmentSizeErrorText(e){return`File size must be below ${e}.`},getAttachmentFormatErrorText(e){return`Files must be one of the supported types: ${e.join(", ")}.`}},{ConversationDisplayTextProvider:bDt,useConversationDisplayText:W9}=fTe({contextName:"ConversationDisplayText",defaultValue:mTe}),KN=$.createContext(void 0),wDt=({children:e,controls:t})=>$.createElement(KN.Provider,{value:t},e),qN=$.createContext(void 0),xDt=({children:e,isLoading:t})=>$.createElement(qN.Provider,{value:t},e),GN="AMPLIFY_UI_",H9=$.createContext(void 0),EDt=e=>e&&Object.keys(e).reduce((t,n)=>(t[`${GN}${n}`]=e[n],t),{}),SDt=({children:e,responseComponents:t})=>{const n=$.useMemo(()=>EDt(t),[t]);return $.createElement(H9.Provider,{value:n},e)},_Dt=e=>{if(!e)return;const t={};return Object.keys(e).forEach(n=>{const{props:r}=e[n],i=[];Object.keys(r).forEach(o=>{r[o].required&&(i.push(o),r[o].required=void 0)}),t[n]={description:e[n].description,inputSchema:{json:{type:"object",required:i,properties:{...r}}}}}),{tools:t}},gTe=$.createContext(void 0),kDt=({children:e,handleSendMessage:t})=>$.createElement(gTe.Provider,{value:t},e),{MessageRendererContext:CDt,MessageRendererProvider:TDt}=fTe({contextName:"MessageRenderer",defaultValue:void 0,errorMessage:"`useMessageRenderer` must be used with an AIConversation component"}),vTe=y.createContext({allowAttachments:!1,maxAttachmentSize:4e5,maxAttachments:20}),ADt=({children:e,allowAttachments:t=!1,maxAttachmentSize:n=4e5,maxAttachments:r=20})=>{const i=y.useMemo(()=>({maxAttachmentSize:n,maxAttachments:r,allowAttachments:t}),[n,r,t]);return y.createElement(vTe.Provider,{value:i},e)},yTe=y.createContext(void 0),ODt=({children:e,welcomeMessage:t})=>y.createElement(yTe.Provider,{value:t},e),bTe=$.createContext(void 0),PDt=({children:e,FallbackComponent:t})=>$.createElement(bTe.Provider,{value:t},e),IDt={attach:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z",close:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z",image:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z","send-message":"M120-160v-640l760 320-760 320Zm80-120 474-200-474-200v140l240 60-240 60v140Zm0 0v-400 400Z","user-avatar":"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"},RDt={"aria-hidden":!0,width:"24",height:"24",viewBox:"0 -960 960 960",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MDt=Xa({type:"svg",displayName:"Icon"}),NDt=({variant:e,...t})=>{const n=e?IDt[e]:void 0,r=n?$.createElement("path",{d:n,fill:"currentColor"}):void 0;return{...RDt,...t,children:t.children??r,variant:e}},DDt=an(MDt,NDt),LDt=Xa({type:"label",displayName:"Label"}),$Dt=Xa({type:"p",displayName:"Text"}),FDt=Xa({type:"ul",displayName:"UnorderedList"}),BDt=Xa({type:"li",displayName:"ListItem"});Xa({type:"h2",displayName:"Title"});Xa({type:"img",displayName:"Image"});Xa({type:"input",displayName:"Input"});const jDt=Xa({type:"button",displayName:"Button"}),zDt=Xa({type:"div",displayName:"View"}),UDt=Xa({type:"span",displayName:"Span"}),VDt=Xa({type:"textarea",displayName:"TextArea"}),Og={Button:jDt,Icon:DDt,Label:LDt,ListItem:BDt,Span:UDt,Text:$Dt,TextArea:VDt,UnorderedList:FDt,View:zDt}
1111,{Button:WDt,Span:HDt,View:KDt}=Og,K9="ai-actions-bar",qDt=an(HDt,{"aria-hidden":"true",className:`${K9}__icon`}),GDt=an(WDt,{className:`${K9}__button`}),wTe=$.forwardRef(function(t,n){return $.createElement(GDt,{...t,ref:n})}),xTe=an(KDt,{className:`${K9}__container`}),p_=({message:e,focusable:t})=>{const n=$.useContext(L9);return $.createElement(xTe,null,n==null?void 0:n.map((r,i)=>$.createElement(wTe,{key:i,onClick:()=>r.handler(e),tabIndex:t?0:-1},r.component)))};p_.Button=wTe;p_.Container=xTe;p_.Icon=qDt;const{Icon:YDt,Span:XDt,Text:ZDt,View:QDt}=Og,q9="ai-avatar",JDt=an(YDt,{variant:"user-avatar"}),e2t=()=>$.createElement("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$.createElement("g",{id:"raven-logo"},$.createElement("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M16 1.29833C14.7624 0.583803 13.2376 0.583804 12 1.29833L4.00006 5.91711C2.76246 6.63165 2.00006 7.95216 2.00006 9.38122V18.6188C2.00006 20.0478 2.76246 21.3684 4.00006 22.0829L12 26.7017C13.2376 27.4162 14.7624 27.4162 16 26.7017L24 22.0829C25.2376 21.3684 26 20.0478 26 18.6188V9.38122C26 7.95215 25.2376 6.63164 24 5.91711L16 1.29833ZM14.9379 6.37317C14.6157 5.50255 13.3843 5.50255 13.0622 6.37317L11.4151 10.8243C11.3138 11.098 11.098 11.3138 10.8243 11.4151L6.37317 13.0621C5.50256 13.3843 5.50256 14.6157 6.37317 14.9378L10.8243 16.5849C11.098 16.6862 11.3138 16.902 11.4151 17.1757L13.0622 21.6268C13.3843 22.4974 14.6157 22.4974 14.9379 21.6268L16.5849 17.1757C16.6862 16.902 16.902 16.6862 17.1757 16.5849L21.6268 14.9378C22.4974 14.6157 22.4974 13.3843 21.6268 13.0621L17.1757 11.4151C16.902 11.3138 16.6862 11.098 16.5849 10.8243L14.9379 6.37317Z",fill:"#0D1A26"}))),ETe=an(ZDt,{className:`${q9}__display-name`}),STe=an(XDt,{"aria-hidden":!0,className:`${q9}__icon`}),_Te=an(QDt,{className:`${q9}__container`}),m_=()=>{const e=$.useContext(VN),t=$.useContext(x0),n=t==="assistant"?e==null?void 0:e.ai:e==null?void 0:e.user,r=t==="assistant"?$.createElement(e2t,null):$.createElement(JDt,null),i=t==="user"?"User":"Assistant";return $.createElement(_Te,{"data-testid":"avatar"},$.createElement(STe,{"data-testid":`avatar-icon-${t}`},(n==null?void 0:n.avatar)??r),$.createElement(ETe,null,(n==null?void 0:n.username)??i))};m_.Container=_Te;m_.DisplayName=ETe;m_.Icon=STe;const{Button:t2t,Icon:n2t,View:kTe}=Og,CTe="ai-attach-file",TTe="ai-field",ATe=an(n2t,{className:`${CTe}__icon`,variant:"attach"}),OTe=an(kTe,{className:`${CTe}__container`}),r2t=an(kTe,{className:`${TTe}__visually-hidden`}),PTe=an(t2t,{"aria-label":"Attach file",className:`${TTe}__button`,type:"button",variant:"attach"}),g_=()=>{const e=$.useRef(null),{setInput:t}=$.useContext(Yh),{dragState:n,...r}=dTe({acceptedFileTypes:[".jpeg"],onDropComplete:({acceptedFiles:s})=>{s&&(s==null?void 0:s.length)>0&&t&&t(a=>({...a,files:[...(a==null?void 0:a.files)??[],...s]}))}});function i(){e.current&&(e.current.click(),e.current.value="")}function o(s){const{files:a}=s.target;a&&(a==null?void 0:a.length)>0&&t&&Array.from(a).forEach(l=>{t(c=>({...c,files:[...(c==null?void 0:c.files)??[],l]}))})}return $.createElement(OTe,{...r},$.createElement(PTe,{onClick:i},$.createElement(ATe,null)),$.createElement(r2t,null,$.createElement("input",{accept:".jpeg,.png,.webp,.gif","data-testid":"hidden-file-input",onChange:o,ref:e,type:"file",multiple:!0})))};g_.Icon=ATe;g_.Button=PTe;g_.Container=OTe;const{Button:i2t,Icon:ITe,ListItem:o2t,UnorderedList:s2t,Span:a2t,Text:RTe,View:l2t}=Og,c2t="ai-attachment-list",MTe="ai-attachment",NTe="ai-remove-attachment",YN="ai-attachment-text",DTe=an(ITe,{className:`${NTe}__icon`,variant:"close"}),LTe=an(i2t,{"aria-label":"Remove file",className:`${NTe}__button`,variant:"remove",type:"button"}),XN=({onRemove:e})=>$.createElement(LTe,{onClick:e},$.createElement(DTe,null));XN.Icon=DTe;XN.Button=LTe;const $Te=an(ITe,{className:`${MTe}__icon`,variant:"image"}),FTe=an(RTe,{className:`${YN}__file-name`}),BTe=an(RTe,{className:`${YN}__file-size`}),jTe=an(a2t,{"aria-hidden":!0,className:`${YN}__separator`,children:"|"}),zTe=an(l2t,{className:`${YN}__container`}),E0=({fileName:e,fileSize:t})=>$.createElement(zTe,null,$.createElement(FTe,null,e),$.createElement(jTe,null),$.createElement(BTe,null,t));E0.Container=zTe;E0.FileName=FTe;E0.FileSize=BTe;E0.Separator=jTe;const UTe=an(o2t,{className:`${MTe}__list-item`}),S0=({image:e,onRemove:t})=>$.createElement(UTe,null,$.createElement($Te,null),$.createElement(E0,{fileName:e.name,fileSize:e.size}),$.createElement(XN,{onRemove:t}));S0.Container=UTe;S0.ImageIcon=$Te;S0.RemoveButton=XN;S0.Text=E0;const VTe=an(s2t,{className:`${c2t}__unordered-list`}),G9=()=>{var n;const{input:e,setInput:t}=$.useContext(Yh);return $.createElement(VTe,null,(n=e==null?void 0:e.files)==null?void 0:n.map((r,i)=>{const o=()=>{t&&t(s=>{var a;return{...s,files:(a=s==null?void 0:s.files)==null?void 0:a.filter(l=>l!==r)}})};return $.createElement(S0,{key:i,image:r,onRemove:o})}))};G9.List=VTe;G9.Item=S0;const{Button:u2t,Icon:d2t,Label:f2t,TextArea:h2t,View:WTe}=Og,Sd="ai-field",HTe=an(d2t,{className:`${Sd}__icon`,variant:"send-message"}),p2t=an(u2t,{"aria-label":"Send message",className:`${Sd}__button ${Sd}__button--send`}),KTe=$.forwardRef(function(t,n){var s;const{input:r}=$.useContext(Yh),i=$.useContext(qN),o=!!(r!=null&&r.text)||!!((s=r==null?void 0:r.files)!=null&&s.length);return $.createElement(p2t,{...t,disabled:i||!o,type:"submit",ref:n,"data-testid":"send-button"})}),m2t=an(h2t,{className:`${Sd}__input`,id:`${Sd}-text-input`,name:"text-input"}),g2t=an(WTe,{className:`${Sd}__visually-hidden`}),qTe=an(f2t,{children:"Type your message here",className:`${Sd}__label`,htmlFor:"text-input"}),v2t=e=>{$.useEffect(()=>{const{current:t}=e,n=()=>{t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)};return t&&(t.addEventListener("input",n),n()),()=>{t&&t.removeEventListener("input",n)}},[e])},GTe=$.forwardRef(function(t,n){const{setInput:r}=$.useContext(Yh),i=$.useContext(WN),o=$.useRef(null);v2t(o);const s=!i||i.length===0;return $.useEffect(()=>{o&&o.current&&o.current.focus()},[o]),$.createElement(m2t,{...t,"data-testid":"text-input",id:"text-input",onChange:a=>t.onChange??(r&&r(l=>({...l,text:a.target.value}))),placeholder:t.placeholder??s?"Ask anything...":"Message Raven",ref:a=>{o.current=a,typeof n=="function"?n(a):n&&(n.current=a)},autoFocus:!0})}),YTe=an(WTe,{className:`${Sd}__input-container`}),y2t=e=>!!(e!=null&&e.text),b2t=e=>{var t;return!!((t=e==null?void 0:e.files)!=null&&t.length)},Xh=()=>{const{input:e,setInput:t,error:n,setError:r}=$.useContext(Yh),i=$.useContext(gTe),{allowAttachments:o,maxAttachmentSize:s,maxAttachments:a}=$.useContext(vTe),l=W9(),c=$.useContext(H9),u=$.useContext(qN),d=$.useContext(UCe),f=$.useRef(null),h=$.useContext(KN),[p,m]=$.useState(!1),[g,v]=$.useState(!1),b=y2t(e),w=b2t(e),x=async()=>{var T;if(g||!(w||b))return;v(!0);const C=[];if(b){const A={text:e.text};C.push(A)}if(w)for(const A of e.files){const O=await A.arrayBuffer(),R=z9(A),I={bytes:new Uint8Array(O)};gDt(R)?C.push({document:{name:mDt(A),format:R,source:I}}):vDt(R)&&C.push({image:{format:R,source:I}})}i&&i({content:C,aiContext:wc(d)?d():void 0,toolConfiguration:_Dt(c)}
1111),r==null||r(void 0),v(!1),(T=f.current)==null||T.reset(),t&&t({text:"",files:[]})},E=k=>{k.preventDefault(),x()},S=k=>{const{key:C,shiftKey:T}=k;C==="Enter"&&!T&&!p&&(k.preventDefault(),x())},_=$.useCallback(async k=>{const C=(e==null?void 0:e.files)??[],{acceptedFiles:T,hasMaxAttachmentsError:A,hasMaxAttachmentSizeError:O,hasUnsupportedFileError:R}=await yDt({files:[...k,...C],maxAttachments:a,maxAttachmentSize:s});if(A||O||R){const I=[];A&&I.push(l.getMaxAttachmentErrorText(a)),R&&I.push(l.getAttachmentFormatErrorText([...V9])),O&&I.push(l.getAttachmentSizeErrorText(j9((s-814)/1.37,!0))),r==null||r(I.join(" "))}else r==null||r(void 0);t==null||t(I=>({...I,files:T}))},[t,e,l,s,a,r]);return h!=null&&h.Form?$.createElement(h.Form,{handleSubmit:E,input:e,setInput:t,onValidate:_,allowAttachments:o,isLoading:u??g,error:n,setError:r}):$.createElement("form",{className:`${Sd}__form`,onSubmit:E,method:"post",ref:f},o?$.createElement(g_,null):null,$.createElement(YTe,null,$.createElement(g2t,null,$.createElement(qTe,null)),$.createElement(GTe,{onKeyDown:S,onCompositionStart:()=>m(!0),onCompositionEnd:()=>m(!1)}),$.createElement(G9,null)),$.createElement(KTe,null,$.createElement(HTe,null)))};Xh.AttachFile=g_;Xh.InputContainer=YTe;Xh.Label=qTe;Xh.TextInput=GTe;Xh.SendButton=KTe;Xh.SendIcon=HTe;const w2t=y.createContext({theme:uTe(),colorMode:void 0}),Y9={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",aspectRatio:"aspectRatio",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",borderColor:"borderColor",borderWidth:"borderWidth",borderStyle:"borderStyle",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"},x2t={Message:{dismissLabel:"Dismiss message"}},h4={backgroundColor:"colors",borderColor:"colors",borderWidth:"borderWidths",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},E2t=e=>e in h4,XTe=e=>typeof e=="string"&&e.length===0,Cie=e=>e==null||XTe(e),ZN=e=>Object.keys(e),X9=(e,t,n)=>{if(typeof t!="string")return t;if(t.includes(" "))return t.split(" ").map(r=>X9(e,r,n)).join(" ");if(E2t(e)){const r=t.split("."),i=h4[e];let o=n[i];for(let s=0;s<r.length;s++){if(o){o=o[r[s]];continue}break}return HN(o)?`var(--${B9({path:[h4[e],...r]})})`:t}return t},S2t=({breakpoint:e,breakpoints:t,values:n})=>{const r=n[e];if(r!==void 0)return r;const i=ZN(t).sort((s,a)=>t[a]-t[s]),o=i.slice(i.indexOf(e));for(const s of o){const a=n[s];if(a!==void 0)return a}return null},_2t=e=>ZN(e).reduce((t,n)=>n in KCe.breakpoints.values?{...t,[n]:e[n]}:t,{}),k2t=({breakpoint:e,breakpoints:t,values:n})=>{let r={};const i=ZN(t).sort((o,s)=>t[o]-t[s]);
1111return Array.isArray(n)?n.forEach((o,s)=>{r[i[s]]=o}):typeof n=="object"&&(r=_2t(n)),S2t({breakpoint:e,breakpoints:t,values:r})},C2t=({breakpoints:e})=>{const t=ZN(e).sort((n,r)=>e[r]-e[n]);return t.map((n,r)=>{let i="";const o=e[n],s=t[r-1],a=s?e[s]-1:null;return o>=0&&(i=`(min-width: ${o}px)`),a!==null&&(i&&(i+=" and "),i+=`(max-width: ${a}px)`),{breakpoint:n,query:i,maxWidth:a,minWidth:o}})},T2t=typeof window>"u"?y.useEffect:y.useLayoutEffect,A2t=({breakpoints:e,defaultBreakpoint:t})=>{const r=typeof window<"u"&&typeof window.matchMedia<"u"?window.matchMedia:null,i=y.useMemo(()=>C2t({breakpoints:e}),[e]),[o,s]=y.useState(t),a=y.useCallback((l,c)=>{l&&s(c)},[s]);return T2t(()=>{if(!r)return;const l=i.map(({query:c,breakpoint:u})=>{const d=r(c);a(d.matches,u);const f=h=>{h.matches&&s(u)};return d.addEventListener("change",f),()=>d.removeEventListener("change",f)});return()=>{l.forEach(c=>c())}},[e,s,r,i]),y.useDebugValue(o,l=>l),o},O2t=e=>typeof e>"u"||typeof e.theme>"u"?uTe():e.theme,P2t=()=>{const e=y.useContext(w2t);return O2t(e)},I2t=({value:e,propKey:t,tokens:n})=>HN(e)?e.toString():tg(e)?tg(t)?X9(t,e,n):e:null,R2t=e=>e==="auto"||typeof e=="number"&&!isNaN(e)||typeof e=="string"&&!isNaN(parseFloat(e)),w$=e=>e==="auto"?"auto":`span ${e}`,Tie=e=>R2t(e)?w$(e):Array.isArray(e)?e.map(t=>
1111w$(t)):typeof e=="object"&&e!=null?Object.entries(e).reduce((t,[n,r])=>({...t,[n]:w$(r)}),{}):null,M2t=e=>{const{rowSpan:t,columnSpan:n,row:r,column:i,...o}=e,{rowFromSpanValue:s,columnFromSpanValue:a}=y.useMemo(()=>({rowFromSpanValue:Tie(t),columnFromSpanValue:Tie(n)}),[t,n]);return{row:Cie(r)?s:r,column:Cie(i)?a:i,...o}},N2t=e=>e in Y9,D2t=({props:e={},style:t={},breakpoint:n,breakpoints:r,tokens:i})=>{const o={};return Object.keys(e).filter(s=>e[s]!==null).forEach(s=>{if(N2t(s)){const a=e[s];if(a==null||XTe(a))return;const l=Y9[s];let c="";HN(a)?c=a.toString():typeof a=="string"?c=X9(s,a,i):typeof a=="number"?c=a:typeof a=="object"&&(c=I2t({propKey:s,tokens:i,value:k2t({values:a,breakpoint:n,breakpoints:r})})),t={...t,[l]:c}}else typeof e[s]<"u"&&(o[s]=e[s])}),{propStyles:t,nonStyleProps:o}},L2t=(e,t)=>{const{breakpoints:{values:n,defaultBreakpoint:r},tokens:i}=P2t(),o=A2t({breakpoints:n,defaultBreakpoint:r}),s=M2t(e);return y.useMemo(()=>D2t({props:s,style:t,breakpoint:o,breakpoints:n,tokens:i}),[s,t,n,o,i])},wr=e=>y.forwardRef(e),$2t=({as:e="div",children:t,testId:n,ariaLabel:r,isDisabled:i,style:o,inert:s,...a},l)=>{const{propStyles:c,nonStyleProps:u}=L2t(a,o);return y.createElement(e,{"aria-label":r,"data-testid":n,disabled:i,ref:l,inert:s?"":null,style:c,...u},t)},Mt=wr($2t);Mt.displayName="View";const F2t=y.createContext({});function Pg(e){const t=y.useContext(F2t);if(e&&t)return t[e]}const B2t=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))},j2t=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))},z2t=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))},U2t=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},V2t=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},W2t="amplify-id",H2t=Lb.useId||(()=>{});let K2t=0;const Aie=e=>{const[t,n]=y.useState(H2t());return V2t(()=>{e||n(r=>r??String(K2t++))},[e]),e??(t?`${W2t}-${t}`:"")},q2t=y.createContext({isFieldsetDisabled:!1}),ZTe=e=>{let n=y.useContext(q2t).isFieldsetDisabled;return(n===void 0||n===!1)&&(n=e),{isFieldsetDisabled:n}},G2t=({className:e,children:t,...n},r)=>y.createElement(Mt,{className:Ft(fe.Flex,e),ref:r,...n},t),Zh=wr(G2t);Zh.displayName="Flex";const Y2t="linear-empty",X2t="linear-filled",Z2t="circular-empty",Q2t="circular-filled",Oie=8,p4=42,cC=2*p4*Math.PI,J2t=({className:e,filledColor:t,emptyColor:n,size:r,variation:i,isDeterminate:o=!1,isPercentageTextHidden:s=!1,percentage:a=0,...l},c)=>{a=Math.min(a,100),a=Math.max(a,0);const u=`${a}%`,d=Ft(fe.Loader,jr(fe.Loader,r),jr(fe.Loader,i),ad(fe.Loader,"determinate",o),e),f=y.createElement("g",null,y.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(n)},"data-testid":Y2t}),y.createElement("line",{x1:"0",x2:o?u:"100%",y1:"50%",y2:"50%",style:{stroke:o&&a===0?"none":t?String(t):void 0},"data-testid":X2t}),o?y.createElement("text",{"aria-live":"polite",className:Ft(fe.LoaderLabel,s?fe.VisuallyHidden:null),x:`${-1+a}%`,y:"200%"},u):null),h=y.createElement("g",null,y.createElement("circle",{cx:"50%",cy:"50%",r:`${p4}%`,strokeWidth:`${Oie}%`,style:{stroke:String(n)},"data-testid":Z2t}),y.createElement("circle",{cx:"50%",cy:"50%",r:`${p4}%`,strokeWidth:`${Oie}%`,style:{stroke:String(t),strokeDasharray:o?`${cC}% ${cC}%`:void 0,strokeDashoffset:o?`${cC-cC*a/100}%`:void 0},"data-testid":Q2t}),o?y.createElement("text",{"aria-live":"polite",className:Ft(fe.LoaderLabel,s?fe.VisuallyHidden:null),x:"130%",y:"80%"},u):null);return y.createElement(Mt,{as:"svg","aria-valuenow":o?a:void 0,className:d,ref:c,role:"progressbar",...l},i==="linear"?f:h)},Z9=wr(J2t);Z9.displayName="Loader";const eLt=["link","primary",void 0],tLt=({className:e,children:t,colorTheme:n,isFullWidth:r=!1,isDisabled:i,isLoading:o,loadingText:s="",size:a,type:l="button",variation:c,...u},d)=>{const f=eLt.includes(c)&&n?`${c??"outlined"}--${n}`:void 0,{isFieldsetDisabled:h}=ZTe(i??o??u.disabled),p=Ft(fe.Button,fe.FieldGroupControl,jr(fe.Button,c),jr(fe.Button,f),jr(fe.Button,a),ad(fe.Button,"disabled",h),ad(fe.Button,"loading",o),ad(fe.Button,"fullwidth",r),e);return y.createElement(Mt,{ref:d,as:"button",className:p,isDisabled:h,type:l,...u},o?y.createElement(Zh,{as:"span",className:fe.ButtonLoaderWrapper},y.createElement(Z9,{size:a}),s||null):t)},ng=wr(tLt);ng.displayName="Button";const QTe=e=>{const{className:t,size:n,...r}=e;return y.createElement(Mt,{as:"span",width:n??"1em",height:n??"1em",className:Ft(fe.Icon,t),...r},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n?{width:n,height:n}:void 0},y.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},nLt=({as:e="p",className:t,children:n,isTruncated:r,variation:i,...o},s)=>{const a=Ft(fe.Text,jr(fe.Text,i),ad(fe.Text,"truncated",r),t);return y.createElement(Mt,{as:e,className:a,ref:s,...o},n)},rg=wr(nLt);rg.displayName="Text";const rLt="qa-field-description",JTe=({descriptiveText:e,labelHidden:t,...n})=>e?y.createElement(rg,{"data-testid":rLt,className:Ft(fe.FieldDescription,{[fe.VisuallyHidden]:t}),...n},e):null;JTe.displayName="FieldDescription";const eAe=({errorMessage:e,hasError:t,...n})=>t&&e?y.createElement(rg,{className:fe.FieldErrorMessage,...n},e):null;eAe.displayName="FieldErrorMessage";const iLt=({children:e,className:t,visuallyHidden:n,...r},i)=>y.createElement(Mt,{as:"label",className:Ft(fe.Label,t,{[fe.VisuallyHidden]:n}),ref:i,...r},e),tAe=wr(iLt);tAe.displayName="Label";function nAe({externalRef:e,internalRef:t}){return y.useCallback(n=>{wc(e)?e(n):e&&(e.current=n),t.current=n},[e,t])}const oLt=({children:e,className:t,orientation:n,autoScroll:r,...i},o)=>{const s=y.useRef(null),a=nAe({externalRef:o,internalRef:s});return y.useEffect(()=>{var l,c,u;r&&((u=s.current)==null||u.scrollTo({top:(l=s.current)==null?void 0:l.scrollHeight,left:(c=s.current)==null?void 0:c.scrollWidth,behavior:r}))},[e,r]),y.createElement(Mt,{className:Ft(fe.ScrollView,jr(fe.ScrollView,n),t),ref:a,...i},e)},rAe=wr(oLt);rAe.displayName="ScrollView";const Pie=(e,t)=>e&&t?`${e}-${t}`:void 0,sLt=e=>e in Y9,aLt=e=>{const t={styleProps:{},rest:{}};return Object.keys(e).forEach(n=>{sLt(n)?t.styleProps={...t.styleProps,[n]:e[n]}:t.rest={...t.rest,[n]:e[n]}}),t},lLt=e=>{const t=e.filter(n=>n!==void 0).join(" ");return t.length>0?t:void 0},cLt="error",uLt="description",iAe=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",fill:"
1111currentColor"})))},dLt=({className:e,...t},n)=>y.createElement(Mt,{as:"img",ref:n,className:Ft(fe.Image,e),...t}),QN=wr(dLt);QN.displayName="Image";const fLt=({className:e,children:t,variation:n,colorTheme:r,size:i,src:o,alt:s,isLoading:a,...l},c)=>{const u=Pg("avatar"),d=(u==null?void 0:u.user)??y.createElement(iAe,null),f=Ft(fe.Avatar,e,jr(fe.Avatar,n),jr(fe.Avatar,i),jr(fe.Avatar,r));return y.createElement(Mt,{as:"span",className:f,ref:c,...l},o?y.createElement(QN,{className:fe.AvatarImage,src:o,alt:s}):t??y.createElement(Mt,{as:"span",className:fe.AvatarIcon,"aria-hidden":"true"},d),a?y.createElement(Z9,{className:fe.AvatarLoader}):null)},Q9=wr(fLt);Q9.displayName="Avatar";const hLt=({className:e,children:t,variation:n,...r},i)=>y.createElement(Mt,{className:Ft(fe.Card,jr(fe.Card,n),e),ref:i,...r},t),pLt=wr(hLt);pLt.displayName="Card";const mLt=({as:e="span",children:t,className:n,...r},i)=>y.createElement(Mt,{as:e,className:Ft(fe.VisuallyHidden,n),ref:i,...r},t),J9=wr(mLt);J9.displayName="VisuallyHidden";const v_=y.createContext("inactive"),gLt=({value:e,children:t})=>y.createElement(v_.Provider,{value:e},t),vLt=({className:e,children:t,testId:n,isDisabled:r,onDragEnter:i,onDragLeave:o,onDragOver:s,onDragStart:a,onDrop:l,...c},u)=>{const d=$.useContext(v_),f=r?{}:{onDragEnter:i,onDragLeave:o,onDragOver:s,onDragStart:a,onDrop:l};return $.createElement(Mt,{...c,...f,isDisabled:r,className:Ft(e,ad(fe.DropZone,"rejected",d==="reject"),ad(fe.DropZone,"accepted",d==="accept"),ad(fe.DropZone,"disabled",r),fe.DropZone),"data-testid":n,ref:u},t)},oAe=wr(vLt);oAe.displayName="DropZoneContainer";const yLt=({children:e})=>{const t=y.useContext(v_);if(!t)throw new Error("`DropZone.Accept` must be used inside a DropZone");return t==="accept"?y.createElement(y.Fragment,null,e):null},bLt=({children:e})=>{const t=y.useContext(v_);if(!t)throw new Error("`DropZone.Rejected` must be used inside a DropZone");return t==="reject"?y.createElement(y.Fragment,null,e):null},wLt=({children:e})=>{const t=y.useContext(v_);if(!t)throw new Error("`DropZone.Default` must be used inside a DropZone");return t==="inactive"?y.createElement(y.Fragment,null,e):null},xLt=({children:e,testId:t,isDisabled:n,acceptedFileTypes:r,onDropComplete:i,...o},s)=>{const{dragState:a,onDragEnter:l,onDragLeave:c,onDragOver:u,onDragStart:d,onDrop:f}=dTe({acceptedFileTypes:r,onDropComplete:i,...o});return y.createElement(gLt,{value:a},y.createElement(oAe,{...o,testId:t,isDisabled:n,onDragStart:d,onDragEnter:l,onDragLeave:c,onDrop:f,onDragOver:u,ref:s},e))},sAe=Object.assign(wr(xLt),{Accepted:yLt,Rejected:bLt,Default:wLt});sAe.displayName="DropZone";const ELt=({children:e,className:t,...n},r)=>y.createElement(Zh,{className:Ft(fe.MessageHeading,t),ref:r,...n},e),aAe=wr(ELt);aAe.displayName="MessageHeading";const lAe=y.createContext({dismissed:!1,setDismissed:()=>{}}),cAe=()=>y.useContext(lAe),SLt=({className:e,...t},n)=>{const r=Pg("message"),{colorTheme:i}=cAe();let o;switch(i){case"info":o=(r==null?void 0:r.info)??y.createElement(z2t,null);break;case"error":o=(r==null?void 0:r.error)??y.createElement(j2t,null);break;case"warning":o=(r==null?void 0:r.warning)??y.createElement(U2t,null);break;case"success":o=(r==null?void 0:r.success)??y.createElement(B2t,null);break}return o?y.createElement(Mt,{className:Ft(fe.MessageIcon,e),"aria-hidden":"true",ref:n,...t},o):null},uAe=wr(SLt);uAe.displayName="MessageIcon";const _Lt=({onDismiss:e,dismissLabel:t,hasIcon:n=!0,children:r,className:i,...o},s)=>{const{setDismissed:a}=cAe(),l=Pg("message"),c=y.useCallback(()=>{a(!0),wc(e)&&e()},[a,e]);return y.createElement(ng,{variation:"link",colorTheme:"overlay",className:Ft(fe.MessageDismiss,i),ref:s,onClick:c,...o},n?(l==null?void 0:l.close)??y.createElement(QTe,{"aria-hidden":"true"}):null,r??y.createElement(J9,null,t??x2t.Message.dismissLabel))},dAe=wr(_Lt);dAe.displayName="MessageContent";const kLt=({children:e,className:t,...n},r)=>y.createElement(Zh,{className:Ft(fe.MessageContent,t),ref:r,...n},e),fAe=wr(kLt);fAe.displayName="MessageContent";const CLt=({children:e,className:t,colorTheme:n="neutral",variation:r="filled",...i},o)=>{const[s,a]=y.useState(!1),l=y.useMemo(()=>({colorTheme:n,dismissed:s,setDismissed:a}),[n,s]);return y.createElement(lAe.Provider,{value:l},s?null:y.createElement(Zh,{className:Ft(fe.Message,jr(fe.Message,r),jr(fe.Message,n),t),ref:o,...i},e))},hAe=wr(CLt);hAe.displayName="MessageContainer";const TLt=({children:e,heading:t,dismissLabel:n,isDismissible:r,onDismiss:i,hasIcon:o=!0,colorTheme:s="neutral",variation:a="filled",...l},c)=>y.createElement(hAe,{colorTheme:s,variation:a,ref:c,...l},o?y.createElement(uAe,null):null,y.createElement(fAe,null,t?y.createElement(aAe,null,t):null,e),r?y.createElement(dAe,{onDismiss:i,dismissLabel:n}):null),pAe=wr(TLt);pAe.displayName="Message";const ALt="--amplify-components-placeholder-start-color",OLt="--amplify-components-placeholder-end-color",PLt=({className:e,children:t,endColor:n,isLoaded:r,size:i,startColor:o,...s},a)=>r?y.createElement(y.Fragment,null,t):y.createElement(Mt,{className:Ft(fe.Placeholder,jr(fe.Placeholder,i),e),ref:a,style:{[ALt]:o&&`${o}`,[OLt]:n&&`${n}`},...s}),WT=wr(PLt);WT.displayName="Placeholder";const ILt=({className:e,isDisabled:t,isReadOnly:n,isRequired:r,size:i,hasError:o=!1,variation:s,...a},l)=>{const c=Ft(fe.Textarea,fe.FieldGroupControl,jr(fe.Textarea,s),jr(fe.Textarea,i),ad(fe.Textarea,"error",o),e),{isFieldsetDisabled:u}=ZTe(t);return y.createElement(Mt,{"aria-invalid":o,as:"textarea",className:c,disabled:u,readOnly:n,ref:l,required:r,...a})},e8=wr(ILt);e8.displayName="TextArea";const RLt=(e,t)=>
1111{y.useEffect(()=>{const n=()=>{if(e){e.style.height="auto";const{scrollHeight:r}=e;e.style.height=`${r}px`}};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e,t])},MLt=({value:e,...t},n)=>{const r=y.useRef(null);RLt(r.current,e);const i=nAe({externalRef:n,internalRef:r});return y.createElement(e8,{...t,ref:i,value:e})},mAe=wr(MLt);mAe.displayName="AutoresizeTextArea";const Iie=3,NLt=(e,t)=>{const{className:n,descriptiveText:r,errorMessage:i,hasError:o=!1,id:s,label:a,labelHidden:l=!1,rows:c,size:u,testId:d,inputStyles:f,autoResize:h,resize:p,...m}=e,g=Aie(s),v=Aie(),b=r?Pie(v,uLt):void 0,w=o?Pie(v,cLt):void 0,x=lLt([w,b]),{styleProps:E,rest:S}=aLt(m);return y.createElement(Zh,{className:Ft(fe.Field,jr(fe.Field,u),fe.TextAreaField,n),testId:d,...E},y.createElement(tAe,{htmlFor:g,visuallyHidden:l},a),y.createElement(JTe,{id:b,labelHidden:l,descriptiveText:r}),h?y.createElement(mAe,{"aria-describedby":x,hasError:o,id:g,ref:t,rows:c??Iie,size:u,resize:p,...S,...f}):y.createElement(e8,{"aria-describedby":x,hasError:o,id:g,ref:t,rows:c??Iie,size:u,resize:p,...S,...f}),y.createElement(eAe,{id:w,hasError:o,errorMessage:i}))},gAe=wr(NLt);gAe.displayName="TextAreaField";const DLt=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8548 1.40981C12.693 0.801759 11.3069 0.801759 10.1451 1.40981L2.14518 5.59679C0.826447 6.28698 0 7.65232 0 9.14075V16.8593C0 18.3477 0.826447 19.713 2.14518 20.4032L10.1451 24.5902C11.3069 25.1982 12.693 25.1982 13.8548 24.5902L21.8547 20.4032C23.1735 19.713 23.9999 18.3477 23.9999 16.8592V9.14075C23.9999 7.65232 23.1735 6.28698 21.8547 5.59679L13.8548 1.40981ZM12.9258 6.05676C12.5872 5.22732 11.4127 5.22732 11.0741 6.05676L9.42869 10.0877C9.31871 10.3572 9.0968 10.5653 8.82088 10.6579L4.665 12.0519C3.7557 12.3569 3.7557 13.6431 4.665 13.9481L8.82088 15.3421C9.0968 15.4347 9.31871 15.6428 9.42869 15.9123L11.0741 19.9432C11.4127 20.7727 12.5872 20.7727 12.9258 19.9432L14.5712 15.9123C14.6812 15.6428 14.9031 15.4347 15.179 15.3421L19.3349 13.9481C20.2442 13.6431 20.2442 12.3569 19.3349 12.0519L15.179 10.6579C14.9031 10.5653 14.6812 10.3572 14.5712 10.0877L12.9258 6.05676Z",fill:"currentColor"})))},LLt=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3928 1.93491L4.23565 11.8583C2.3257 13.7243 2.3257 16.7379 4.23565 18.6039C6.161 20.4849 9.29378 20.4849 11.2191 18.6039L21.2003 8.85257C22.3571 7.72235 22.3571 5.86149 21.2003 4.73128C20.0748 3.63171 18.2753 3.63857 17.1582 4.74668L7.17456 14.6503C6.86543 14.9523 6.8654 15.4303 7.17454 15.7323C7.49908 16.0494 8.03642 16.0494 8.36095 15.7323L18.338 5.98493L19.9926 7.67849L10.0155 17.4259C8.77102 18.6417 6.76446 18.6417 5.51997 17.4259C4.26127 16.1962 4.26007 14.1915 5.51637 12.9603L15.4908 3.06578C17.5259 1.04696 20.8044 1.03447 22.8548 3.03772C24.9625 5.09681 24.9625 8.48703 22.8548 10.5461L12.8737 20.2975C10.0284 23.0773 5.42639 23.0773 2.58108 20.2975C-0.279632 17.5026 -0.279632 12.9596 2.58108 10.1647L12.7383 0.241356L14.3928 1.93491Z",fill:"currentColor"})))},vAe=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 -960 960 960",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z",fill:"currentColor"})))},$Lt=e=>{const{className:t,...n}=e;return y.createElement(Mt,{as:"span",width:"1em",height:"1em",className:Ft(fe.Icon,t),...n},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.34374 0.774436C1.72319 0.451324 2.26162 0.393083 2.70138 0.627584L23.173 11.544C23.5704 11.7559 23.8177 12.1704 23.8155 12.6207C23.8133 13.071 23.5618 13.4831 23.1624 13.691L2.69073 24.3477C2.24914 24.5776 1.71196 24.5144 1.33575 24.1884C0.959534 23.8624 0.820634 23.339
11116 0.98539 22.8698L4.58366 12.6099L0.982433 2.09133C0.821002 1.61982 0.964295 1.09755 1.34374 0.774436ZM6.72819 13.8281L4.29043 20.779L17.6432 13.8281H6.72819ZM17.7477 11.4013H6.735L4.27542 4.21725L17.7477 11.4013Z",fill:"currentColor"})))},{Text:yAe,View:hy}=Og,Rie="amplify-ai-conversation__message__list",Vc="amplify-ai-conversation__message",FLt=e=>{const t=$.useContext(Ag),n=$.useContext(x0);return $.createElement(QN,{className:Ft(`${Vc}__image`,t&&`${Vc}__image--${t}`,`${Vc}__image--${n}`),...e})},BLt=$.forwardRef(function(t,n){return $.createElement(yAe,{ref:n,className:`${Vc}__text`,...t})}),jLt=({toolUse:e})=>{const t=$.useContext(H9)??{},n=$.useContext(bTe),{name:r,input:i}=e;if(!(!r||!r.startsWith(GN))){const o=t[r];if(o){const s=o.component;return $.createElement(s,{...i})}if(n)return $.createElement(n,{...i})}},zLt=({format:e,name:t,source:n})=>{const r=Pg("aiConversation"),i=(r==null?void 0:r.document)??$.createElement(vAe,null);return $.createElement(hy,{className:fe.AIConversationAttachment},i,$.createElement(hy,{className:fe.AIConversationAttachmentName},t,".",e),$.createElement(hy,{className:fe.AIConversationAttachmentSize},j9(n.bytes.length,!0)))},t8=({message:e})=>{const t=$.useContext(CDt);return $.createElement($.Fragment,null,e.content.map((n,r)=>{var i,o;if(n.text)return t!=null&&t.text?$.createElement($.Fragment,{key:r},t.text({text:n.text})):$.createElement(BLt,{"data-testid":"text-content",key:r},n.text);if(n.image)return t!=null&&t.image?$.createElement($.Fragment,{key:r},t==null?void 0:t.image({image:n.image})):$.createElement(FLt,{"data-testid":"image-content",key:r,alt:"",src:pDt((i=n.image)==null?void 0:i.source.bytes,(o=n.image)==null?void 0:o.format)});if(n.document)return $.createElement(zLt,{key:r,...n.document});if(n.toolUse)return $.createElement(jLt,{toolUse:n.toolUse,key:r})}))},ULt=an(yAe,{className:`${Vc}__timestamp`}),bAe=$.forwardRef(function(t,n){const r=$.useContext(Ag);return $.createElement(hy,{ref:n,className:`${Vc}__header__container ${Vc}__header__container--${r}`,...t})}),wAe=$.forwardRef(function(t,n){const r=$.useContext(Ag),i=$.useContext(x0);return $.createElement(hy,{ref:n,className:`${Vc} ${Vc}--${r} ${Vc}--${i}`,...t})}),xAe=$.forwardRef(function(t,n){const r=$.useContext(Ag);return $.createElement(hy,{ref:n,className:`${Rie}__container ${Rie}__container--${r}`,"aria-live":"assertive",...t})}),Qh=()=>{const e=$.useContext(WN),t=$.useContext(KN),{getMessageTimestampText:n}=W9(),r=$.useRef([]),[i,o]=$.useState(e?e.length-1:0),s=c=>o(c),a=$.useCallback((c,{key:u})=>{var f,h,p,m;let d;switch(u){case"ArrowUp":d=Math.max(0,c-1),o(d),(f=r.current[d])==null||f.focus();break;case"ArrowDown":d=Math.min(c+1,e.length-1),o(d),(h=r.current[d])==null||h.focus();break;case"Home":d=0,o(d),(p=r.current[d])==null||p.focus();break;case"End":d=e.length-1,o(d),(m=r.current[d])==null||m.focus();break}},[e]);if(t!=null&&t.MessageList)return $.createElement(t.MessageList,{messages:e});const l=(e==null?void 0:e.filter(c=>c.content.some(u=>{var d;return u.image??u.text??((d=u.toolUse)==null?void 0:d.name.startsWith(GN))})))??[];return $.createElement(xAe,null,l==null?void 0:l.map((c,u)=>$.createElement(x0.Provider,{value:c.role,key:`message-${u}`},$.createElement(wAe,{"data-testid":"message",key:`message-${u}`,tabIndex:i===u?0:-1,onFocus:()=>s(u),onKeyDown:d=>a(u,d),ref:d=>{r.current[u]=d}},$.createElement(bAe,null,$.createElement(m_,null),$.createElement(ULt,null,n(new Date(c.createdAt)))),$.createElement(t8,{message:c}),c.role==="assistant"?$.createElement(p_,{message:c,focusable:i===u}):null))))};Qh.ActionsBar=p_;Qh.Avatar=m_;Qh.Container=wAe;Qh.HeaderContainer=bAe;Qh.Layout=xAe;Qh.Message=t8;const{View:EAe,Button:VLt}=Og,SAe="ai-prompts",_Ae=`${SAe}__prompt`,WLt=`${_Ae}__card`,kAe=an(VLt,{className:WLt,type:"button"}),HLt=an(EAe,{className:`${_Ae}__buttongroup`}),CAe=$.forwardRef(function(t,n){const r=$.useContext($9),{setInput:i}=$.useContext(Yh);if(r)return $.createElement(HLt,{...t,ref:n},r.map((o,s)=>$.createElement(kAe,{key:s,"aria-label":o.inputText,onClick:()=>i&&i(a=>({...a,text:o.inputText}))},o.component)))}),TAe=an(EAe,{className:`${SAe}__container`}),JN=()=>{const e=$.useContext($9),t=$.useContext(KN),{setInput:n}=$.useContext(Yh);return t!=null&&t.PromptList?$.createElement(t.PromptList,{setInput:n,suggestedPrompts:e}):$.createElement(TAe,null,$.createElement(CAe,null))};JN.Container=TAe;JN.PromptGroup=CAe;JN.PromptCard=kAe;const AAe=({aiContext:e,actions:t,allowAttachments:n,avatars:r,children:i,controls:o,displayText:s,handleSendMessage:a,isLoading:l,maxAttachmentSize:c,maxAttachments:u,messages:d,messageRenderer:f,responseComponents:h,suggestedPrompts:p,variant:m,welcomeMessage:g,FallbackResponseComponent:v})=>{const b={...mTe,...s};return $.createElement(wDt,{controls:o},$.createElement(OIt,{suggestedPrompts:p},$.createElement(ODt,{welcomeMessage:g},$.createElement(PDt,{FallbackComponent:v},$.createElement(TDt,{...f},$.createElement(SDt,{responseComponents:h},$.createElement(ADt,{allowAttachments:n,maxAttachmentSize:c,maxAttachments:u},$.createElement(bDt,{...b},$.createElement(TIt,null,$.createElement(kDt,{handleSendMessage:a},$.createElement(CIt,{avatars:r},$.createElement(kIt,{actions:t},$.createElement(PIt,{variant:m},$.createElement(AIt,{messages:d},$.createElement(_It,{aiContext:e},$.createElement(xDt,{isLoading:l},i))))))))))))))))},OAe=()=>{const e=y.useContext(WN),t=y.useContext(yTe);if(!e||e.length===0)return y.createElement(y.Fragment,null,t,y.createElement(JN,null))};function KLt(e){const[t,n]=y.useState("smooth"),r=e.length,i=aDt(r,!0),o=y.useRef(),s=({currentTarget:a})=>{if(t!=="smooth")return;const{scrollTop:l}=a;o.current&&l<o.current?(n(void 0),o.current=void 0):o.current=l};return y.useEffect(()=>{i&&n("smooth")},[i]),{autoScroll:t,onScroll:s}}const Mie=({role:e})=>{const t=y.useContext(Ag);return y.createElement(Mt,{className:Ft(fe.AIConversationMessage,jr(fe.AIConversationMessage,t),jr(fe.AIConversationMessage,e))},y.createElement(Mt,{className:fe.AIConversationMessageAvatar},y.createElement(Q9,null)),y.createElement(Mt,{className:fe.AIConversationMessageBody},y.createElement(WT,{width:"25%"}),y.createElement(WT,{width:"50%"}),y.createElement(WT,{width:"25%"})))},qLt=({message:e})=>{const t=y.useContext(VN),n=y.useContext(x0),{getMessageTimestampText:r}
1111=W9(),i=n==="assistant"?t==null?void 0:t.ai:t==null?void 0:t.user;return y.createElement(Mt,{className:fe.AIConversationMessageSender},y.createElement(rg,{className:fe.AIConversationMessageSenderUsername},i==null?void 0:i.username),y.createElement(rg,{className:fe.AIConversationMessageSenderTimestamp},r(new Date(e.createdAt))))},GLt=({message:e})=>{const t=y.useContext(L9);return t?y.createElement(Mt,{className:fe.AIConversationMessageActions},t.map((n,r)=>y.createElement(ng,{key:r,size:"small",onClick:()=>{n.handler(e)}},n.component))):null},YLt=({message:e})=>{const t=y.useContext(VN),n=y.useContext(Ag),{isLoading:r}=e,i=e.role==="assistant"?t==null?void 0:t.ai:t==null?void 0:t.user;return y.createElement(x0.Provider,{value:e.role},y.createElement(Mt,{className:Ft(fe.AIConversationMessage,jr(fe.AIConversationMessage,n),jr(fe.AIConversationMessage,e.role))},y.createElement(Mt,{className:fe.AIConversationMessageAvatar},y.createElement(Q9,{isLoading:r},i==null?void 0:i.avatar)),y.createElement(Mt,{className:fe.AIConversationMessageBody},y.createElement(qLt,{message:e}),y.createElement(Mt,{className:fe.AIConversationMessageContent},y.createElement(t8,{message:e})),e.role==="assistant"?y.createElement(GLt,{message:e}):null)))},XLt=({messages:e})=>{const t=y.useContext(qN),n=(e==null?void 0:e.filter(r=>r.content.some(i=>{var o;return i.image??i.text??i.document??((o=i.toolUse)==null?void 0:o.name.startsWith(GN))})))??[];return y.createElement(Mt,{className:fe.AIConversationMessageList},t?y.createElement(y.Fragment,null,y.createElement(Mie,{role:"user"}),y.createElement(Mie,{role:"assistant"})):null,n.map((r,i)=>y.createElement(YLt,{key:`message-${i}`,message:r})))},ZLt=({file:e,handleRemove:t})=>{const n=Pg("aiConversation"),r=(n==null?void 0:n.remove)??y.createElement(QTe,null),i=(n==null?void 0:n.document)??y.createElement(vAe,null),o=z9(e),s=U9.has(o);return y.createElement(Mt,{className:fe.AIConversationAttachment},s?i:y.createElement(QN,{className:fe.AIConversationAttachmentImage,src:URL.createObjectURL(e),alt:e.name}),y.createElement(rg,{as:"span",className:fe.AIConversationAttachmentName},e.name),y.createElement(rg,{as:"span",className:fe.AIConversationAttachmentSize},j9(e.size,!0)),y.createElement(ng,{size:"small",variation:"link",colorTheme:"error",className:fe.AIConversationAttachmentRemove,onClick:t},r))},QLt=({files:e,setInput:t})=>!e||e.length<1?null:y.createElement(Mt,{className:fe.AIConversationAttachmentList},e==null?void 0:e.map((n,r)=>y.createElement(ZLt,{key:n.name,file:n,handleRemove:()=>{t==null||t(i=>{var o;return{...i,files:(o=i==null?void 0:i.files)==null?void 0:o.filter((s,a)=>r!==a)}})}})));function JLt(e){return"form"in e}const e$t=({children:e,allowAttachments:t,onValidate:n})=>t?y.createElement(sAe,{className:fe.AIConversationFormDropzone,onDropComplete:({acceptedFiles:r})=>{n(r)}},e):e,t$t=({setInput:e,input:t,handleSubmit:n,allowAttachments:r,onValidate:i,isLoading:o,error:s})=>{var p;const a=Pg("aiConversation"),l=(a==null?void 0:a.send)??y.createElement($Lt,null),c=(a==null?void 0:a.attach)??y.createElement(LLt,null),u=y.useRef(null),d=!((p=t==null?void 0:t.text)!=null&&p.length)||!!t.text.match(/^\s+$/),[f,h]=y.useState(!1);return y.createElement(e$t,{onValidate:i,allowAttachments:r},y.createElement(Mt,{as:"form",className:fe.AIConversationForm,onSubmit:n},r?y.createElement(ng,{className:fe.AIConversationFormAttach,onClick:()=>{var m;(m=u==null?void 0:u.current)==null||m.click(),u!=null&&u.current&&(u.current.value="")}},y.createElement("span",null,c),y.createElement(J9,null,y.createElement("input",{type:"file",tabIndex:-1,ref:u,onChange:m=>{!m.target.files||m.target.files.length===0||i(Array.from(m.target.files))},multiple:!0,accept:[...V9].map(m=>`.${m}`).join(","),"data-testid":"hidden-file-input"}))):null,y.createElement(gAe,{className:fe.AIConversationFormField,label:"input",labelHidden:!0,autoResize:!0,flex:"1",rows:1,value:(t==null?void 0:t.text)??"",testId:"text-input",onCompositionStart:()=>h(!0),onCompositionUpdate:m=>{var v;const g=((v=m==null?void 0:m.currentTarget)==null?void 0:v.value)||"";e==null||e(b=>({...b,text:g}))},onCompositionEnd:m=>{var v;h(!1);const g=((v=m==null?void 0:m.currentTarget)==null?void 0:v.value)||"";e==null||e(b=>({...b,text:g}))},onKeyDown:m=>{!m.shiftKey&&m.key==="Enter"&&!f&&JLt(m.target)&&(m.target.form.requestSubmit(),m.preventDefault())},onChange:m=>{e==null||e(g=>({...g,text:m.target.value}))}}),y.createElement(ng,{type:"submit",variation:"primary",className:fe.AIConversationFormSend,isDisabled:o??d},y.createElement("span",null,l))),s?y.createElement(pAe,{className:fe.AIConversationFormError,variation:"plain",colorTheme:"warning"},s):null,y.createElement(QLt,{setInput:e,files:t==null?void 0:t.files}))},n$t=({setInput:e,suggestedPrompts:t=[]})=>y.createElement(Zh,null,t.map(n=>y.createElement(ng,{className:fe.AIConversationPrompt,key:n.inputText,onClick:()=>{e==null||e(r=>({...r,text:n.inputText}))}},n.component))),r$t="1.5.1";function i$t({avatars:e,controls:t,messages:n,...r}){dDt({componentName:"AIConversation",packageName:"react-ai",version:r$t});const i=Pg("aiConversation"),o={ai:{username:"Assistant",avatar:(i==null?void 0:i.assistant)??y.createElement(DLt,{testId:"icon-assistant"})},user:{username:"User",avatar:(i==null?void 0:i.user)??y.createElement(iAe,{testId:"icon-user"})}},s={...r,avatars:{...o,...e},controls:{MessageList:XLt,PromptList:n$t,Form:t$t,...t},messages:n},a=KLt(n);return y.createElement(AAe,{...s},y.createElement(Zh,{className:fe.AIConversation,testId:"ai-conversation"},y.createElement(rAe,{...a,flex:"1"},y.createElement(OAe,null),y.createElement(Qh,null)),y.createElement(Xh,null)))}const fin=Object.assign(i$t,{Provider:AAe,DefaultMessage:OAe,Messages:Qh,Form:Xh});function o$t(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const s$t=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a$t=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l$t={};function Nie(e,t){return(l$t.jsx?a$t:s$t).test(e)}const c$t=/[ \t\n\f\r]/g;function u$t(e){return typeof e=="object"?e.type==="text"?Die(e.value):!1:Die(e)}function Die(e){return e.replace(c$t,"")===""}let y_=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};y_.prototype.normal={};y_.prototype.property={};y_.prototype.space=void 0;function PAe(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new y_(n,r,t)}function m4(e){return e.toLowerCase()}class Cs{constructor(t,n){this.attribute=n,this.property=t}}Cs.prototype.attribute="";Cs.prototype.booleanish=!1;Cs.prototype.boolean=!1;Cs.prototype.commaOrSpaceSeparated=!1;Cs.prototype.commaSeparated=!1;Cs.prototype.defined=!1;Cs.prototype.mustUseProperty=!1;Cs.prototype.number=!1;Cs.prototype.overloadedBoolean=!1;Cs.prototype.property="";Cs.prototype.spaceSeparated=!1;Cs.prototype.space=void 0;let d$t=0;const Tt=Ig(),Gr=Ig(),g4=Ig(),we=Ig(),Rn=Ig(),py=Ig(),Os=Ig();function Ig(){return 2**++d$t}const v4=Object.freeze(Object.defineProperty({__proto__:null,boolean:Tt,booleanish:Gr,commaOrSpaceSeparated:Os,commaSeparated:py,number:we,overloadedBoolean:g4,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),x$=Object.keys(v4);class n8 extends Cs{constructor(t,n,r,i){let o=-1;if(super(t,n),Lie(this,"space",i),typeof r=="number")for(;++o<x$.length;){const s=x$[o];Lie(this,x$[o],(r&v4[s])===v4[s])}}}n8.prototype.defined=!0;function Lie(e,t,n){n&&(e[t]=n)}function _0(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new n8(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[m4(r)]=r,n[m4(o.attribute)]=r}return new y_(t,n,e.space)}const IAe=_0({properties:{ariaActiveDescendant:null,ariaAtomic:Gr,ariaAutoComplete:null,ariaBusy:Gr,ariaChecked:Gr,ariaColCount:we,ariaColIndex:we,ariaColSpan:we,ariaControl
vendor: 5,440 bytes, line 1111
1111s:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:Gr,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:Gr,ariaFlowTo:Rn,ariaGrabbed:Gr,ariaHasPopup:null,ariaHidden:Gr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:we,ariaLive:null,ariaModal:Gr,ariaMultiLine:Gr,ariaMultiSelectable:Gr,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:we,ariaPressed:Gr,ariaReadOnly:Gr,ariaRelevant:null,ariaRequired:Gr,ariaRoleDescription:Rn,ariaRowCount:we,ariaRowIndex:we,ariaRowSpan:we,ariaSelected:Gr,ariaSetSize:we,ariaSort:null,ariaValueMax:we,ariaValueMin:we,ariaValueNow:we,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function RAe(e,t){return t in e?e[t]:t}function MAe(e,t){return RAe(e,t.toLowerCase())}const f$t=_0({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:py,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:Tt,allowPaymentRequest:Tt,allowUserMedia:Tt,alt:null,as:null,async:Tt,autoCapitalize:null,autoComplete:Rn,autoFocus:Tt,autoPlay:Tt,blocking:Rn,capture:null,charSet:null,checked:Tt,cite:null,className:Rn,cols:we,colSpan:null,content:null,contentEditable:Gr,controls:Tt,controlsList:Rn,coords:we|py,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Tt,defer:Tt,dir:null,dirName:null,disabled:Tt,download:g4,draggable:Gr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Tt,formTarget:null,headers:Rn,height:we,hidden:g4,high:we,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:Tt,inputMode:null,integrity:null,is:null,isMap:Tt,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:Tt,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Tt,low:we,manifest:null,max:null,maxLength:we,media:null,method:null,min:null,minLength:we,multiple:Tt,muted:Tt,name:null,nonce:null,noModule:Tt,noValidate:Tt,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:Tt,optimum:we,pattern:null,ping:Rn,placeholder:null,playsInline:Tt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Tt,referrerPolicy:null,rel:Rn,required:Tt,reversed:Tt,rows:we,rowSpan:we,sandbox:Rn,scope:null,scoped:Tt,seamless:Tt,selected:Tt,shadowRootClonable:Tt,shadowRootDelegatesFocus:Tt,shadowRootMode:null,shape:null,size:we,sizes:null,slot:null,span:we,spellCheck:Gr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:we,step:null,style:null,tabIndex:we,target:null,title:null,translate:null,type:null,typeMustMatch:Tt,useMap:null,value:Gr,width:we,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rn,axis:null,background:null,bgColor:null,border:we,borderColor:null,bottomMargin:we,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Tt,declare:Tt,event:null,face:null,frame:null,frameBorder:null,hSpace:we,leftMargin:we,link:null,longDesc:null,lowSrc:null,marginHeight:we,marginWidth:we,noResize:Tt,noHref:Tt,noShade:Tt,noWrap:Tt,object:null,profile:null,prompt:null,rev:null,rightMargin:we,rules:null,scheme:null,scrolling:Gr,standby:null,summary:null,text:null,topMargin:we,valueType:null,version:null,vAlign:null,vLink:null,vSpace:we,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Tt,disableRemotePlayback:Tt,prefix:null,property:null,results:we,security:null,unselectable:null},space:"html",transform:MAe}),h$t=_0({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",colorRen
1111dering:"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:Os,accentHeight:we,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:we,amplitude:we,arabicForm:null,ascent:we,attributeName:null,attributeType:null,azimuth:we,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:we,by:null,calcMode:null,capHeight:we,className:Rn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
1111dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:we,diffuseConstant:we,direction:null,display:null,dur:null,divisor:we,dominantBaseline:null,download:Tt,dx:null,dy:null,edgeMode:null,editable:null,elevation:we,enableBackground:null,end:null,event:null,exponent:we,externalResourcesRequired:null,fill:null,fillOpacity:we,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:py,g2:py,glyphName:py,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:we,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:we,horizOriginX:we,horizOriginY:we,id:null,ideographic:we,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:we,k:we,k1:we,k2:we,k3:we,k4:we,kernelMatrix:Os,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:we,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:we,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:we,overlineThickness:we,paintOrder:null,panose1:null,path:null,pathLength:we,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:we,pointsAtY:we,pointsAtZ:we,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Os,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Os,rev:Os,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Os,requiredFeatures:Os,requiredFonts:Os,requiredFormats:Os,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:we,specularExponent:we,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:we,strikethroughThickness:we,string:null,stroke:null,strokeDashArray:Os,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:we,strokeOpacity:we,strokeWidth:null,style:null,surfaceScale:we,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Os,tabIndex:we,tableValues:null,target:null,targetX:we,targetY:we,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Os,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:we,underlineThickness:we,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:we,values:null,vAlphabetic:we,vMathematical:we,vectorEffect:null,vHanging:we,vIdeographic:we,version:null,vertAdvY:we,vertOriginX:we,vertOriginY:we,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:we,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:RAe}),NAe=_0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 102,067 bytes, lines 1111-1124
1111,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),DAe=_0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:MAe}),LAe=_0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),p$t={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"},m$t=/[A-Z]/g,$ie=/-[a-z]/g,g$t=/^data[-\w.:]+$/i;function v$t(e,t){const n=m4(t);let r=t,i=Cs;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&g$t.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace($ie,b$t);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!$ie.test(o)){let s=o.replace(m$t,y$t);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=n8}return new i(r,t)}function y$t(e){return"-"+e.toLowerCase()}function b$t(e){return e.charAt(1).toUpperCase()}const w$t=PAe([IAe,f$t,NAe,DAe,LAe],"html"),r8=PAe([IAe,h$t,NAe,DAe,LAe],"svg");function x$t(e){return e.join(" ").trim()}var i8={},Fie=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,E$t=/\n/g,S$t=/^\s*/,_$t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,k$t=/^:\s*/,C$t=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,T$t=/^[;\s]*/,A$t=/^\s+|\s+$/g,O$t=` 1112`,Bie="/",jie="*",Mp="",P$t="comment",I$t="declaration";function R$t(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var m=p.match(E$t);m&&(n+=m.length);var g=p.lastIndexOf(O$t);r=~g?p.length-g:r+p.length}function o(){var p={line:n,column:r};return function(m){return m.position=new s(p),c(),m}}function s(p){this.start=p,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(p){var m=new Error(t.source+":"+n+":"+r+": "+p);if(m.reason=p,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var g=m[0];return i(g),e=e.slice(g.length),m}}function c(){l(S$t)}function u(p){var m;for(p=p||[];m=d();)m!==!1&&p.push(m);return p}function d(){var p=o();if(!(Bie!=e.charAt(0)||jie!=e.charAt(1))){for(var m=2;Mp!=e.charAt(m)&&(jie!=e.charAt(m)||Bie!=e.charAt(m+1));)++m;if(m+=2,Mp===e.charAt(m-1))return a("End of comment missing");var g=e.slice(2,m-2);return r+=2,i(g),e=e.slice(m),r+=2,p({type:P$t,comment:g})}}function f(){var p=o(),m=l(_$t);if(m){if(d(),!l(k$t))return a("property missing ':'");var g=l(C$t),v=p({type:I$t,property:zie(m[0].replace(Fie,Mp)),value:g?zie(g[0].replace(Fie,Mp)):Mp});return l(T$t),v}}function h(){var p=[];u(p);for(var m;m=f();)m!==!1&&(p.push(m),u(p));return p}return c(),h()}function zie(e){return e?e.replace(A$t,Mp):Mp}var M$t=R$t,N$t=zt&&zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i8,"__esModule",{value:!0});i8.default=L$t;const D$t=N$t(M$t);function L$t(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,D$t.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;i?t(s,a,o):a&&(n=n||{},n[s]=a)}),n}var eD={};Object.defineProperty(eD,"__esModule",{value:!0});eD.camelCase=void 0;var $$t=/^--[a-zA-Z0-9_-]+$/,F$t=/-([a-z])/g,B$t=/^[^-]+$/,j$t=/^-(webkit|moz|ms|o|khtml)-/,z$t=/^-(ms)-/,U$t=function(e){return!e||B$t.test(e)||$$t.test(e)},V$t=function(e,t){return t.toUpperCase()},Uie=function(e,t){return"".concat(t,"-")},W$t=function(e,t){return t===void 0&&(t={}),U$t(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(z$t,Uie):e=e.replace(j$t,Uie),e.replace(F$t,V$t))};eD.camelCase=W$t;var H$t=zt&&zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},K$t=H$t(i8),q$t=eD;function y4(e,t){var n={};return!e||typeof e!="string"||(0,K$t.default)(e,function(r,i){r&&i&&(n[(0,q$t.camelCase)(r,t)]=i)}),n}y4.default=y4;var G$t=y4;const Y$t=yr(G$t),$Ae=FAe("end"),o8=FAe("start");function FAe(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 X$t(e){const t=o8(e),n=$Ae(e);if(t&&n)return{start:t,end:n}}function qx(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Vie(e.position):"start"in e||"end"in e?Vie(e):"line"in e||"column"in e?b4(e):""}function b4(e){return Wie(e&&e.line)+":"+Wie(e&&e.column)}function Vie(e){return b4(e&&e.start)+"-"+b4(e&&e.end)}function Wie(e){return e&&typeof e=="number"?e:1}class _o extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=qx(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_o.prototype.file="";_o.prototype.name="";_o.prototype.reason="";_o.prototype.message="";_o.prototype.stack="";_o.prototype.column=void 0;_o.prototype.line=void 0;_o.prototype.ancestors=void 0;_o.prototype.cause=void 0;_o.prototype.fatal=void 0;_o.prototype.place=void 0;_o.prototype.ruleId=void 0;_o.prototype.source=void 0;const s8={}.hasOwnProperty,Z$t=new Map,Q$t=/[A-Z]/g,J$t=new Set(["table","tbody","thead","tfoot","tr"]),eFt=new Set(["td","th"]),BAe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tFt(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=cFt(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=lFt(n,t.jsx,t.jsxs)}const i={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"?r8:w$t,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=jAe(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function jAe(e,t,n){if(t.type==="element")return nFt(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return rFt(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oFt(e,t,n);if(t.type==="mdxjsEsm")return iFt(e,t);if(t.type==="root")return sFt(e,t,n);if(t.type==="text")return aFt(e,t)}function nFt(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=r8,e.schema=i),e.ancestors.push(t);const o=UAe(e,t.tagName,!1),s=uFt(e,t);let a=l8(e,t);return J$t.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!u$t(l):!0})),zAe(e,s,o,t),a8(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function rFt(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)}C1(e,t.position)}function iFt(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);C1(e,t.position)}function oFt(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=r8,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:UAe(e,t.name,!0),s=dFt(e,t),a=l8(e,t);return zAe(e,s,o,t),a8(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function sFt(e,t,n){const r={};return a8(r,l8(e,t)),e.create(t,e.Fragment,r,n)}function aFt(e,t){return t.value}function zAe(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function a8(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function lFt(e,t,n){return r;function r(i,o,s,a){const c=Array.isArray(s.children)?n:t;return a?c(o,s,a):c(o,s)}}function cFt(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=o8(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function uFt(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&s8.call(t.properties,i)){const o=fFt(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&eFt.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function dFt(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else C1(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else C1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function l8(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Z$t;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const a=jAe(e,o,s);a!==void 0&&n.push(a)}return n}function fFt(e,t,n){const r=v$t(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?o$t(n):x$t(n)),r.property==="style"){let i=typeof n=="object"?n:hFt(e,String(n));return e.stylePropertyNameCase==="css"&&(i=pFt(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?p$t[r.property]||r.property:r.attribute,n]}}function hFt(e,t){try{return Y$t(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new _o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=BAe+"#cannot-parse-style-attribute",i}}function UAe(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=Nie(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Nie(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return s8.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);C1(e)}function C1(e,t){const n=new _o("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=BAe+"#cannot-handle-mdx-estrees-without-createevaluater",n}function pFt(e){const t={};let n;for(n in e)s8.call(e,n)&&(t[mFt(n)]=e[n]);return t}function mFt(e){let t=e.replace(Q$t,gFt);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function gFt(e){return"-"+e.toLowerCase()}const E$={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"]},vFt={};function yFt(e,t){const n=vFt,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return VAe(e,r,i)}function VAe(e,t,n){if(bFt(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 Hie(e.children,t,n)}return Array.isArray(e)?Hie(e,t,n):""}function Hie(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=VAe(e[i],t,n);return r.join("")}function bFt(e){return!!(e&&typeof e=="object")}const Kie=document.createElement("i");function c8(e){const t="&"+e+";";Kie.innerHTML=t;const n=Kie.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function nu(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Ca(e,t){return e.length>0?(nu(e,e.length,0,t),e):t}const qie={}.hasOwnProperty;function wFt(e){const t={};let n=-1;for(;++n<e.length;)xFt(t,e[n]);return t}function xFt(e,t){let n;for(n in t){const i=(qie.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){qie.call(i,s)||(i[s]=[]);const a=o[s];EFt(i[s],Array.isArray(a)?a:a?[a]:[])}}}function EFt(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);nu(e,0,0,r)}function WAe(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 my(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Oc=Jh(/[A-Za-z]/),js=Jh(/[\dA-Za-z]/),SFt=Jh(/[#-'*+\--9=?A-Z^-~]/);function w4(e){return e!==null&&(e<32||e===127)}const x4=Jh(/\d/),_Ft=Jh(/[\dA-Fa-f]/),kFt=Jh(/[!-/:-@[-`{-~]/);function pt(e){return e!==null&&e<-2}function ws(e){return e!==null&&(e<0||e===32)}function sn(e){return e===-2||e===-1||e===32}const CFt=Jh(new RegExp("\\p{P}|\\p{S}","u")),TFt=Jh(/\s/);function Jh(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function k0(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&js(e.charCodeAt(n+1))&&js(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ln(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return sn(l)?(e.enter(n),a(l)):t(l)}function a(l){return sn(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const AFt={tokenize:OFt};function OFt(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ln(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return pt(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const PFt={tokenize:IFt},Gie={tokenize:RFt};function IFt(e){const t=this,n=[];let r=0,i,o,s;return a;function a(w){if(r<n.length){const x=n[r];return t.containerState=x[1],e.attempt(x[0].continuation,l,c)(w)}return c(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const x=t.events.length;let E=x,S;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){S=t.events[E][1].end;break}v(r);let _=x;for(;_<t.events.length;)t.events[_][1].end={...S},_++;return nu(t.events,E+1,0,t.events.slice(x)),t.events.length=_,c(w)}return a(w)}function c(w){if(r===n.length){if(!i)return f(w);if(i.currentConstruct&&i.currentConstruct.concrete)return p(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gie,u,d)(w)}function u(w){return i&&b(),v(r),f(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,p(w)}function f(w){return t.containerState={},e.attempt(Gie,h,p)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),f(w)}function p(w){if(w===null){i&&b(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(w)}function m(w){if(w===null){g(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return pt(w)?(e.consume(w),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),m)}function g(w,x){const E=t.sliceStream(w);if(x&&E.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(E),t.parser.lazy[w.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;const _=t.events.length;let k=_,C,T;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(C){T=t.events[k][1].end;break}C=!0}for(v(r),S=_;S<t.events.length;)t.events[S][1].end={...T},S++;nu(t.events,k+1,0,t.events.slice(_)),t.events.length=S}}function v(w){let x=n.length;for(;x-- >w;){const E=n[x];t.containerState=E[1],E[0].exit.call(t,e)}n.length=w}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function RFt(e,t,n){return Ln(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yie(e){if(e===null||ws(e)||TFt(e))return 1;if(CFt(e))return 2}function u8(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const E4={name:"attention",resolveAll:MFt,tokenize:NFt};function MFt(e,t){let n=-1,r,i,o,s,a,l,c,u;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;l=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 d={...e[r][1].end},f={...e[n][1].start};Xie(d,-l),Xie(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ca(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ca(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),c=Ca(c,u8(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ca(c,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Ca(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,nu(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function NFt(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Yie(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const c=e.exit("attentionSequence"),u=Yie(l),d=!u||u===2&&i||n.includes(l),f=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!f)),c._close=!!(o===42?f:f&&(u||!d)),t(l)}}function Xie(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const DFt={name:"autolink",tokenize:LFt};function LFt(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Oc(h)?(e.consume(h),s):h===64?n(h):c(h)}function s(h){return h===43||h===45||h===46||js(h)?(r=1,a(h)):c(h)}function a(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||js(h))&&r++<32?(e.consume(h),a):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||w4(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):SFt(h)?(e.consume(h),c):n(h)}function u(h){return js(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||js(h))&&r++<63){const p=h===45?f:d;return e.consume(h),p}return n(h)}}const tD={partial:!0,tokenize:$Ft};function $Ft(e,t,n){return r;function r(o){return sn(o)?Ln(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||pt(o)?t(o):n(o)}}const HAe={continuation:{tokenize:BFt},exit:jFt,name:"blockQuote",tokenize:FFt};function FFt(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return sn(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function BFt(e,t,n){const r=this;return i;function i(s){return sn(s)?Ln(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(HAe,t,n)(s)}}function jFt(e){e.exit("blockQuote")}const KAe={name:"characterEscape",tokenize:zFt};function zFt(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return kFt(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const qAe={name:"characterReference",tokenize:UFt};function UFt(e,t,n){const r=this;let i=0,o,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,s=js,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=_Ft,u):(e.enter("characterReferenceValue"),o=7,s=x4,u(d))}function u(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===js&&!c8(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),u):n(d)}}const Zie={partial:!0,tokenize:WFt},Qie={concrete:!0,name:"codeFenced",tokenize:VFt};function VFt(e,t,n){const r=this,i={partial:!0,tokenize:E};let o=0,s=0,a;return l;function l(S){return c(S)}function c(S){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===a?(s++,e.consume(S),u):s<3?n(S):(e.exit("codeFencedFenceSequence"),sn(S)?Ln(e,d,"whitespace")(S):d(S))}function d(S){return S===null||pt(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Zie,m,x)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||pt(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):sn(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ln(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),f)}function h(S){return S===null||pt(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||pt(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===a?n(S):(e.consume(S),p)}function m(S){return e.attempt(i,x,g)(S)}function g(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),v}function v(S){return o>0&&sn(S)?Ln(e,b,"linePrefix",o+1)(S):b(S)}function b(S){return S===null||pt(S)?e.check(Zie,m,x)(S):(e.enter("codeFlowValue"),w(S))}function w(S){return S===null||pt(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),w)}function x(S){return e.exit("codeFenced"),t(S)}function E(S,_,k){let C=0;return T;function T(F){return S.enter("lineEnding"),S.consume(F),S.exit("lineEnding"),A}function A(F){return S.enter("codeFencedFence"),sn(F)?Ln(S,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):O(F)}function O(F){return F===a?(S.enter("codeFencedFenceSequence"),R(F)):k(F)}function R(F){return F===a?(C++,S.consume(F),R):C>=s?(S.exit("codeFencedFenceSequence"),sn(F)?Ln(S,I,"whitespace")(F):I(F)):k(F)}function I(F){return F===null||pt(F)?(S.exit("codeFencedFence"),_(F)):k(F)}}}function WFt(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const S$={name:"codeIndented",tokenize:KFt},HFt={partial:!0,tokenize:qFt};function KFt(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Ln(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):pt(c)?e.attempt(HFt,s,l)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||pt(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function l(c){return e.exit("codeIndented"),t(c)}}function qFt(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ln(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):pt(s)?i(s):n(s)}}const GFt={name:"codeText",previous:XFt,resolve:YFt,tokenize:ZFt};function YFt(e){let t=e.length-4,n=3,r,i;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;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function XFt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZFt(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),r++,a):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):pt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||pt(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}class QFt{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 i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Aw(this.left,r),o.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),Aw(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Aw(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);Aw(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Aw(this.left,n.reverse())}}}function Aw(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 GAe(e){const t={};let n=-1,r,i,o,s,a,l,c;const u=new QFt(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,JFt(u,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=u.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},a=u.slice(i,n),a.unshift(r),u.splice(i,n-i+1,a))}}return nu(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function JFt(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,d,f=-1,h=n,p=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(m=f+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),f=g.length;f--;){const v=a.slice(g[f],g[f+1]),b=o.pop();l.push([b,b+v.length-1]),e.splice(b,2,v)}for(l.reverse(),f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const eBt={resolve:nBt,tokenize:rBt},tBt={partial:!0,tokenize:iBt};function nBt(e){return GAe(e),e}function rBt(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):pt(a)?e.check(tBt,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function iBt(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ln(e,o,"linePrefix")}function o(s){if(s===null||pt(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function YAe(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),f):v===null||v===32||v===41||w4(v)?n(v):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(v))}function f(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||pt(v)?n(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function m(v){return!u&&(v===null||v===41||ws(v))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(v)):u<c&&v===40?(e.consume(v),u++,m):v===41?(e.consume(v),u--,m):v===null||v===32||v===40||w4(v)?n(v):(e.consume(v),v===92?g:m)}function g(v){return v===40||v===41||v===92?(e.consume(v),m):m(v)}}function XAe(e,t,n,r,i,o){const s=this;let a=0,l;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),u}function u(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):pt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||pt(h)||a++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!sn(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}}function ZAe(e,t,n,r,i,o){let s;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),c(f))}function c(f){return f===s?(e.exit(o),l(s)):f===null?n(f):pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ln(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===s||f===null||pt(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===s||f===92?(e.consume(f),u):u(f)}}function Gx(e,t){let n;return r;function r(i){return pt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):sn(i)?Ln(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const oBt={name:"definition",tokenize:aBt},sBt={partial:!0,tokenize:lBt};function aBt(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return XAe.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=my(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return ws(h)?Gx(e,c)(h):c(h)}function c(h){return YAe(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(sBt,d,d)(h)}function d(h){return sn(h)?Ln(e,f,"whitespace")(h):f(h)}function f(h){return h===null||pt(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function lBt(e,t,n){return r;function r(a){return ws(a)?Gx(e,i)(a):n(a)}function i(a){return ZAe(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return sn(a)?Ln(e,s,"whitespace")(a):s(a)}function s(a){return a===null||pt(a)?t(a):n(a)}}const cBt={name:"hardBreakEscape",tokenize:uBt};function uBt(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return pt(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const dBt={name:"headingAtx",resolve:fBt,tokenize:hBt};function fBt(e,t){let n=e.length-2,r=3,i,o;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&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nu(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function hBt(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(e.consume(u),s):u===null||ws(u)?(e.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||pt(u)?(e.exit("atxHeading"),t(u)):sn(u)?Ln(e,a,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||ws(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),c)}}const pBt=["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"],Jie=["pre","script","style","textarea"],mBt={concrete:!0,name:"htmlFlow",resolveTo:yBt,tokenize:bBt},gBt={partial:!0,tokenize:xBt},vBt={partial:!0,tokenize:wBt};function yBt(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 bBt(e,t,n){const r=this;let i,o,s,a,l;return c;function c(z){return u(z)}function u(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),d}function d(z){return z===33?(e.consume(z),f):z===47?(e.consume(z),o=!0,m):z===63?(e.consume(z),i=3,r.interrupt?t:P):Oc(z)?(e.consume(z),s=String.fromCharCode(z),g):n(z)}function f(z){return z===45?(e.consume(z),i=2,h):z===91?(e.consume(z),i=5,a=0,p):Oc(z)?(e.consume(z),i=4,r.interrupt?t:P):n(z)}function h(z){return z===45?(e.consume(z),r.interrupt?t:P):n(z)}function p(z){const oe="CDATA[";return z===oe.charCodeAt(a++)?(e.consume(z),a===oe.length?r.interrupt?t:O:p):n(z)}function m(z){return Oc(z)?(e.consume(z),s=String.fromCharCode(z),g):n(z)}function g(z){if(z===null||z===47||z===62||ws(z)){const oe=z===47,le=s.toLowerCase();return!oe&&!o&&Jie.includes(le)?(i=1,r.interrupt?t(z):O(z)):pBt.includes(s.toLowerCase())?(i=6,oe?(e.consume(z),v):r.interrupt?t(z):O(z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):o?b(z):w(z))}return z===45||js(z)?(e.consume(z),s+=String.fromCharCode(z),g):n(z)}function v(z){return z===62?(e.consume(z),r.interrupt?t:O):n(z)}function b(z){return sn(z)?(e.consume(z),b):T(z)}function w(z){return z===47?(e.consume(z),T):z===58||z===95||Oc(z)?(e.consume(z),x):sn(z)?(e.consume(z),w):T(z)}function x(z){return z===45||z===46||z===58||z===95||js(z)?(e.consume(z),x):E(z)}function E(z){return z===61?(e.consume(z),S):sn(z)?(e.consume(z),E):w(z)}function S(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),l=z,_):sn(z)?(e.consume(z),S):k(z)}function _(z){return z===l?(e.consume(z),l=null,C):z===null||pt(z)?n(z):(e.consume(z),_)}function k(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||ws(z)?E(z):(e.consume(z),k)}function C(z){return z===47||z===62||sn(z)?w(z):n(z)}function T(z){return z===62?(e.consume(z),A):n(z)}function A(z){return z===null||pt(z)?O(z):sn(z)?(e.consume(z),A):n(z)}function O(z){return z===45&&i===2?(e.consume(z),N):z===60&&i===1?(e.consume(z),B):z===62&&i===4?(e.consume(z),G):z===63&&i===3?(e.consume(z),P):z===93&&i===5?(e.consume(z),L):pt(z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(gBt,Z,R)(z)):z===null||pt(z)?(e.exit("htmlFlowData"),R(z)):(e.consume(z),O)}function R(z){return e.check(vBt,I,Z)(z)}function I(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),F}function F(z){return z===null||pt(z)?R(z):(e.enter("htmlFlowData"),O(z))}function N(z){return z===45?(e.consume(z),P):O(z)}function B(z){return z===47?(e.consume(z),s="",M):O(z)}function M(z){if(z===62){const oe=s.toLowerCase();return Jie.includes(oe)?(e.consume(z),G):O(z)}return Oc(z)&&s.length<8?(e.consume(z),s+=String.fromCharCode(z),M):O(z)}function L(z){return z===93?(e.consume(z),P):O(z)}function P(z){return z===62?(e.consume(z),G):z===45&&i===2?(e.consume(z),P):O(z)}function G(z){return z===null||pt(z)?(e.exit("htmlFlowData"),Z(z)):(e.consume(z),G)}function Z(z){return e.exit("htmlFlow"),t(z)}}function wBt(e,t,n){const r=this;return i;function i(s){return pt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function xBt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(tD,t,n)}}const EBt={name:"htmlText",tokenize:SBt};function SBt(e,t,n){const r=this;let i,o,s;return a;function a(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),c):P===47?(e.consume(P),E):P===63?(e.consume(P),w):Oc(P)?(e.consume(P),k):n(P)}function c(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),o=0,p):Oc(P)?(e.consume(P),b):n(P)}function u(P){return P===45?(e.consume(P),h):n(P)}function d(P){return P===null?n(P):P===45?(e.consume(P),f):pt(P)?(s=d,B(P)):(e.consume(P),d)}function f(P){return P===45?(e.consume(P),h):d(P)}function h(P){return P===62?N(P):P===45?f(P):d(P)}function p(P){const G="CDATA[";return P===G.charCodeAt(o++)?(e.consume(P),o===G.length?m:p):n(P)}function m(P){return P===null?n(P):P===93?(e.consume(P),g):pt(P)?(s=m,B(P)):(e.consume(P),m)}function g(P){return P===93?(e.consume(P),v):m(P)}function v(P){return P===62?N(P):P===93?(e.consume(P),v):m(P)}function b(P){return P===null||P===62?N(P):pt(P)?(s=b,B(P)):(e.consume(P),b)}function w(P){return P===null?n(P):P===63?(e.consume(P),x):pt(P)?(s=w,B(P)):(e.consume(P),w)}function x(P){return P===62?N(P):w(P)}function E(P){return Oc(P)?(e.consume(P),S):n(P)}function S(P){return P===45||js(P)?(e.consume(P),S):_(P)}function _(P){return pt(P)?(s=_,B(P)):sn(P)?(e.consume(P),_):N(P)}function k(P){return P===45||js(P)?(e.consume(P),k):P===47||P===62||ws(P)?C(P):n(P)}function C(P){return P===47?(e.consume(P),N):P===58||P===95||Oc(P)?(e.consume(P),T):pt(P)?(s=C,B(P)):sn(P)?(e.consume(P),C):N(P)}function T(P){return P===45||P===46||P===58||P===95||js(P)?(e.consume(P),T):A(P)}function A(P){return P===61?(e.consume(P),O):pt(P)?(s=A,B(P)):sn(P)?(e.consume(P),A):C(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),i=P,R):pt(P)?(s=O,B(P)):sn(P)?(e.consume(P),O):(e.consume(P),I)}function R(P){return P===i?(e.consume(P),i=void 0,F):P===null?n(P):pt(P)?(s=R,B(P)):(e.consume(P),R)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||ws(P)?C(P):(e.consume(P),I)}function F(P){return P===47||P===62||ws(P)?C(P):n(P)}function N(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function B(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),M}function M(P){return sn(P)?Ln(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):L(P)}function L(P){return e.enter("htmlTextData"),s(P)}}const d8={name:"labelEnd",resolveAll:TBt,resolveTo:ABt,tokenize:OBt},_Bt={tokenize:PBt},kBt={tokenize:IBt},CBt={tokenize:RBt};function TBt(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 i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&nu(e,0,e.length,n),e}function ABt(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=Ca(a,e.slice(o+1,o+r+3)),a=Ca(a,[["enter",u,t]]),a=Ca(a,u8(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=Ca(a,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),a=Ca(a,e.slice(s+1)),a=Ca(a,[["exit",l,t]]),nu(e,o,e.length,a),e}function OBt(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(f){return o?o._inactive?d(f):(s=r.parser.defined.includes(my(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(_Bt,u,s?u:d)(f):f===91?e.attempt(kBt,u,s?c:d)(f):s?u(f):d(f)}function c(f){return e.attempt(CBt,u,d)(f)}function u(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function PBt(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return ws(d)?Gx(e,o)(d):o(d)}function o(d){return d===41?u(d):YAe(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return ws(d)?Gx(e,l)(d):u(d)}function a(d){return n(d)}function l(d){return d===34||d===39||d===40?ZAe(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return ws(d)?Gx(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function IBt(e,t,n){const r=this;return i;function i(a){return XAe.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(my(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function RBt(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const MBt={name:"labelStartImage",resolveAll:d8.resolveAll,tokenize:NBt};function NBt(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const DBt={name:"labelStartLink",resolveAll:d8.resolveAll,tokenize:LBt};function LBt(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const _$={name:"lineEnding",tokenize:$Bt};function $Bt(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ln(e,t,"linePrefix")}}const HT={name:"thematicBreak",tokenize:FBt};function FBt(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||pt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),sn(c)?Ln(e,a,"whitespace")(c):a(c))}}const es={continuation:{tokenize:UBt},exit:WBt,name:"list",tokenize:zBt},BBt={partial:!0,tokenize:HBt},jBt={partial:!0,tokenize:VBt};function zBt(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:x4(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(HT,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return x4(h)&&++s<10?(e.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(tD,r.interrupt?n:u,e.attempt(BBt,f,d))}function u(h){return r.containerState.initialBlankLine=!0,o++,f(h)}function d(h){return sn(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function UBt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(tD,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ln(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!sn(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jBt,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ln(e,e.attempt(es,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function VBt(e,t,n){const r=this;return Ln(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function WBt(e){e.exit(this.containerState.type)}function HBt(e,t,n){const r=this;return Ln(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!sn(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const eoe={name:"setextUnderline",resolveTo:KBt,tokenize:qBt};function KBt(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function qBt(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),sn(c)?Ln(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||pt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const GBt={tokenize:YBt};function YBt(e){const t=this,n=e.attempt(tD,r,e.attempt(this.parser.constructs.flowInitial,i,Ln(e,e.attempt(this.parser.constructs.flow,i,e.attempt(eBt,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const XBt={resolveAll:JAe()},ZBt=QAe("string"),QBt=QAe("text");function QAe(e){return{resolveAll:JAe(e==="text"?JBt:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(u){return c(u)?o(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function JAe(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function JBt(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],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const ejt={42:es,43:es,45:es,48:es,49:es,50:es,51:es,52:es,53:es,54:es,55:es,56:es,57:es,62:HAe},tjt={91:oBt},njt={[-2]:S$,[-1]:S$,32:S$},rjt={35:dBt,42:HT,45:[eoe,HT],60:mBt,61:eoe,95:HT,96:Qie,126:Qie},ijt={38:qAe,92:KAe},ojt={[-5]:_$,[-4]:_$,[-3]:_$,33:MBt,38:qAe,42:E4,60:[DFt,EBt],91:DBt,92:[cBt,KAe],93:d8,95:E4,96:GFt},sjt={null:[E4,XBt]},ajt={null:[42,95]},ljt={null:[]},cjt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ajt,contentInitial:tjt,disable:ljt,document:ejt,flow:rjt,flowInitial:njt,insideSpan:sjt,string:ijt,text:ojt},Symbol.toStringTag,{value:"Module"}));function ujt(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 i={},o=[];let s=[],a=[];const l={attempt:_(E),check:_(S),consume:b,enter:w,exit:x,interrupt:_(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:p,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(A){return s=Ca(s,A),g(),s[s.length-1]!==null?[]:(k(t,0),c.events=u8(o,c.events,c),c.events)}function f(A,O){return fjt(h(A),O)}function h(A){return djt(s,A)}function p(){const{_bufferIndex:A,_index:O,line:R,column:I,offset:F}=r;return{_bufferIndex:A,_index:O,line:R,column:I,offset:F}}function m(A){i[A.line]=A.column,T()}function g(){let A;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<O.length;)v(O.charCodeAt(r._bufferIndex));else v(O)}}function v(A){u=u(A)}function b(A){pt(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,T()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=A}function w(A,O){const R=O||{};return R.type=A,R.start=p(),c.events.push(["enter",R,c]),a.push(R),R}function x(A){const O=a.pop();return O.end=p(),c.events.push(["exit",O,c]),O}function E(A,O){k(A,O.from)}function S(A,O){O.restore()}function _(A,O){return R;function R(I,F,N){let B,M,L,P;return Array.isArray(I)?Z(I):"tokenize"in I?Z([I]):G(I);function G(se){return ue;function ue(ce){const Q=ce!==null&&se[ce],K=ce!==null&&se.null,pe=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(K)?K:K?[K]:[]];return Z(pe)(ce)}}function Z(se){return B=se,M=0,se.length===0?N:z(se[M])}function z(se){return ue;function ue(ce){return P=C(),L=se,se.partial||(c.currentConstruct=se),se.name&&c.parser.constructs.disable.null.includes(se.name)?le():se.tokenize.call(O?Object.assign(Object.create(c),O):c,l,oe,le)(ce)}}function oe(se){return A(L,P),F}function le(se){return P.restore(),++M<B.length?z(B[M]):N}}}function k(A,O){A.resolveAll&&!o.includes(A)&&o.push(A),A.resolve&&nu(c.events,O,c.events.length-O,A.resolve(c.events.slice(O),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function C(){const A=p(),O=c.previous,R=c.currentConstruct,I=c.events.length,F=Array.from(a);return{from:I,restore:N};function N(){r=A,c.previous=O,c.currentConstruct=R,c.events.length=I,a=F,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function djt(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function fjt(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=` 1113`;break}case-3:{s=`\r 1114`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function hjt(e){const r={constructs:wFt([cjt,...(e||{}).extensions||[]]),content:i(AFt),defined:[],document:i(PFt),flow:i(GBt),lazy:{},string:i(ZBt),text:i(QBt)};return r;function i(o){return s;function s(a){return ujt(r,o,a)}}}function pjt(e){for(;!GAe(e););return e}const toe=/[\0\t\n\r]/g;function mjt(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let c,u,d,f,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(toe.lastIndex=d,c=toe.exec(o),f=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(f),!c){t=o.slice(d);break}if(h===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(o.slice(d,f)),e+=f-d),h){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const gjt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vjt(e){return e.replace(gjt,yjt)}function yjt(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return WAe(n.slice(o?2:1),o?16:10)}return c8(n)||e}const eOe={}.hasOwnProperty;function bjt(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),wjt(n)(pjt(hjt(n).document().write(mjt()(e,t,!0))))}function wjt(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(hn),autolinkProtocol:C,autolinkEmail:C,atxHeading:o(tt),blockQuote:o(K),characterEscape:C,characterReference:C,codeFenced:o(pe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(pe,s),codeText:o(X,s),codeTextData:C,data:C,codeFlowValue:C,definition:o(Ze),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Me),hardBreakEscape:o(Oe),hardBreakTrailing:o(Oe),htmlFlow:o(Pt,s),htmlFlowData:C,htmlText:o(Pt,s),htmlTextData:C,image:o(Le),label:s,link:o(hn),listItem:o(at),listItemValue:f,listOrdered:o(vt,d),listUnordered:o(vt),paragraph:o(Jn),reference:z,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(tt),strong:o(Pn),thematicBreak:o(Jo)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:Q,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:se,characterReference:ue,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:T,codeIndented:l(v),codeText:l(F),codeTextData:T,data:T,definition:l(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(R),htmlFlowData:T,htmlText:l(I),htmlTextData:T,image:l(B),label:L,labelText:M,lineEnding:A,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:oe,resourceDestinationString:P,resourceTitleString:G,resource:Z,setextHeading:l(k),setextHeadingLineSequence:_,setextHeadingText:S,strong:l(),thematicBreak:l()}};tOe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(H){let J={type:"root",children:[]};const me={stack:[J],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},Ae=[];let st=-1;for(;++st<H.length;)if(H[st][1].type==="listOrdered"||H[st][1].type==="listUnordered")if(H[st][0]==="enter")Ae.push(st);else{const Kt=Ae.pop();st=i(H,Kt,st)}for(st=-1;++st<H.length;){const Kt=t[H[st][0]];eOe.call(Kt,H[st][1].type)&&Kt[H[st][1].type].call(Object.assign({sliceSerialize:H[st][2].sliceSerialize},me),H[st][1])}if(me.tokenStack.length>0){const Kt=me.tokenStack[me.tokenStack.length-1];(Kt[1]||noe).call(me,void 0,Kt[0])}for(J.position={start:qd(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:qd(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},st=-1;++st<t.transforms.length;)J=t.transforms[st](J)||J;return J}function i(H,J,me){let Ae=J-1,st=-1,Kt=!1,Fi,U,j,V;for(;++Ae<=me;){const Y=H[Ae];switch(Y[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Y[0]==="enter"?st++:st--,V=void 0;break}case"lineEndingBlank":{Y[0]==="enter"&&(Fi&&!V&&!st&&!j&&(j=Ae),V=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:V=void 0}if(!st&&Y[0]==="enter"&&Y[1].type==="listItemPrefix"||st===-1&&Y[0]==="exit"&&(Y[1].type==="listUnordered"||Y[1].type==="listOrdered")){if(Fi){let ne=Ae;for(U=void 0;ne--;){const ie=H[ne];if(ie[1].type==="lineEnding"||ie[1].type==="lineEndingBlank"){if(ie[0]==="exit")continue;U&&(H[U][1].type="lineEndingBlank",Kt=!0),ie[1].type="lineEnding",U=ne}else if(!(ie[1].type==="linePrefix"||ie[1].type==="blockQuotePrefix"||ie[1].type==="blockQuotePrefixWhitespace"||ie[1].type==="blockQuoteMarker"||ie[1].type==="listItemIndent"))break}j&&(!U||j<U)&&(Fi._spread=!0),Fi.end=Object.assign({},U?H[U][1].start:Y[1].end),H.splice(U||Ae,0,["exit",Fi,Y[2]]),Ae++,me++}if(Y[1].type==="listItemPrefix"){const ne={type:"listItem",_spread:!1,start:Object.assign({},Y[1].start),end:void 0};Fi=ne,H.splice(Ae,0,["enter",ne,Y[2]]),Ae++,me++,j=void 0,V=!0}}}return H[J][1]._spread=Kt,me}function o(H,J){return me;function me(Ae){a.call(this,H(Ae),Ae),J&&J.call(this,Ae)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(H,J,me){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([J,me||void 0]),H.position={start:qd(J.start),end:void 0}}function l(H){return J;function J(me){H&&H.call(this,me),c.call(this,me)}}function c(H,J){const me=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==H.type&&(J?J.call(this,H,Ae[0]):(Ae[1]||noe).call(this,H,Ae[0]));else throw new Error("Cannot close `"+H.type+"` ("+qx({start:H.start,end:H.end})+"): itâs not open");me.position.end=qd(H.end)}function u(){return yFt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(H){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function h(){const H=this.resume(),J=this.stack[this.stack.length-1];J.lang=H}function p(){const H=this.resume(),J=this.stack[this.stack.length-1];J.meta=H}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const H=this.resume(),J=this.stack[this.stack.length-1];J.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const H=this.resume(),J=this.stack[this.stack.length-1];J.value=H.replace(/(\r?\n|\r)$/g,"")}function b(H){const J=this.resume(),me=this.stack[this.stack.length-1];me.label=J,me.identifier=my(this.sliceSerialize(H)).toLowerCase()}function w(){const H=this.resume(),J=this.stack[this.stack.length-1];J.title=H}function x(){const H=this.resume(),J=this.stack[this.stack.length-1];J.url=H}function E(H){const J=this.stack[this.stack.length-1];if(!J.depth){const me=this.sliceSerialize(H).length;J.depth=me}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function _(H){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function C(H){const me=this.stack[this.stack.length-1].children;let Ae=me[me.length-1];(!Ae||Ae.type!=="text")&&(Ae=$i(),Ae.position={start:qd(H.start),end:void 0},me.push(Ae)),this.stack.push(Ae)}function T(H){const J=this.stack.pop();J.value+=this.sliceSerialize(H),J.position.end=qd(H.end)}function A(H){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=J.children[J.children.length-1];me.position.end=qd(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(C.call(this,H),T.call(this,H))}function O(){this.data.atHardBreak=!0}function R(){const H=this.resume(),J=this.stack[this.stack.length-1];J.value=H}function I(){const H=this.resume(),J=this.stack[this.stack.length-1];J.value=H}function F(){const H=this.resume(),J=this.stack[this.stack.length-1];J.value=H}function N(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=J,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function B(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=J,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function M(H){const J=this.sliceSerialize(H),me=this.stack[this.stack.length-2];me.label=vjt(J),me.identifier=my(J).toLowerCase()}function L(){const H=this.stack[this.stack.length-1],J=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const Ae=H.children;me.children=Ae}else me.alt=J}function P(){const H=this.resume(),J=this.stack[this.stack.length-1];J.url=H}function G(){const H=this.resume(),J=this.stack[this.stack.length-1];J.title=H}function Z(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function oe(H){const J=this.resume(),me=this.stack[this.stack.length-1];me.label=J,me.identifier=my(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function le(H){this.data.characterReferenceType=H.type}function se(H){const J=this.sliceSerialize(H),me=this.data.characterReferenceType;let Ae;me?(Ae=WAe(J,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=c8(J);const st=this.stack[this.stack.length-1];st.value+=Ae}function ue(H){const J=this.stack.pop();J.position.end=qd(H.end)}function ce(H){T.call(this,H);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(H)}function Q(H){T.call(this,H);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(H)}function K(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function Ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Me(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:0,children:[]}}function Oe(){return{type:"break"}}function Pt(){return{type:"html",value:""}}function Le(){return{type:"image",title:null,url:"",alt:null}}function hn(){return{type:"link",title:null,url:"",children:[]}}function vt(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function at(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function Jn(){return{type:"paragraph",children:[]}}function Pn(){return{type:"strong",children:[]}}function $i(){return{type:"text",value:""}}function Jo(){return{type:"thematicBreak"}}}function qd(e){return{line:e.line,column:e.column,offset:e.offset}}function tOe(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?tOe(e,r):xjt(e,r)}}function xjt(e,t){let n;for(n in t)if(eOe.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 noe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+qx({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+qx({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+qx({start:t.start,end:t.end})+") is still open")}function Ejt(e){const t=this;t.parser=n;function n(r){return bjt(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sjt(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 _jt(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 1115`}]}function kjt(e,t){const n=t.value?t.value+` 1116`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Cjt(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tjt(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ajt(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=k0(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function Ojt(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 Pjt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function nOe(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 i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Ijt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nOe(e,t);const i={src:k0(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Rjt(e,t){const n={src:k0(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 Mjt(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 Njt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nOe(e,t);const i={href:k0(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Djt(e,t){const n={href:k0(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 Ljt(e,t,n){const r=e.all(t),i=n?$jt(n):rOe(t),o={},s=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(i||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:` 1117`}),u.type==="element"&&u.tagName==="p"&&!i?s.push(...u.children):s.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:` 1118`});const c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)}function $jt(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=rOe(n[r])}return t}function rOe(e){const t=e.spread;return t??e.children.length>1}function Fjt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Bjt(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jjt(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zjt(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ujt(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=o8(t.children[1]),l=$Ae(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Vjt(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const c=[];for(;++l<a;){const d=t.children[l],f={},h=s?s[l]:void 0;h&&(f.align=h);let p={type:"element",tagName:o,properties:f,children:[]};d&&(p.children=e.all(d),e.patch(d,p),p=e.applyData(d,p)),c.push(p)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function Wjt(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const roe=9,ioe=32;function Hjt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ooe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ooe(t.slice(i),i>0,!1)),o.join("")}function ooe(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===roe||o===ioe;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===roe||o===ioe;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Kjt(e,t){const n={type:"text",value:Hjt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qjt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Gjt={blockquote:Sjt,break:_jt,code:kjt,delete:Cjt,emphasis:Tjt,footnoteReference:Ajt,heading:Ojt,html:Pjt,imageReference:Ijt,image:Rjt,inlineCode:Mjt,linkReference:Njt,link:Djt,listItem:Ljt,list:Fjt,paragraph:Bjt,root:jjt,strong:zjt,table:Ujt,tableCell:Wjt,tableRow:Vjt,text:Kjt,thematicBreak:qjt,toml:uC,yaml:uC,definition:uC,footnoteDefinition:uC};function uC(){}const iOe=-1,nD=0,Yx=1,WP=2,f8=3,h8=4,p8=5,m8=6,oOe=7,sOe=8,soe=typeof self=="object"?self:globalThis,Yjt=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case nD:case iOe:return n(s,i);case Yx:{const a=n([],i);for(const l of s)a.push(r(l));return a}case WP:{const a=n({},i);for(const[l,c]of s)a[r(l)]=r(c);return a}case f8:return n(new Date(s),i);case h8:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case p8:{const a=n(new Map,i);for(const[l,c]of s)a.set(r(l),r(c));return a}case m8:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case oOe:{const{name:a,message:l}=s;return n(new soe[a](l),i)}case sOe:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new soe[o](s),i)};return r},aoe=e=>Yjt(new Map,e)(0),ov="",{toString:Xjt}={},{keys:Zjt}=Object,Ow=e=>{const t=typeof e;if(t!=="object"||!e)return[nD,t];const n=Xjt.call(e).slice(8,-1);switch(n){case"Array":return[Yx,ov];case"Object":return[WP,ov];case"Date":return[f8,ov];case"RegExp":return[h8,ov];case"Map":return[p8,ov];case"Set":return[m8,ov];case"DataView":return[Yx,n]}return n.includes("Array")?[Yx,n]:n.includes("Error")?[oOe,n]:[WP,n]},dC=([e,t])=>e===nD&&(t==="function"||t==="symbol"),Qjt=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=Ow(s);switch(a){case nD:{let u=s;switch(l){case"bigint":a=sOe,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([iOe],s)}return i([a,u],s)}case Yx:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),i([l,[...f]],s)}const u=[],d=i([a,u],s);for(const f of s)u.push(o(f));return d}case WP:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const u=[],d=i([a,u],s);for(const f of Zjt(s))(e||!dC(Ow(s[f])))&&u.push([o(f),o(s[f])]);return d}case f8:return i([a,s.toISOString()],s);case h8:{const{source:u,flags:d}=s;return i([a,{source:u,flags:d}],s)}case p8:{const u=[],d=i([a,u],s);for(const[f,h]of s)(e||!(dC(Ow(f))||dC(Ow(h))))&&u.push([o(f),o(h)]);return d}case m8:{const u=[],d=i([a,u],s);for(const f of s)(e||!dC(Ow(f)))&&u.push(o(f));return d}}const{message:c}=s;return i([a,{name:l,message:c}],s)};return o},loe=(e,{json:t,lossy:n}={})=>{const r=[];return Qjt(!(t||n),!!t,new Map,r)(e),r},HP=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?aoe(loe(e,t)):structuredClone(e):(e,t)=>aoe(loe(e,t));function Jjt(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 e3t(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function t3t(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Jjt,r=e.options.footnoteBackLabel||e3t,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const u=e.all(c),d=String(c.identifier).toUpperCase(),f=k0(d.toLowerCase());let h=0;const p=[],m=e.footnoteCounts.get(d);for(;m!==void 0&&++h<=m;){p.length>0&&p.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,h);typeof b=="string"&&(b={type:"text",value:b}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const g=u[u.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const b=g.children[g.children.length-1];b&&b.type==="text"?b.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else u.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(u,!0)};e.patch(c,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...HP(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 1119`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` 1120`}]}}const g8=function(e){if(e==null)return o3t;if(typeof e=="function")return rD(e);if(typeof e=="object")return Array.isArray(e)?n3t(e):r3t(e);if(typeof e=="string")return i3t(e);throw new Error("Expected function, string, or object as test")};function n3t(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=g8(e[n]);return rD(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function r3t(e){const t=e;return rD(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function i3t(e){return rD(t);function t(n){return n&&n.type===e}}function rD(e){return t;function t(n,r,i){return!!(s3t(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function o3t(){return!0}function s3t(e){return e!==null&&typeof e=="object"&&"type"in e}const aOe=[],a3t=!0,coe=!1,l3t="skip";function c3t(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=g8(i),s=r?-1:1;a(e,void 0,[])();function a(l,c,u){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=aOe,p,m,g;if((!t||o(l,c,u[u.length-1]||void 0))&&(h=u3t(n(l,u)),h[0]===coe))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==l3t)for(m=(r?v.children.length:-1)+s,g=u.concat(v);m>-1&&m<v.children.length;){const b=v.children[m];if(p=a(b,m,g)(),p[0]===coe)return p;m=typeof p[1]=="number"?p[1]:m+s}}return h}}}function u3t(e){return Array.isArray(e)?e:typeof e=="number"?[a3t,e]:e==null?aOe:[e]}function v8(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),c3t(e,o,a,i);function a(l,c){const u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return s(l,d,u)}}const S4={}.hasOwnProperty,d3t={};function f3t(e,t){const n=t||d3t,r=new Map,i=new Map,o=new Map,s={...Gjt,...n.handlers},a={all:c,applyData:p3t,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:h3t,wrap:g3t};return v8(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const d=u.type==="definition"?r:i,f=String(u.identifier).toUpperCase();d.has(f)||d.set(f,u)}}),a;function l(u,d){const f=u.type,h=a.handlers[f];if(S4.call(a.handlers,f)&&h)return h(a,u,d);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in u){const{children:m,...g}=u,v=HP(g);return v.children=a.all(u),v}return HP(u)}return(a.options.unknownHandler||m3t)(a,u,d)}function c(u){const d=[];if("children"in u){const f=u.children;let h=-1;for(;++h<f.length;){const p=a.one(f[h],u);if(p){if(h&&f[h-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=uoe(p.value)),!Array.isArray(p)&&p.type==="element")){const m=p.children[0];m&&m.type==="text"&&(m.value=uoe(m.value))}Array.isArray(p)?d.push(...p):d.push(p)}}}return d}}function h3t(e,t){e.position&&(t.position=X$t(e))}function p3t(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,HP(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function m3t(e,t){const n=t.data||{},r="value"in t&&!(S4.call(n,"hProperties")||S4.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 g3t(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 1121`});++r<e.length;)r&&n.push({type:"text",value:` 1122`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 1123`}),n}function uoe(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function doe(e,t){const n=f3t(e,t),r=n.one(e,void 0),i=t3t(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` 1124`},i),o}function v3t(e,t){return e&&"run"in e?async function(n,r){const i=doe(n,{file:r,...t});await e.run(i,r)}:function(n,r){return doe(n,{file:r,...e||t})}}function foe(e){if(e)throw e}var KT=Object.prototype.hasOwnProperty,lOe=Object.prototype.toString,hoe=Object.defineProperty,poe=Object.getOwnPropertyDescriptor,moe=function(t){return typeof Array.isArray=="function"?Array.isArray(t):lOe.call(t)==="[object Array]"},goe=function(t){if(!t||lOe.call(t)!=="[object Object]")return!1;var n=KT.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&KT.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||KT.call(t,i)},voe=function(t,n){hoe&&n.name==="__proto__"?hoe(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},yoe=function(t,n){if(n==="__proto__")if(KT.call(t,n)){if(poe)return poe(t,n).value}else return;return t[n]},y3t=function e(){var t,n,r,i,o,s,a=arguments[0],l=1,c=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=yoe(a,n),i=yoe(t,n),a!==i&&(u&&i&&(goe(i)||(o=moe(i)))?(o?(o=!1,s=r&&moe(r)?r:[]):s=r&&goe(r)?r:{},voe(a,{name:n,newValue:e(u,s,i)})):typeof i<"u"&&voe(a,{name:n,newValue:i}));return a};const k$=yr(y3t);function _4(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 b3t(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...c){const u=e[++o];let d=-1;if(l){s(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?w3t(u,a)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function w3t(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(c){const u=c;if(a&&n)throw u;return i(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const cc={basename:x3t,dirname:E3t,extname:S3t,join:_3t,sep:"/"};function x3t(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');b_(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function E3t(e){if(b_(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 S3t(e){b_(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function _3t(...e){let t=-1,n;for(;++t<e.length;)b_(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":k3t(n)}function k3t(e){b_(e);const t=e.codePointAt(0)===47;let n=C3t(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function C3t(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function b_(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const T3t={cwd:A3t};function A3t(){return"/"}function k4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function O3t(e){if(typeof e=="string")e=new URL(e);else if(!k4(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 P3t(e)}function P3t(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 i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const C$=["history","path","basename","stem","extname","dirname"];class cOe{constructor(t){let n;t?k4(t)?n={path:t}:typeof t=="string"||I3t(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":T3t.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<C$.length;){const o=C$[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)C$.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?cc.basename(this.path):void 0}set basename(t){A$(t,"basename"),T$(t,"basename"),this.path=cc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?cc.dirname(this.path):void 0}set dirname(t){boe(this.basename,"dirname"),this.path=cc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?cc.extname(this.path):void 0}set extname(t){if(T$(t,"extname"),boe(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=cc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){k4(t)&&(t=O3t(t)),A$(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?cc.basename(this.path,this.extname):void 0}set stem(t){A$(t,"stem"),T$(t,"stem"),this.path=cc.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new _o(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function T$(e,t){if(e&&e.includes(cc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+cc.sep+"`")}function A$(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function boe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function I3t(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const R3t=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},M3t={}.hasOwnProperty;class y8 extends R3t{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=b3t()}copy(){const t=new y8;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(k$(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(I$("data",this.frozen),this.namespace[t]=n,this):M3t.call(this.namespace,t)&&this.namespace[t]||void 0:t?(I$("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 i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=fC(t),r=this.parser||this.Parser;return O$("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),O$("process",this.parser||this.Parser),P$("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=fC(t),l=r.parse(a);r.run(l,a,function(u,d,f){if(u||!d||!f)return c(u);const h=d,p=r.stringify(h,f);L3t(p)?f.value=p:f.result=p,c(u,f)});function c(u,d){u||!d?s(u):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),O$("processSync",this.parser||this.Parser),P$("processSync",this.compiler||this.Compiler),this.process(t,i),xoe("processSync","process",n),r;function i(o,s){n=!0,foe(o),r=s}}run(t,n,r){woe(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=fC(n);i.run(t,l,c);function c(u,d,f){const h=d||t;u?a(u):s?s(h):r(void 0,h,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),xoe("runSync","run",r),i;function o(s,a){foe(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=fC(n),i=this.compiler||this.Compiler;return P$("stringify",i),woe(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(I$("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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");a(c.plugins),c.settings&&(i.settings=k$(!0,i.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...u]);else if(u.length>0){let[h,...p]=u;const m=r[f][1];_4(m)&&_4(h)&&(h=k$(!0,m,h)),r[f]=[c,h,...p]}}}}const N3t=new y8().freeze();function O$(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function P$(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function I$(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 woe(e){if(!_4(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xoe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fC(e){return D3t(e)?e:new cOe(e)}function D3t(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function L3t(e){return typeof e=="string"||$3t(e)}function $3t(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const F3t="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Eoe=[],Soe={allowDangerousHtml:!0},B3t=/^(https?|ircs?|mailto|xmpp)$/i,j3t=[{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 pin(e){const t=z3t(e),n=U3t(e);return V3t(t.runSync(t.parse(n),n),e)}function z3t(e){const t=e.rehypePlugins||Eoe,n=e.remarkPlugins||Eoe,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Soe}:Soe;return N3t().use(Ejt).use(n).use(v3t,r).use(t)}function U3t(e){const t=e.children||"",n=new cOe;return typeof t=="string"&&(n.value=t),n}function V3t(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||W3t;for(const u of j3t)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+F3t+u.id,void 0);return v8(e,c),tFt(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function c(u,d,f){if(u.type==="raw"&&f&&typeof d=="number")return s?f.children.splice(d,1):f.children[d]={type:"text",value:u.value},d;if(u.type==="element"){let h;for(h in E$)if(Object.hasOwn(E$,h)&&Object.hasOwn(u.properties,h)){const p=u.properties[h],m=E$[h];(m===null||m.includes(u.tagName))&&(u.properties[h]=l(String(p||""),h,u))}}if(u.type==="element"){let h=n?!n.includes(u.tagName):o?o.includes(u.tagName):!1;if(!h&&r&&typeof d=="number"&&(h=!r(u,d,f)),h&&f&&typeof d=="number")return a&&u.children?f.children.splice(d,1,...u.children):f.children.splice(d,1),d}}}function W3t(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||B3t.test(e.slice(0,t))?e:""}const _oe=function(e,t,n){const r=g8(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Rg=function(e){if(e==null)return q3t;if(typeof e=="string")return K3t(e);if(typeof e=="object")return H3t(e);if(typeof e=="function")return b8(e);throw new Error("Expected function, string, or array as `test`")};function H3t(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rg(e[n]);return b8(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function K3t(e){return b8(t);function t(n){return n.tagName===e}}function b8(e){return t;function t(n,r,i){return!!(G3t(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function q3t(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function G3t(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}
vendor: 4,350 bytes, lines 1124-1126
1124const koe=/\n/g,Coe=/[\t ]+/g,C4=Rg("br"),Toe=Rg(nzt),Y3t=Rg("p"),Aoe=Rg("tr"),X3t=Rg(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",tzt,rzt]),uOe=Rg(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Z3t(e,t){const n=t||{},r="children"in e?e.children:[],i=uOe(e),o=hOe(e,{whitespace:n.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...fOe(e,{breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)s.push(...dOe(r[a],e,{whitespace:o,breakBefore:a?void 0:i,breakAfter:a<r.length-1?C4(r[a+1]):i}));const l=[];let c;for(a=-1;++a<s.length;){const u=s[a];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(` 1125`.repeat(c)||" "),c=-1,l.push(u))}return l.join("")}function dOe(e,t,n){return e.type==="element"?Q3t(e,t,n):e.type==="text"?n.whitespace==="normal"?fOe(e,n):J3t(e):[]}function Q3t(e,t,n){const r=hOe(e,n),i=e.children||[];let o=-1,s=[];if(X3t(e))return s;let a,l;for(C4(e)||Aoe(e)&&_oe(t,e,Aoe)?l=` 1126`:Y3t(e)?(a=2,l=2):uOe(e)&&(a=1,l=1);++o<i.length;)s=s.concat(dOe(i[o],e,{whitespace:r,breakBefore:o?void 0:a,breakAfter:o<i.length-1?C4(i[o+1]):l}));return Toe(e)&&_oe(t,e,Toe)&&s.push(" "),a&&s.unshift(a),l&&s.push(l),s}function fOe(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){koe.lastIndex=o;const l=koe.exec(n),c=l&&"index"in l?l.index:n.length;r.push(ezt(n.slice(o,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,c===n.length?t.breakAfter:!0)),o=c+1}let s=-1,a;for(;++s<r.length;)r[s].charCodeAt(r[s].length-1)===8203||s<r.length-1&&r[s+1].charCodeAt(0)===8203?(i.push(r[s]),a=void 0):r[s]?(typeof a=="number"&&i.push(a),i.push(r[s]),a=0):(s===0||s===r.length-1)&&i.push(0);return i}function J3t(e){return[String(e.value)]}function ezt(e,t,n){const r=[];let i=0,o;for(;i<e.length;){Coe.lastIndex=i;const s=Coe.exec(e);o=s?s.index:e.length,!i&&!o&&s&&!t&&r.push(""),i!==o&&r.push(e.slice(i,o)),i=s?o+s[0].length:o}return i!==o&&!n&&r.push(""),r.join(" ")}function hOe(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function tzt(e){return!!(e.properties||{}).hidden}function nzt(e){return e.tagName==="td"||e.tagName==="th"}function rzt(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function izt(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",p=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
1126noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:m,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},E={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},S=[E,d,a,n,e.C_BLOCK_COMMENT_MODE,u,c],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:S.concat([{begin:/\(/,end:/\)/,keywords:x,contains:S.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+s+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,a,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(_,k,E,S,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:x,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function ozt(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","
1126EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=izt(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function szt(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=e.
vendor: 7,929 bytes, line 1126
1126SHEBANG({binary:`(${f.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],g=["true","false"],v={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],w=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],x=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],E=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:g,built_in:[...b,...w,"set","shopt",...x,...E]},contains:[h,e.SHEBANG(),p,d,o,s,v,a,l,c,u,n]}}function azt(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",g={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[d,a,n,e.C_BLOCK_COMMENT_MODE,u,c],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat(["self"]),relevance:0}]),relevance:0},w={begin:"("+s+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(b,w,v,[d,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:g}}}function lzt(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",p=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
1126noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],x={type:m,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},E={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},S=[E,d,a,n,e.C_BLOCK_COMMENT_MODE,u,c],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:S.concat([{begin:/\(/,end:/\)/,keywords:x,contains:S.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+s+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,a,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(_,k,E,S,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:x,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:x},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function czt(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","
vendor: 5,729 bytes, line 1126
1126sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(o),built_in:t,literal:r},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(u,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:s},h=e.inherit(f,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,h]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},g=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});f.contains=[m,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],h.contains=[g,p,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const v={variants:[c,m,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},w=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",x={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},v,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+w+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[v,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},x]}}const uzt=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),dzt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],fzt=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],hzt=[...dzt,...fzt],pzt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),mzt=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invali
1126d","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),gzt=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),vzt=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
1126area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function yzt(e){const t=e.regex,n=uzt(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0}
vendor: 18,409 bytes, lines 1126-1127
1126,{className:"selector-class",begin:"\\."+s,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+mzt.join("|")+")"},{begin:":(:)?("+gzt.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+vzt.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:pzt.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+hzt.join("|")+")\\b"}]}}function bzt(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function wzt(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function xzt(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Ezt(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a={begin:/\[/,end:/\]/,contains:[r,o,i,s,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),f=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[r,a,o,i,s,n]}}]}}var gv="[0-9](_*[0-9])*",hC=`\\.(${gv})`,pC="[0-9a-fA-F](_*[0-9a-fA-F])*",Ooe={className:"number",variants:[{begin:`(\\b(${gv})((${hC})|\\.)?|(${hC}))[eE][+-]?(${gv})[fFdD]?\\b`},{begin:`\\b(${gv})((${hC})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${hC})[fFdD]?\\b`},{begin:`\\b(${gv})[fFdD]\\b`},{begin:`\\b0[xX]((${pC})\\.?|(${pC})?\\.(${pC}))[pP][+-]?(${gv})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${pC})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function pOe(e,t,n){return n===-1?"":e.replace(t,r=>pOe(e,t,n-1))}function Szt(e){const t=e.regex,n="[Ã-ʸa-zA-Z_$][Ã-ʸa-zA-Z_$0-9]*",r=n+pOe("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Ooe,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Ooe,c]}}const Poe="[A-Za-z$_][0-9A-Za-z$_]*",_zt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],kzt=["true","false","null","undefined","NaN","Infinity"],mOe=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],gOe=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vOe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Czt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Tzt=[].concat(vOe,mOe,gOe);function Azt(e){const t=e.regex,n=(M,{after:L})=>{const P="</"+M[0].slice(1);return M.input.indexOf(P,L)!==-1},r=Poe,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,L)=>{const P=M[0].length+M.index,G=M.input[P];if(G==="<"||G===","){L.ignoreMatch();return}G===">"&&(n(M,{after:P})||L.ignoreMatch());let Z;const z=M.input.substring(P);if(Z=z.match(/^\s*=/)){L.ignoreMatch();return}if((Z=z.match(/^\s+extends\s+/))&&Z.index===0){L.ignoreMatch();return}}},a={$pattern:Poe,keyword:_zt,literal:kzt,built_in:Tzt,"variable.language":Czt},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},w=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,g,{match:/\$\d+/},d];f.contains=w.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(w)});const x=[].concat(b,f.contains),E=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(x)}]),S={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:E},_={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...mOe,...gOe]}},C={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function O(M){return t.concat("(?!",M.join("|"),")")}const R={match:t.concat(/\b/,O([...vOe,"super","import"].map(M=>`${M}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),C,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,g,b,{match:/\$\d+/},d,k,{scope:"attr",match:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[b,e.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},R,A,_,F,{match:/\$[(.]/}]}}function Ozt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var vv="[0-9](_*[0-9])*",mC=`\\.(${vv})`,gC="[0-9a-fA-F](_*[0-9a-fA-F])*",Pzt={className:"number",variants:[{begin:`(\\b(${vv})((${mC})|\\.)?|(${mC}))[eE][+-]?(${vv})[fFdD]?\\b`},{begin:`\\b(${vv})((${mC})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${mC})[fFdD]?\\b`},{begin:`\\b(${vv})[fFdD]\\b`},{begin:`\\b0[xX]((${gC})\\.?|(${gC})?\\.(${gC}))[pP][+-]?(${vv})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${gC})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Izt(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);const a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},c=Pzt,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,a,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,a,l,s,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,l]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` 1127`},c]}}const Rzt=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Mzt=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Nzt=["def
1127s","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Dzt=[...Mzt,...Nzt],Lzt=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),yOe=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),bOe=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),$zt=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
1127area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Fzt=yOe.concat(bOe).sort().reverse();function Bzt(e){const t=Rzt(e),n=Fzt,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",s=[],a=[],l=function(w){return{className:"string",begin:"~?"+w+".*?"+w}},c=function(w,x,E){return{className:w,begin:x,relevance:E}},u={$pattern:/[a-z-]+/,keyword:r,attribute:Lzt.join(" ")},d={begin:"\\(",end:"\\)",contains:a,keywords:u,relevance:0};a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=a.concat({begin:/\{/,end:/\}/,contains:s}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},p={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$zt.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?ke
1127yframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:a,relevance:0}},g={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},v={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+Dzt.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+yOe.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+bOe.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},b={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[v]};return s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,g,b,p,v,h,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function jzt(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function zzt(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,s]}}function Uzt(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0}
vendor: 18,884 bytes, lines 1127-1128
1127,{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(u,{contains:[]});c.contains.push(f),u.contains.push(d);let h=[n,l];return[c,u,d,f].forEach(v=>{v.contains=v.contains.concat(h)}),h=h.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,o,c,u,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},i,r,l,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Vzt(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,a={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:a,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Wzt(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},a={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[a]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(m,g,v="\\1")=>{const b=v==="\\1"?v:t.concat(v,g);return t.concat(t.concat("(?:",m,")"),g,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,v,r)},h=(m,g,v)=>t.concat(t.concat("(?:",m,")"),g,/(?:\\.|[^\\\/])*?/,v,r),p=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",t.either(...d,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,a]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,a,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=p,s.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:p}}function Hzt(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),s={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(I,F)=>{F.data._beginMatch=I[1]||I[2]},"on:end":(I,F)=>{F.data._beginMatch!==I[1]&&F.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[ 1128]`,p={scope:"string",variants:[u,c,d,f]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],x={keyword:v,literal:(I=>{const F=[];return I.forEach(N=>{F.push(N),N.toLowerCase()===N?F.push(N.toUpperCase()):F.push(N.toLowerCase())}),F})(g),built_in:b},E=I=>I.map(F=>F.replace(/\|\d+$/,"")),S={variants:[{match:[/new/,t.concat(h,"+"),t.concat("(?!",E(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},_=t.concat(r,"\\b(?!\\()"),k={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),_],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),_],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},C={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[C,s,k,e.C_BLOCK_COMMENT_MODE,p,m,S]},A={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",E(v).join("\\b|"),"|",E(b).join("\\b|"),"\\b)"),r,t.concat(h,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[T]};T.contains.push(A);const O=[C,k,e.C_BLOCK_COMMENT_MODE,p,m,S],R={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",...O]},...O,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:x,contains:[R,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},s,A,k,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},S,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:x,contains:["self",R,s,k,e.C_BLOCK_COMMENT_MODE,p,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},p,m]}}function Kzt(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function qzt(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Gzt(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",h=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,p=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${h}))[eE][+-]?(${f})[jJ]?(?=${p})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${f})[jJ](?=${p})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[l,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]}
vendor: 3,902 bytes, line 1128
1128,{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,v,d]}]}}function Yzt(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Xzt(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Zzt(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepe
vendor: 7,835 bytes, line 1128
1128nd","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[a]}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},S=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:s},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=S,m.contains=S;const T=[{begin:/^\s*=>/,starts:{end:"$",contains:S}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:s,contains:S}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(T).concat(c).concat(S)}}function Qzt(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",a=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:a,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:u}},{className:"punctuation",begin:"->"},o]}}const Jzt=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e4t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t4t=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n4t=[...e4t,...t4t],r4t
1128=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i4t=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o4t=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),s4t=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
1128area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function a4t(e){const t=Jzt(e),n=o4t,r=i4t,i="@[a-z-]+",o="and or not only",a={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0}
vendor: 1,113 bytes, line 1128
1128,{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n4t.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s4t.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inl
1128ine-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,a,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:r4t.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function l4t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function c4t(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","ver
1128sioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=u,p=[...c,...l].filter(E=>!u.includes(E)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},g={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function b(E){return t.concat(/\b/,t.either(...E.map(S=>S.replace(/\s+/,"\\s+"))),/\b/)}const w={scope:"keyword",match:b(f),relevance:0};function x(E,{exceptions:S,when:_}={}){const k=_;return S=S||[],E.map(C=>C.match(/\|\d+$/)||S.includes(C)?C:k(C)?`${C}|0`:C)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(p,{when:E=>E.length<3}),literal:o,type:a,built_in:d},contains:[{scope:"type",match:b(s)},w,v,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}function wOe(e){return e?typeof e=="string"?e:e.source:null}function Pw(e){return yn("(?=",e,")")}function yn(...e){return e.map(n=>wOe(n)).join("")}function u4t(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Oo(...e){return"("+(u4t(e).capture?"":"?:")+e.map(r=>wOe(r)).join("|")+")"}const w8=e=>yn(/\b/,e,/\w$/.test(e)?/\b/:/\B/),d4t=["Protocol","Type"].map(w8),Ioe=["init","self"].map(w8),f4t=["Any","Self"],R$=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Roe=["false","nil","true"],h4t=["assignment","associativity","higherThan","left","lowerThan","none","right"],p4t=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Moe=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","
vendor: 16,134 bytes, line 1128
1128withoutActuallyEscaping","zip"],xOe=Oo(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),EOe=Oo(xOe,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),M$=yn(xOe,EOe,"*"),SOe=Oo(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),KP=Oo(SOe,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),oc=yn(SOe,KP,"*"),vC=yn(/[A-Z]/,KP,"*"),m4t=["attached","autoclosure",yn(/convention\(/,Oo("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",yn(/objc\(/,oc,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],g4t=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function v4t(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,Oo(...d4t,...Ioe)],className:{2:"keyword"}},o={match:yn(/\./,Oo(...R$)),relevance:0},s=R$.filter(Oe=>typeof Oe=="string").concat(["_|0"]),a=R$.filter(Oe=>typeof Oe!="string").concat(f4t).map(w8),l={variants:[{className:"keyword",match:Oo(...a,...Ioe)}]},c={$pattern:Oo(/\b\w+/,/#\w+/),keyword:s.concat(p4t),literal:Roe},u=[i,o,l],d={match:yn(/\./,Oo(...Moe)),relevance:0},f={className:"built_in",match:yn(/\b/,Oo(...Moe),/(?=\()/)},h=[d,f],p={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:M$},{match:`\\.(\\.|${EOe})+`}]},g=[p,m],v="([0-9]_*)+",b="([0-9a-fA-F]_*)+",w={className:"number",relevance:0,variants:[{match:`\\b(${v})(\\.(${v}))?([eE][+-]?(${v}))?\\b`},{match:`\\b0x(${b})(\\.(${b}))?([pP][+-]?(${v}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},x=(Oe="")=>({className:"subst",variants:[{match:yn(/\\/,Oe,/[0\\tnr"']/)},{match:yn(/\\/,Oe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),E=(Oe="")=>({className:"subst",match:yn(/\\/,Oe,/[\t ]*(?:[\r\n]|\r\n)/)}),S=(Oe="")=>({className:"subst",label:"interpol",begin:yn(/\\/,Oe,/\(/),end:/\)/}),_=(Oe="")=>({begin:yn(Oe,/"""/),end:yn(/"""/,Oe),contains:[x(Oe),E(Oe),S(Oe)]}),k=(Oe="")=>({begin:yn(Oe,/"/),end:yn(/"/,Oe),contains:[x(Oe),S(Oe)]}),C={className:"string",variants:[_(),_("#"),_("##"),_("###"),k(),k("#"),k("##"),k("###")]},T=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],A={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:T},O=Oe=>{const Pt=yn(Oe,/\//),Le=yn(/\//,Oe);return{begin:Pt,end:Le,contains:[...T,{scope:"comment",begin:`#(?!.*${Le})`,end:/$/}]}},R={scope:"regexp",variants:[O("###"),O("##"),O("#"),A]},I={match:yn(/`/,oc,/`/)},F={className:"variable",match:/\$\d+/},N={className:"variable",match:`\\$${KP}+`},B=[I,F,N],M={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:g4t,contains:[...g,w,C]}]}},L={scope:"keyword",match:yn(/@/,Oo(...m4t),Pw(Oo(/\(/,/\s+/)))},P={scope:"meta",match:yn(/@/,oc)},G=[M,L,P],Z={match:Pw(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:yn(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,KP,"+")},{className:"type",match:vC,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:yn(/\s+&\s+/,Pw(vC)),relevance:0}]},z={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...G,p,Z]};Z.contains.push(z);const oe={match:yn(oc,/\s*:/),keywords:"_|0",relevance:0},le={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",oe,...r,R,...u,...h,...g,w,C,...B,...G,Z]},se={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,Z]},ue={begin:Oo(Pw(yn(oc,/\s*:/)),Pw(yn(oc,/\s+/,oc,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:oc}]},ce={begin:/\(/,end:/\)/,keywords:c,contains:[ue,...r,...u,...g,w,C,...G,Z,le],endsParent:!0,illegal:/["']/},Q={match:[/(func|macro)/,/\s+/,Oo(I.match,oc,M$)],className:{1:"keyword",3:"title.function"},contains:[se,ce,t],illegal:[/\[/,/%/]},K={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[se,ce,t],illegal:/\[|%/},pe={match:[/operator/,/\s+/,M$],className:{1:"keyword",3:"title"}},X={begin:[/precedencegroup/,/\s+/,vC],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...h4t,...Roe],end:/}/},Ze={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Me={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},tt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,oc,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[se,...u,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:vC},...u],relevance:0}]};for(const Oe of C.variants){const Pt=Oe.contains.find(hn=>hn.label==="interpol");Pt.keywords=c;const Le=[...u,...h,...g,w,C,...B];Pt.contains=[...Le,{begin:/\(/,end:/\)/,contains:["self",...Le]}]}return{name:"Swift",keywords:c,contains:[...r,Q,K,Ze,Me,tt,pe,X,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},R,...u,...h,...g,w,C,...B,...G,Z,le]}}const qP="[A-Za-z$_][0-9A-Za-z$_]*",_Oe=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],kOe=["true","false","null","undefined","NaN","Infinity"],COe=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],TOe=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],AOe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],OOe=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],POe=[].concat(AOe,COe,TOe);function y4t(e){const t=e.regex,n=(M,{after:L})=>{const P="</"+M[0].slice(1);return M.input.indexOf(P,L)!==-1},r=qP,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(M,L)=>{const P=M[0].length+M.index,G=M.input[P];if(G==="<"||G===","){L.ignoreMatch();return}G===">"&&(n(M,{after:P})||L.ignoreMatch());let Z;const z=M.input.substring(P);if(Z=z.match(/^\s*=/)){L.ignoreMatch();return}if((Z=z.match(/^\s+extends\s+/))&&Z.index===0){L.ignoreMatch();return}}},a={$pattern:qP,keyword:_Oe,literal:kOe,built_in:POe,"variable.language":OOe},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},w=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,g,{match:/\$\d+/},d];f.contains=w.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(w)});const x=[].concat(b,f.contains),E=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(x)}]),S={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:E},_={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...COe,...TOe]}},C={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function O(M){return t.concat("(?!",M.join("|"),")")}const R={match:t.concat(/\b/,O([...AOe,"super","import"].map(M=>`${M}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),C,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,g,b,{match:/\$\d+/},d,k,{scope:"attr",match:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[b,e.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},R,A,_,F,{match:/\$[(.]/}]}}function b4t(e){const t=e.regex,n=y4t(e),r=qP,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:qP,keyword:_Oe.concat(l),literal:kOe,built_in:POe.concat(i),"variable.language":OOe},u={className:"meta",begin:"@"+r},d=(m,g,v)=>{const b=m.contains.findIndex(w=>w.label===g);if(b===-1)throw new Error("can not find mode to replace");m.contains.splice(b,1,v)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(u);const f=n.contains.find(m=>m.scope==="attr"),h=Object.assign({},f,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,f,h]),n.contains=n.contains.concat([u,o,s,h]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",a);const p=n.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function w4t(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(s,a),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single str
1128ing uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function x4t(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},a={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,s,i,e.QUOTE_STRING_MODE,l,c,a]}}function E4t(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(o,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function S4t(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},g=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0}
vendor: 19,144 bytes, lines 1128-1130
1128,{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,m,o,s],v=[...g];return v.pop(),v.push(a),h.contains=v,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}const _4t={arduino:ozt,bash:szt,c:azt,cpp:lzt,csharp:czt,css:yzt,diff:bzt,go:wzt,graphql:xzt,ini:Ezt,java:Szt,javascript:Azt,json:Ozt,kotlin:Izt,less:Bzt,lua:jzt,makefile:zzt,markdown:Uzt,objectivec:Vzt,perl:Wzt,php:Hzt,"php-template":Kzt,plaintext:qzt,python:Gzt,"python-repl":Yzt,r:Xzt,ruby:Zzt,rust:Qzt,scss:a4t,shell:l4t,sql:c4t,swift:v4t,typescript:b4t,vbnet:w4t,wasm:x4t,xml:E4t,yaml:S4t};function IOe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&IOe(n)}),e}let Noe=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function ROe(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Bf(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const k4t="</span>",Doe=e=>!!e.scope,C4t=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class T4t{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=ROe(t)}openNode(t){if(!Doe(t))return;const n=C4t(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Doe(t)&&(this.buffer+=k4t)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Loe=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class x8{constructor(){this.rootNode=Loe(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Loe({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{x8._collapse(n)}))}}class A4t extends x8{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new T4t(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function T1(e){return e?typeof e=="string"?e:e.source:null}function MOe(e){return Mg("(?=",e,")")}function O4t(e){return Mg("(?:",e,")*")}function P4t(e){return Mg("(?:",e,")?")}function Mg(...e){return e.map(n=>T1(n)).join("")}function I4t(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function E8(...e){return"("+(I4t(e).capture?"":"?:")+e.map(r=>T1(r)).join("|")+")"}function NOe(e){return new RegExp(e.toString()+"|").exec("").length-1}function R4t(e,t){const n=e&&e.exec(t);return n&&n.index===0}const M4t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function S8(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=T1(r),s="";for(;o.length>0;){const a=M4t.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&n++)}return s}).map(r=>`(${r})`).join(t)}const N4t=/\b\B/,DOe="[a-zA-Z]\\w*",_8="[a-zA-Z_]\\w*",LOe="\\b\\d+(\\.\\d+)?",$Oe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",FOe="\\b(0b[01]+)",D4t="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",L4t=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Mg(t,/.*\b/,e.binary,/\b.*/)),Bf({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},A1={begin:"\\\\[\\s\\S]",relevance:0},$4t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[A1]},F4t={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[A1]},B4t={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},iD=function(e,t,n={}){const r=Bf({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=E8("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Mg(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},j4t=iD("//","$"),z4t=iD("/\\*","\\*/"),U4t=iD("#","$"),V4t={scope:"number",begin:LOe,relevance:0},W4t={scope:"number",begin:$Oe,relevance:0},H4t={scope:"number",begin:FOe,relevance:0},K4t={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A1,{begin:/\[/,end:/\]/,relevance:0,contains:[A1]}]},q4t={scope:"title",begin:DOe,relevance:0},G4t={scope:"title",begin:_8,relevance:0},Y4t={begin:"\\.\\s*"+_8,relevance:0},X4t=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var yC=Object.freeze({__proto__:null,APOS_STRING_MODE:$4t,BACKSLASH_ESCAPE:A1,BINARY_NUMBER_MODE:H4t,BINARY_NUMBER_RE:FOe,COMMENT:iD,C_BLOCK_COMMENT_MODE:z4t,C_LINE_COMMENT_MODE:j4t,C_NUMBER_MODE:W4t,C_NUMBER_RE:$Oe,END_SAME_AS_BEGIN:X4t,HASH_COMMENT_MODE:U4t,IDENT_RE:DOe,MATCH_NOTHING_RE:N4t,METHOD_GUARD:Y4t,NUMBER_MODE:V4t,NUMBER_RE:LOe,PHRASAL_WORDS_MODE:B4t,QUOTE_STRING_MODE:F4t,REGEXP_MODE:K4t,RE_STARTERS_RE:D4t,SHEBANG:L4t,TITLE_MODE:q4t,UNDERSCORE_IDENT_RE:_8,UNDERSCORE_TITLE_MODE:G4t});function Z4t(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Q4t(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function J4t(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Z4t,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function eUt(e,t){Array.isArray(e.illegal)&&(e.illegal=E8(...e.illegal))}function tUt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function nUt(e,t){e.relevance===void 0&&(e.relevance=1)}const rUt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Mg(n.beforeMatch,MOe(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},iUt=["of","and","for","in","not","or","if","then","parent","list","value"],oUt="keyword";function BOe(e,t,n=oUt){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,BOe(e[o],t,o))}),r;function i(o,s){t&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");r[l[0]]=[o,sUt(l[0],l[1])]})}}function sUt(e,t){return t?Number(t):aUt(e)?0:1}function aUt(e){return iUt.includes(e.toLowerCase())}const $oe={},bm=e=>{console.error(e)},Foe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},sv=(e,t)=>{$oe[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$oe[`${e}/${t}`]=!0)},GP=new Error;function jOe(e,t,{key:n}){let r=0;const i=e[n],o={},s={};for(let a=1;a<=t.length;a++)s[a+r]=i[a],o[a+r]=!0,r+=NOe(t[a-1]);e[n]=s,e[n]._emit=o,e[n]._multi=!0}function lUt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw bm("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),GP;if(typeof e.beginScope!="object"||e.beginScope===null)throw bm("beginScope must be object"),GP;jOe(e,e.begin,{key:"beginScope"}),e.begin=S8(e.begin,{joinWith:""})}}function cUt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw bm("skip, excludeEnd, returnEnd not compatible with endScope: {}"),GP;if(typeof e.endScope!="object"||e.endScope===null)throw bm("endScope must be object"),GP;jOe(e,e.end,{key:"endScope"}),e.end=S8(e.end,{joinWith:""})}}function uUt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function dUt(e){uUt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),lUt(e),cUt(e)}function fUt(e){function t(s,a){return new RegExp(T1(s),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=NOe(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=t(S8(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new n;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new r;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[Q4t,tUt,dUt,rUt].forEach(u=>u(s,a)),e.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[J4t,eUt,nUt].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=BOe(s.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=t(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=t(l.end)),l.terminatorEnd=T1(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return hUt(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Bf(e.classNameAliases||{}),o(e)}function zOe(e){return e?e.endsWithParent||zOe(e.starts):!1}function hUt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Bf(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:zOe(e)?Bf(e,{starts:e.starts?Bf(e.starts):null}):Object.isFrozen(e)?Bf(e):e}var pUt="11.11.1";class mUt extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const N$=ROe,Boe=Bf,joe=Symbol("nomatch"),gUt=7,UOe=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:A4t};function l(N){return a.noHighlightRe.test(N)}function c(N){let B=N.className+" ";B+=N.parentNode?N.parentNode.className:"";const M=a.languageDetectRe.exec(B);if(M){const L=k(M[1]);return L||(Foe(o.replace("{}",M[1])),Foe("Falling back to no-highlight mode for this block.",N)),L?M[1]:"no-highlight"}return B.split(/\s+/).find(L=>l(L)||k(L))}function u(N,B,M){let L="",P="";typeof B=="object"?(L=N,M=B.ignoreIllegals,P=B.language):(sv("10.7.0","highlight(lang, code, ...args) has been deprecated."),sv("10.7.0",`Please use highlight(code, options) instead. 1129https://github.com/highlightjs/highlight.js/issues/2277`),P=N,L=B),M===void 0&&(M=!0);const G={code:L,language:P};I("before:highlight",G);const Z=G.result?G.result:d(G.language,G.code,M);return Z.code=G.code,I("after:highlight",Z),Z}function d(N,B,M,L){const P=Object.create(null);function G(H,J){return H.keywords[J]}function Z(){if(!Le.keywords){vt.addText(at);return}let H=0;Le.keywordPatternRe.lastIndex=0;let J=Le.keywordPatternRe.exec(at),me="";for(;J;){me+=at.substring(H,J.index);const Ae=tt.case_insensitive?J[0].toLowerCase():J[0],st=G(Le,Ae);if(st){const[Kt,Fi]=st;if(vt.addText(me),me="",P[Ae]=(P[Ae]||0)+1,P[Ae]<=gUt&&(Jn+=Fi),Kt.startsWith("_"))me+=J[0];else{const U=tt.classNameAliases[Kt]||Kt;le(J[0],U)}}else me+=J[0];H=Le.keywordPatternRe.lastIndex,J=Le.keywordPatternRe.exec(at)}me+=at.substring(H),vt.addText(me)}function z(){if(at==="")return;let H=null;if(typeof Le.subLanguage=="string"){if(!t[Le.subLanguage]){vt.addText(at);return}H=d(Le.subLanguage,at,!0,hn[Le.subLanguage]),hn[Le.subLanguage]=H._top}else H=h(at,Le.subLanguage.length?Le.subLanguage:null);Le.relevance>0&&(Jn+=H.relevance),vt.__addSublanguage(H._emitter,H.language)}function oe(){Le.subLanguage!=null?z():Z(),at=""}function le(H,J){H!==""&&(vt.startScope(J),vt.addText(H),vt.endScope())}function se(H,J){let me=1;const Ae=J.length-1;for(;me<=Ae;){if(!H._emit[me]){me++;continue}const st=tt.classNameAliases[H[me]]||H[me],Kt=J[me];st?le(Kt,st):(at=Kt,Z(),at=""),me++}}function ue(H,J){return H.scope&&typeof H.scope=="string"&&vt.openNode(tt.classNameAliases[H.scope]||H.scope),H.beginScope&&(H.beginScope._wrap?(le(at,tt.classNameAliases[H.beginScope._wrap]||H.beginScope._wrap),at=""):H.beginScope._multi&&(se(H.beginScope,J),at="")),Le=Object.create(H,{parent:{value:Le}}),Le}function ce(H,J,me){let Ae=R4t(H.endRe,me);if(Ae){if(H["on:end"]){const st=new Noe(H);H["on:end"](J,st),st.isMatchIgnored&&(Ae=!1)}if(Ae){for(;H.endsParent&&H.parent;)H=H.parent;return H}}if(H.endsWithParent)return ce(H.parent,J,me)}function Q(H){return Le.matcher.regexIndex===0?(at+=H[0],1):(Jo=!0,0)}function K(H){const J=H[0],me=H.rule,Ae=new Noe(me),st=[me.__beforeBegin,me["on:begin"]];for(const Kt of st)if(Kt&&(Kt(H,Ae),Ae.isMatchIgnored))return Q(J);return me.skip?at+=J:(me.excludeBegin&&(at+=J),oe(),!me.returnBegin&&!me.excludeBegin&&(at=J)),ue(me,H),me.returnBegin?0:J.length}function pe(H){const J=H[0],me=B.substring(H.index),Ae=ce(Le,H,me);if(!Ae)return joe;const st=Le;Le.endScope&&Le.endScope._wrap?(oe(),le(J,Le.endScope._wrap)):Le.endScope&&Le.endScope._multi?(oe(),se(Le.endScope,H)):st.skip?at+=J:(st.returnEnd||st.excludeEnd||(at+=J),oe(),st.excludeEnd&&(at=J));do Le.scope&&vt.closeNode(),!Le.skip&&!Le.subLanguage&&(Jn+=Le.relevance),Le=Le.parent;while(Le!==Ae.parent);return Ae.starts&&ue(Ae.starts,H),st.returnEnd?0:J.length}function X(){const H=[];for(let J=Le;J!==tt;J=J.parent)J.scope&&H.unshift(J.scope);H.forEach(J=>vt.openNode(J))}let Ze={};function Me(H,J){const me=J&&J[0];if(at+=H,me==null)return oe(),0;if(Ze.type==="begin"&&J.type==="end"&&Ze.index===J.index&&me===""){if(at+=B.slice(J.index,J.index+1),!i){const Ae=new Error(`0 width match regex (${N})`);throw Ae.languageName=N,Ae.badRule=Ze.rule,Ae}return 1}if(Ze=J,J.type==="begin")return K(J);if(J.type==="illegal"&&!M){const Ae=new Error('Illegal lexeme "'+me+'" for mode "'+(Le.scope||"<unnamed>")+'"');throw Ae.mode=Le,Ae}else if(J.type==="end"){const Ae=pe(J);if(Ae!==joe)return Ae}if(J.type==="illegal"&&me==="")return at+=` 1130`,1;if($i>1e5&&$i>J.index*3)throw new Error("potential infinite loop, way more iterations than matches");return at+=me,me.length}const tt=k(N);if(!tt)throw bm(o.replace("{}",N)),new Error('Unknown language: "'+N+'"');const Oe=fUt(tt);let Pt="",Le=L||Oe;const hn={},vt=new a.__emitter(a);X();let at="",Jn=0,Pn=0,$i=0,Jo=!1;try{if(tt.__emitTokens)tt.__emitTokens(B,vt);else{for(Le.matcher.considerAll();;){$i++,Jo?Jo=!1:Le.matcher.considerAll(),Le.matcher.lastIndex=Pn;const H=Le.matcher.exec(B);if(!H)break;const J=B.substring(Pn,H.index),me=Me(J,H);Pn=H.index+me}Me(B.substring(Pn))}return vt.finalize(),Pt=vt.toHTML(),{language:N,value:Pt,relevance:Jn,illegal:!1,_emitter:vt,_top:Le}}catch(H){if(H.message&&H.message.includes("Illegal"))return{language:N,value:N$(B),illegal:!0,relevance:0,_illegalBy:{message:H.message,index:Pn,context:B.slice(Pn-100,Pn+100),mode:H.mode,resultSoFar:Pt},_emitter:vt};if(i)return{language:N,value:N$(B),illegal:!1,relevance:0,errorRaised:H,_emitter:vt,_top:Le};throw H}}function f(N){const B={value:N$(N),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return B._emitter.addText(N),B}function h(N,B){B=B||a.languages||Object.keys(t);const M=f(N),L=B.filter(k).filter(T).map(oe=>d(oe,N,!1));L.unshift(M);const P=L.sort((oe,le)=>{if(oe.relevance!==le.relevance)return le.relevance-oe.relevance;if(oe.language&&le.language){if(k(oe.language).supersetOf===le.language)return 1;if(k(le.language).supersetOf===oe.language)return-1}return 0}),[G,Z]=P,z=G;return z.secondBest=Z,z}function p(N,B,M){const L=B&&n[B]||M;N.classList.add("hljs"),N.classList.add(`language-${L}`)}function m(N){let B=null;const M=c(N);if(l(M))return;if(I("before:highlightElement",{el:N,language:M}),N.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",N);return}if(N.children.length>
vendor: 4,165 bytes, line 1130
11300&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N)),a.throwUnescapedHTML))throw new mUt("One of your code blocks includes unescaped HTML.",N.innerHTML);B=N;const L=B.textContent,P=M?u(L,{language:M,ignoreIllegals:!0}):h(L);N.innerHTML=P.value,N.dataset.highlighted="yes",p(N,M,P.language),N.result={language:P.language,re:P.relevance,relevance:P.relevance},P.secondBest&&(N.secondBest={language:P.secondBest.language,relevance:P.secondBest.relevance}),I("after:highlightElement",{el:N,result:P,text:L})}function g(N){a=Boe(a,N)}const v=()=>{x(),sv("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){x(),sv("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let w=!1;function x(){function N(){x()}if(document.readyState==="loading"){w||window.addEventListener("DOMContentLoaded",N,!1),w=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function E(N,B){let M=null;try{M=B(e)}catch(L){if(bm("Language definition for '{}' could not be registered.".replace("{}",N)),i)bm(L);else throw L;M=s}M.name||(M.name=N),t[N]=M,M.rawDefinition=B.bind(null,e),M.aliases&&C(M.aliases,{languageName:N})}function S(N){delete t[N];for(const B of Object.keys(n))n[B]===N&&delete n[B]}function _(){return Object.keys(t)}function k(N){return N=(N||"").toLowerCase(),t[N]||t[n[N]]}function C(N,{languageName:B}){typeof N=="string"&&(N=[N]),N.forEach(M=>{n[M.toLowerCase()]=B})}function T(N){const B=k(N);return B&&!B.disableAutodetect}function A(N){N["before:highlightBlock"]&&!N["before:highlightElement"]&&(N["before:highlightElement"]=B=>{N["before:highlightBlock"](Object.assign({block:B.el},B))}),N["after:highlightBlock"]&&!N["after:highlightElement"]&&(N["after:highlightElement"]=B=>{N["after:highlightBlock"](Object.assign({block:B.el},B))})}function O(N){A(N),r.push(N)}function R(N){const B=r.indexOf(N);B!==-1&&r.splice(B,1)}function I(N,B){const M=N;r.forEach(function(L){L[M]&&L[M](B)})}function F(N){return sv("10.7.0","highlightBlock will be removed entirely in v12.0"),sv("10.7.0","Please use highlightElement now."),m(N)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:x,highlightElement:m,highlightBlock:F,configure:g,initHighlighting:v,initHighlightingOnLoad:b,registerLanguage:E,unregisterLanguage:S,listLanguages:_,getLanguage:k,registerAliases:C,autoDetection:T,inherit:Boe,addPlugin:O,removePlugin:R}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=pUt,e.regex={concat:Mg,lookahead:MOe,either:E8,optional:P4t,anyNumberOfTimes:O4t};for(const N in yC)typeof yC[N]=="object"&&IOe(yC[N]);return Object.assign(e,yC),e},Eb=UOe({});Eb.newInstance=()=>UOe({});var vUt=Eb;Eb.HighlightJS=Eb;Eb.default=Eb;const yUt=yr(vUt),zoe={},bUt="hljs-";function wUt(e){const t=yUt.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:s,registered:a};function n(l,c,u){const d=u||zoe,f=typeof d.prefix=="string"?d.prefix:bUt;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:xUt,classPrefix:f});const h=t.highlight(c,{ignoreIllegals:!0,language:l});if(h.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:h.errorRaised});const p=h._emitter.root,m=p.data;return m.language=h.language,m.relevance=h.relevance,p}function r(l,c){const d=(c||zoe).subset||i();let f=-1,h=0,p;for(;++f<d.length;){const m=d[f];if(!t.getLanguage(m))continue;const g=n(m,l,c);g.data&&g.data.relevance!==void 0&&g.data.relevance>h&&(h=g.data.relevance,p=g)}return p||{type:"root",children:[],data:{language:void 0,relevance:h}}}function i(){return t.listLanguages()}function o(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let u;for(u in l)Object.hasOwn(l,u)&&t.registerLanguage(u,l[u])}}function s(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let u;for(u in l)if(Object.hasOwn(l,u)){const d=l[u];
1130t.registerAliases(typeof d=="string"?d:[...d],{languageName:u})}}}function a(l){return!!t.getLanguage(l)}}class xUt{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(s,a){return a?s+"_".repeat(a):n.options.classPrefix+s}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const EUt={};function gin(e){const t=e||EUt,n=t.aliases,r=t.detect||!1,i=t.languages||_4t,o=t.plainText,s=t.prefix,a=t.subset;let l="hljs";const c=wUt(i);if(n&&c.registerAlias(n),s){const u=s.indexOf("-");l=u===-1?s:s.slice(0,u)}return function(u,d){v8(u,"element",function(f,h,p){if(f.tagName!=="code"||!p||p.type!=="element"||p.tagName!=="pre")return;const m=SUt(f);if(m===!1||!m&&!r||m&&o&&o.includes(m))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(l)||f.properties.className.unshift(l);const g=Z3t(f,{whitespace:"pre"});let v;try{v=m?c.highlight(m,g,{prefix:s}):c.highlightAuto(g,{prefix:s,subset:a})}catch(b){const w=b;if(m&&/Unknown language/.test(w.message)){d.message("Cannot highlight as `"+m+"`, itâs not registered",{ancestors:[p,f],cause:w,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw w}!m&&v.data&&v.data.language&&f.properties.className.push("language-"+v.data.language),v.children.length>0&&(f.children=v.children)})}}function SUt(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}function _Ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const oD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function C0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function k8(e){return"nodeType"in e}function Ts(e){var t,n;return e?C0(e)?e:k8(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function C8(e){const{Document:t}=Ts(e);return e instanceof t}function w_(e){return C0(e)?!1:e instanceof Ts(e).HTMLElement}function VOe(e){return e instanceof Ts(e).SVGElement}function T0(e){return e?C0(e)?e.document:k8(e)?C8(e)?e:w_(e)||VOe(e)?e.ownerDocument:document:document:document}const ru=oD?y.useLayoutEffect:y.useEffect;function T8(e){const t=y.useRef(e);return ru(()=>{t.current=e}),y.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function kUt(){const e=y.useRef(null),t=y.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=y.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function O1(e,t){t===void 0&&(t=[e]);const n=y.useRef(e);return ru(()=>{n.current!==e&&(n.current=e)},t),n}function x_(e,t){const n=y.useRef();return y.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function YP(e){const t=T8(e),n=y.useRef(null),r=y.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function T4(e){const t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}let D$={};function E_(e,t){return y.useMemo(()=>{if(t)return t;const n=D$[e]==null?0:D$[e]+1;return D$[e]=n,e+"-"+n},[e,t])}function WOe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,s)=>{const a=Object.entries(s);for(const[l,c]of a){const u=o[l];u!=null&&(o[l]=u+e*c)}return o},{...t})}}const gy=WOe(1),XP=WOe(-1);function CUt(e){return"clientX"in e&&"clientY"in e}function A8(e){if(!e)return!1;const{KeyboardEvent:t}=Ts(e.target);return t&&e instanceof t}function TUt(e){if(!e)return!1;const{TouchEvent:t}=Ts(e.target);return t&&e instanceof t}function A4(e){if(TUt(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return CUt(e)?{x:e.clientX,y:e.clientY}:null}const ZP=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ZP.Translate.toString(e),ZP.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Uoe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function AUt(e){return e.matches(Uoe)?e:e.querySelector(Uoe)}const OUt={display:"none"};function PUt(e){let{id:t,value:n}=e;return $.createElement("div",{id:t,style:OUt},n)}function IUt(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return $.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}
1130function RUt(){const[e,t]=y.useState("");return{announce:y.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const HOe=y.createContext(null);function MUt(e){const t=y.useContext(HOe);y.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function NUt(){const[e]=y.useState(()=>new Set),t=y.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[y.useCallback(r=>{let{type:i,event:o}=r;e.forEach(s=>{var a;return(a=s[i])==null?void 0:a.call(s,o)})},[e]),t]}const DUt={draggable:` 1131 To pick up a draggable item, press the space bar. 1132 While dragging, use the arrow keys to move the item. 1133 Press space again to drop the item in its new position, or press escape to cancel. 1134 `},LUt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function $Ut(e){let{announcements:t=LUt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=DUt}=e;const{announce:o,announcement:s}=RUt(),a=E_("DndLiveRegion"),[l,c]=y.useState(!1);if(y.useEffect(()=>{c(!0)},[]),MUt(y.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const u=$.createElement($.Fragment,null,$.createElement(PUt,{id:r,value:i.draggable}),$.createElement(IUt,{id:a,announcement:s}));return n?pr.createPortal(u,n):u}var ui;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ui||(ui={}));function QP(){}function vin(e,t){return y.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function yin(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Vl=Object.freeze({x:0,y:0});function FUt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function BUt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function jUt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function zUt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Voe(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const bin=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Voe(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=FUt(Voe(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(BUt)};function UUt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const VUt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=UUt(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(jUt)};function WUt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function KOe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Vl}function HUt(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const KUt=HUt(1);function qUt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function GUt(e,t,n){const r=qUt(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.he
vendor: 12,097 bytes, line 1134
1134ight;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const YUt={ignoreTransform:!1};function A0(e,t){t===void 0&&(t=YUt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Ts(e).getComputedStyle(e);c&&(n=GUt(n,c,u))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function Woe(e){return A0(e,{ignoreTransform:!0})}function XUt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function ZUt(e,t){return t===void 0&&(t=Ts(e).getComputedStyle(e)),t.position==="fixed"}function QUt(e,t){t===void 0&&(t=Ts(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function O8(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(C8(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!w_(i)||VOe(i)||n.includes(i))return n;const o=Ts(e).getComputedStyle(i);return i!==e&&QUt(i,o)&&n.push(i),ZUt(i,o)?n:r(i.parentNode)}return e?r(e):n}function qOe(e){const[t]=O8(e,1);return t??null}function L$(e){return!oD||!e?null:C0(e)?e:k8(e)?C8(e)||e===T0(e).scrollingElement?window:w_(e)?e:null:null}function GOe(e){return C0(e)?e.scrollX:e.scrollLeft}function YOe(e){return C0(e)?e.scrollY:e.scrollTop}function O4(e){return{x:GOe(e),y:YOe(e)}}var Ci;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ci||(Ci={}));function XOe(e){return!oD||!e?!1:e===document.scrollingElement}function ZOe(e){const t={x:0,y:0},n=XOe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const JUt={x:.2,y:.2};function e5t(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=JUt);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=ZOe(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+m.height?(h.y=Ci.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!u&&l>=t.bottom-m.height&&(h.y=Ci.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&a>=t.right-m.width?(h.x=Ci.Forward,p.x=r*Math.abs((t.right-m.width-a)/m.width)):!d&&s<=t.left+m.width&&(h.x=Ci.Backward,p.x=r*Math.abs((t.left+m.width-s)/m.width)),{direction:h,speed:p}}function t5t(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function QOe(e){return e.reduce((t,n)=>gy(t,O4(n)),Vl)}function n5t(e){return e.reduce((t,n)=>t+GOe(n),0)}function r5t(e){return e.reduce((t,n)=>t+YOe(n),0)}function i5t(e,t){if(t===void 0&&(t=A0),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);qOe(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const o5t=[["x",["left","right"],n5t],["y",["top","bottom"],r5t]];class P8{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=O8(n),i=QOe(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of o5t)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Xx{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function s5t(e){const{EventTarget:t}=Ts(e);return e instanceof t?e:T0(e)}function $$(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var xa;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(xa||(xa={}));function Hoe(e){e.preventDefault()}function a5t(e){e.stopPropagation()}var rn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(rn||(rn={}));const JOe={start:[rn.Space,rn.Enter],cancel:[rn.Esc],end:[rn.Space,rn.Enter,rn.Tab]},l5t=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case rn.Right:return{...n,x:n.x+25};case rn.Left:return{...n,x:n.x-25};case rn.Down:return{...n,y:n.y+25};case rn.Up:return{...n,y:n.y-25}}};class ePe{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Xx(T0(n)),this.windowListeners=new Xx(Ts(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xa.Resize,this.handleCancel),this.windowListeners.add(xa.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xa.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&i5t(r),n(Vl)}handleKeyDown(t){if(A8(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=JOe,coordinateGetter:s=l5t,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Vl;this.referenceCoordinates||(this.referenceCoordinates=u);const d=s(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=XP(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const g=t.code,{isTop:v,isRight:b,isLeft:w,isBottom:x,maxScroll:E,minScroll:S}=ZOe(m),_=t5t(m),k={x:Math.min(g===rn.Right?_.right-_.width/2:_.right,Math.max(g===rn.Right?_.left:_.left+_.width/2,d.x)),y:Math.min(g===rn.Down?_.bottom-_.height/2:_.bottom,Math.max(g===rn.Down?_.top:_.top+_.height/2,d.y))},C=g===rn.Right&&!b||g===rn.Left&&!w,T=g===rn.Down&&!x||g===rn.Up&&!v;if(C&&k.x!==d.x){const A=m.scrollLeft+f.x,O=g===rn.Right&&A<=E.x||g===rn.Left&&A>=S.x;if(O&&!f.y){m.scrollTo({left:A,behavior:a});return}O?h.x=m.scrollLeft-A:h.x=g===rn.Right?m.scrollLeft-E.x:m.scrollLeft-S.x,h.x&&m.scrollBy({left:-h.x,behavior:a});break}else if(T&&k.y!==d.y){const A=m.scrollTop+f.y,O=g===rn.Down&&A<=E.y||g===rn.Up&&A>=S.y;if(O&&!f.x){m.scrollTo({top:A,behavior:a});return}O?h.y=m.scrollTop-A:h.y=g===rn.Down?m.scrollTop-E.y:m.scrollTop-S.y,h.y&&m.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,gy(XP(d,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ePe.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=JOe,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Koe(e){return!!(e&&"distance"in e)}function qoe(e){return!!(e&&"delay"in e)}class I8{constructor(t,n,r){var i;r===void 0&&(r=s5t(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=T0(s),this.documentListeners=new Xx(this.document),this.listeners=new Xx(r),this.windowListeners=new Xx(Ts(s)),this.initialCoordinates=(i=A4(o))!=null?i:Vl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(xa.Resize,this.handleCancel),this.windowListeners.add(xa.DragStart,Hoe),this.windowListeners.add(xa.VisibilityChange,this.handleCancel),this.windowListeners.add(xa.ContextMenu,Hoe),this.documentListeners.add(xa.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(qoe(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Koe(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(xa.Click,a5t,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xa.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=A4(t))!=null?n:Vl,c=XP(i,l);if(!r&&a){if(Koe(a)){if(a.tolerance!=null&&$$(c,a.tolerance))return this.handleCancel();if($$(c,a.distance))return this.handleStart()}if(qoe(a)&&$$(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===rn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const c5t={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tPe extends I8{constructor(t){const{event:n}=t,r=T0(n.target);super(t,c5t,r)}}tPe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const u5t={move:{name:"mousemove"},end:{name:"mouseup"}};var P4;(function(e){e[e.RightClick=2]="RightClick"})(P4||(P4={}));class d5t extends I8{constructor(t){super(t,u5t,T0(t.event.target))}}d5t.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===P4.RightClick?!1:(r==null||r({event:n}),!0)}}];const F$={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class f5t extends I8{constructor(t){super(t,F$)}static setup(){return window.addEventListener(F$.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(F$.move.name,t)};function t(){}}}f5t.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Zx;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Zx||(Zx={}));var JP;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
1134sedTreeOrder"})(JP||(JP={}));function h5t(e){let{acceleration:t,activator:n=Zx.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=JP.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=m5t({delta:d,disabled:!o}),[p,m]=kUt(),g=y.useRef({x:0,y:0}),v=y.useRef({x:0,y:0}),b=y.useMemo(()=>{switch(n){case Zx.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zx.DraggableRect:return i}},[n,i,l]),w=y.useRef(null),x=y.useCallback(()=>{const S=w.current;if(!S)return;const _=g.current.x*v.current.x,k=g.current.y*v.current.y;S.scrollBy(_,k)},[]),E=y.useMemo(()=>a===JP.TreeOrder?[...c].reverse():c,[a,c]);y.useEffect(()=>{if(!o||!c.length||!b){m();return}for(const S of E){if((r==null?void 0:r(S))===!1)continue;const _=c.indexOf(S),k=u[_];if(!k)continue;const{direction:C,speed:T}=e5t(S,k,b,t,f);for(const A of["x","y"])h[A][C[A]]||(T[A]=0,C[A]=0);if(T.x>0||T.y>0){m(),w.current=S,p(x,s),g.current=T,v.current=C;return}}g.current={x:0,y:0},v.current={x:0,y:0},m()},[t,x,r,m,o,s,JSON.stringify(b),JSON.stringify(h),p,c,E,u,JSON.stringify(f)])}const p5t={x:{[Ci.Backward]:!1,[Ci.Forward]:!1},y:{[Ci.Backward]:!1,[Ci.Forward]:!1}};function m5t(e){let{delta:t,disabled:n}=e;const r=T4(t);return x_(i=>{if(n||!r||!i)return p5t;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ci.Backward]:i.x[Ci.Backward]||o.x===-1,[Ci.Forward]:i.x[Ci.Forward]||o.x===1},y:{[Ci.Backward]:i.y[Ci.Backward]||o.y===-1,[Ci.Forward]:i.y[Ci.Forward]||o.y===1}}},[n,t,r])}function g5t(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return x_(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function v5t(e,t){return y.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var P1;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(P1||(P1={}));var I4;(function(e){e.Optimized="optimized"})(I4||(I4={}));const Goe=new Map;function y5t(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=y.useState(null),{frequency:a,measure:l,strategy:c}=i,u=y.useRef(e),d=g(),f=O1(d),h=y.useCallback(function(v){v===void 0&&(v=[]),!f.current&&s(b=>b===null?v:b.concat(v.filter(w=>!b.includes(w))))},[f]),p=y.useRef(null),m=x_(v=>{if(d&&!n)return Goe;if(!v||v===Goe||u.current!==e||o!=null){const b=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){b.set(w.id,w.rect.current);continue}const x=w.node.current,E=x?new P8(l(x),x):null;w.rect.current=E,E&&b.set(w.id,E)}return b}return v},[e,o,n,d,l]);return y.useEffect(()=>{u.current=e},[e]),y.useEffect(()=>{d||h()},[n,d]),y.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),y.useEffect(()=>{d||typeof a!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},a))},[a,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:o!=null};function g(){switch(c){case P1.Always:return!1;case P1.BeforeDragging:return n;default:return!n}}}function nPe(e,t){return x_(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function b5t(e,t){return nPe(e,t)}function w5t(e){let{callback:t,disabled:n}=e;const r=T8(t),i=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return y.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function sD(e){let{callback:t,disabled:n}=e;const r=T8(t),i=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return y.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function x5t(e){return new P8(A0(e),e)}function Yoe(e,t,n){t===void 0&&(t=x5t);const[r,i]=y.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=w5t({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),a=sD({callback:o});return ru(()=>{o(),e?(a==null||a.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),s==null||s.disconnect())},[e]),r}function E5t(e){const t=nPe(e);return KOe(e,t)}const Xoe=[];function S5t(e){const t=y.useRef(e),n=x_(r=>e?r&&r!==Xoe&&e&&t.current&&e.parentNode===t.current.parentNode?r:O8(e):Xoe,[e]);return y.useEffect(()=>{t.current=e},[e]),n}function _5t(e){const[t,n]=y.useState(null),r=y.useRef(e),i=y.useCallback(o=>{const s=L$(o.target);s&&n(a=>a?(a.set(s,O4(s)),new Map(a)):null)},[]);return y.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=L$(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,O4(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const c=L$(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),y.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>gy(o,s),Vl):QOe(e):Vl,[e,t])}function Zoe(e,t){t===void 0&&(t=[]);const n=y.useRef(null);return y.useEffect(()=>{n.current=null},t),y.useEffect(()=>{const r=e!==Vl;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?XP(e,n.current):Vl}function k5t(e){y.useEffect(()=>{if(!oD)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function C5t(e,t){return y.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}
1134function rPe(e){return y.useMemo(()=>e?XUt(e):null,[e])}const Qoe=[];function T5t(e,t){t===void 0&&(t=A0);const[n]=e,r=rPe(n?Ts(n):null),[i,o]=y.useState(Qoe);function s(){o(()=>e.length?e.map(l=>XOe(l)?r:new P8(t(l),l)):Qoe)}const a=sD({callback:s});return ru(()=>{a==null||a.disconnect(),s(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),i}function A5t(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return w_(t)?t:e}function O5t(e){let{measure:t}=e;const[n,r]=y.useState(null),i=y.useCallback(c=>{for(const{target:u}of c)if(w_(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=sD({callback:i}),s=y.useCallback(c=>{const u=A5t(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[a,l]=YP(s);return y.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const P5t=[{sensor:tPe,options:{}},{sensor:ePe,options:{}}],I5t={current:{}},qT={draggable:{measure:Woe},droppable:{measure:Woe,strategy:P1.WhileDragging,frequency:I4.Optimized},dragOverlay:{measure:A0}};class Qx extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const R5t={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qx,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:QP},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:qT,measureDroppableContainers:QP,windowRect:null,measuringScheduled:!1},M5t={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:QP,draggableNodes:new Map,over:null,measureDroppableContainers:QP},aD=y.createContext(M5t),iPe=y.createContext(R5t);function N5t(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qx}}}function D5t(e,t){switch(t.type){case ui.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ui.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ui.DragEnd:case ui.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ui.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Qx(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case ui.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Qx(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case ui.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Qx(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function L5t(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=y.useContext(aD),o=T4(r),s=T4(n==null?void 0:n.id);return y.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!A8(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=AUt(u);if(d){d.focus();break}}})}},[r,t,i,s,o]),null}function $5t(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function F5t(e){return y.useMemo(()=>({draggable:{...qT.draggable,...e==null?void 0:e.draggable},droppable:{...qT.droppable,...e==null?void 0:e.droppable},dragOverlay:{...qT.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function B5t(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=y.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;ru(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=KOe(u,r);if(s||(d.x=0),a||(d.y=0),o.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=qOe(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}const oPe=y.createContext({...Vl,scaleX:1,scaleY:1}
1134);var cf;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(cf||(cf={}));const win=y.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=P5t,collisionDetection:d=VUt,measuring:f,modifiers:h,...p}=t;const m=y.useReducer(D5t,void 0,N5t),[g,v]=m,[b,w]=NUt(),[x,E]=y.useState(cf.Uninitialized),S=x===cf.Initialized,{draggable:{active:_,nodes:k,translate:C},droppable:{containers:T}}=g,A=_!=null?k.get(_):null,O=y.useRef({initial:null,translated:null}),R=y.useMemo(()=>{var Ne;return _!=null?{id:_,data:(Ne=A==null?void 0:A.data)!=null?Ne:I5t,rect:O}:null},[_,A]),I=y.useRef(null),[F,N]=y.useState(null),[B,M]=y.useState(null),L=O1(p,Object.values(p)),P=E_("DndDescribedBy",s),G=y.useMemo(()=>T.getEnabled(),[T]),Z=F5t(f),{droppableRects:z,measureDroppableContainers:oe,measuringScheduled:le}=y5t(G,{dragging:S,dependencies:[C.x,C.y],config:Z.droppable}),se=g5t(k,_),ue=y.useMemo(()=>B?A4(B):null,[B]),ce=ze(),Q=b5t(se,Z.draggable.measure);B5t({activeNode:_!=null?k.get(_):null,config:ce.layoutShiftCompensation,initialRect:Q,measure:Z.draggable.measure});const K=Yoe(se,Z.draggable.measure,Q),pe=Yoe(se?se.parentElement:null),X=y.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ze=T.getNodeFor((n=X.current.over)==null?void 0:n.id),Me=O5t({measure:Z.dragOverlay.measure}),tt=(r=Me.nodeRef.current)!=null?r:se,Oe=S?(i=Me.rect)!=null?i:K:null,Pt=!!(Me.nodeRef.current&&Me.rect),Le=E5t(Pt?null:K),hn=rPe(tt?Ts(tt):null),vt=S5t(S?Ze??se:null),at=T5t(vt),Jn=$5t(h,{transform:{x:C.x-Le.x,y:C.y-Le.y,scaleX:1,scaleY:1},activatorEvent:B,active:R,activeNodeRect:K,containerNodeRect:pe,draggingNodeRect:Oe,over:X.current.over,overlayNodeRect:Me.rect,scrollableAncestors:vt,scrollableAncestorRects:at,windowRect:hn}),Pn=ue?gy(ue,C):null,$i=_5t(vt),Jo=Zoe($i),H=Zoe($i,[K]),J=gy(Jn,Jo),me=Oe?KUt(Oe,Jn):null,Ae=R&&me?d({active:R,collisionRect:me,droppableRects:z,droppableContainers:G,pointerCoordinates:Pn}
1134):null,st=zUt(Ae,"id"),[Kt,Fi]=y.useState(null),U=Pt?Jn:gy(Jn,H),j=WUt(U,(o=Kt==null?void 0:Kt.rect)!=null?o:null,K),V=y.useRef(null),Y=y.useCallback((Ne,yt)=>{let{sensor:Jt,options:jn}=yt;if(I.current==null)return;const zn=k.get(I.current);if(!zn)return;const Bi=Ne.nativeEvent,Wr=new Jt({active:I.current,activeNode:zn,event:Bi,options:jn,context:X,onAbort(Hr){if(!k.get(Hr))return;const{onDragAbort:Zl}=L.current,hu={id:Hr};Zl==null||Zl(hu),b({type:"onDragAbort",event:hu})},onPending(Hr,Fd,Zl,hu){if(!k.get(Hr))return;const{onDragPending:D0}=L.current,Bd={id:Hr,constraint:Fd,initialCoordinates:Zl,offset:hu};D0==null||D0(Bd),b({type:"onDragPending",event:Bd})},onStart(Hr){const Fd=I.current;if(Fd==null)return;const Zl=k.get(Fd);if(!Zl)return;const{onDragStart:hu}=L.current,N0={activatorEvent:Bi,active:{id:Fd,data:Zl.data,rect:O}};pr.unstable_batchedUpdates(()=>{hu==null||hu(N0),E(cf.Initializing),v({type:ui.DragStart,initialCoordinates:Hr,active:Fd}),b({type:"onDragStart",event:N0}),N(V.current),M(Bi)})},onMove(Hr){v({type:ui.DragMove,coordinates:Hr})},onEnd:As(ui.DragEnd),onCancel:As(ui.DragCancel)});V.current=Wr;function As(Hr){return async function(){const{active:Zl,collisions:hu,over:N0,scrollAdjustedTranslate:D0}=X.current;let Bd=null;if(Zl&&D0){const{cancelDrop:L0}=L.current;Bd={activatorEvent:Bi,active:Zl,collisions:hu,delta:D0,over:N0},Hr===ui.DragEnd&&typeof L0=="function"&&await Promise.resolve(L0(Bd))&&(Hr=ui.DragCancel)}I.current=null,pr.unstable_batchedUpdates(()=>{v({type:Hr}),E(cf.Uninitialized),Fi(null),N(null),M(null),V.current=null;const L0=Hr===ui.DragEnd?"onDragEnd":"onDragCancel";if(Bd){const zD=L.current[L0];zD==null||zD(Bd),b({type:L0,event:Bd})}})}}},[k]),ne=y.useCallback((Ne,yt)=>(Jt,jn)=>{const zn=Jt.nativeEvent,Bi=k.get(jn);if(I.current!==null||!Bi||zn.dndKit||zn.defaultPrevented)return;const Wr={active:Bi};Ne(Jt,yt.options,Wr)===!0&&(zn.dndKit={capturedBy:yt.sensor},I.current=jn,Y(Jt,yt))},[k,Y]),ie=v5t(u,ne);k5t(u),ru(()=>{K&&x===cf.Initializing&&E(cf.Initialized)},[K,x]),y.useEffect(()=>{const{onDragMove:Ne}=L.current,{active:yt,activatorEvent:Jt,collisions:jn,over:zn}=X.current;if(!yt||!Jt)return;const Bi={active:yt,activatorEvent:Jt,collisions:jn,delta:{x:J.x,y:J.y},over:zn};pr.unstable_batchedUpdates(()=>{Ne==null||Ne(Bi),b({type:"onDragMove",event:Bi})})},[J.x,J.y]),y.useEffect(()=>{const{active:Ne,activatorEvent:yt,collisions:Jt,droppableContainers:jn,scrollAdjustedTranslate:zn}=X.current;if(!Ne||I.current==null||!yt||!zn)return;const{onDragOver:Bi}=L.current,Wr=jn.get(st),As=Wr&&Wr.rect.current?{id:Wr.id,rect:Wr.rect.current,data:Wr.data,disabled:Wr.disabled}:null,Hr={active:Ne,activatorEvent:yt,collisions:Jt,delta:{x:zn.x,y:zn.y},over:As};pr.unstable_batchedUpdates(()=>{Fi(As),Bi==null||Bi(Hr),b({type:"onDragOver",event:Hr})})},[st]),ru(()=>{X.current={activatorEvent:B,active:R,activeNode:se,collisionRect:me,collisions:Ae,droppableRects:z,draggableNodes:k,draggingNode:tt,draggingNodeRect:Oe,droppableContainers:T,over:Kt,scrollableAncestors:vt,scrollAdjustedTranslate:J},O.current={initial:Oe,translated:me}},[R,se,Ae,me,k,tt,Oe,z,T,Kt,vt,J]),h5t({...ce,delta:C,draggingRect:me,pointerCoordinates:Pn,scrollableAncestors:vt,scrollableAncestorRects:at});const ge=y.useMemo(()=>({active:R,activeNode:se,activeNodeRect:K,activatorEvent:B,collisions:Ae,containerNodeRect:pe,dragOverlay:Me,draggableNodes:k,droppableContainers:T,droppableRects:z,over:Kt,measureDroppableContainers:oe,scrollableAncestors:vt,scrollableAncestorRects:at,measuringConfiguration:Z,measuringScheduled:le,windowRect:hn}),[R,se,K,B,Ae,pe,Me,k,T,z,Kt,oe,vt,at,Z,le,hn]),be=y.useMemo(()=>({activatorEvent:B,activators:ie,active:R,activeNodeRect:K,ariaDescribedById:{draggable:P},dispatch:v,draggableNodes:k,over:Kt,measureDroppableContainers:oe}),[B,ie,R,K,v,P,k,Kt,oe]);return $.createElement(HOe.Provider,{value:w},$.createElement(aD.Provider,{value:be},$.createElement(iPe.Provider,{value:ge},$.createElement(oPe.Provider,{value:j},c)),$.createElement(L5t,{disabled:(a==null?void 0:a.restoreFocus)===!1})),$.createElement($Ut,{...a,hiddenTextDescribedById:P}));function ze(){const Ne=(F==null?void 0:F.autoScrollEnabled)===!1,yt=typeof l=="object"?l.enabled===!1:l===!1,Jt=S&&!Ne&&!yt;return typeof l=="object"?{...l,enabled:Jt}:{enabled:Jt}}}),j5t=y.createContext(null),Joe="button",z5t="Draggable";
1134function U5t(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=E_(z5t),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=y.useContext(aD),{role:h=Joe,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,v=y.useContext(g?oPe:j5t),[b,w]=YP(),[x,E]=YP(),S=C5t(s,t),_=O1(n);ru(()=>(d.set(t,{id:t,key:o,node:b,activatorNode:x,data:_}),()=>{const C=d.get(t);C&&C.key===o&&d.delete(t)}),[d,t]);const k=y.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":g&&h===Joe?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,m,g,p,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:k,isDragging:g,listeners:r?void 0:S,node:b,over:f,setNodeRef:w,setActivatorNodeRef:E,transform:v}}function V5t(){return y.useContext(iPe)}const W5t="Droppable",H5t={timeout:25};function K5t(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=E_(W5t),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=y.useContext(aD),u=y.useRef({disabled:n}),d=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...H5t,...i},v=O1(m??r),b=y.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(v.current)?v.current:[v.current]),h.current=null},g)},[g]),w=sD({callback:b,disabled:p||!s}),x=y.useCallback((k,C)=>{w&&(C&&(w.unobserve(C),d.current=!1),k&&w.observe(k))},[w]),[E,S]=YP(x),_=O1(t);return y.useEffect(()=>{!w||!E.current||(w.disconnect(),d.current=!1,w.observe(E.current))},[E,w]),y.useEffect(()=>(a({type:ui.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:f,data:_}}),()=>a({type:ui.UnregisterDroppable,key:o,id:r})),[r]),y.useEffect(()=>{n!==u.current.disabled&&(a({type:ui.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:f,isOver:(l==null?void 0:l.id)===r,node:E,over:l,setNodeRef:S}}function sPe(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function q5t(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function bC(e){return e!==null&&e>=0}function G5t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Y5t(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const wC={scaleX:1,scaleY:1},xin=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:s}=e;const a=(t=n[i])!=null?t:r;if(!a)return null;const l=X5t(n,s,i);if(s===i){const c=n[o];return c?{x:i<o?c.left+c.width-(a.left+a.width):c.left-a.left,y:0,...wC}:null}return s>i&&s<=o?{x:-a.width-l,y:0,...wC}:s<i&&s>=o?{x:a.width+l,y:0,...wC}:{x:0,y:0,...wC}};function X5t(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return!r||!i&&!o?0:n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width)}const aPe=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=sPe(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},lPe="Sortable",cPe=$.createContext({activeIndex:-1,containerId:lPe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:aPe,disabled:{draggable:!1,droppable:!1}});function Ein(e){let{children:t,id:n,items:r,strategy:i=aPe,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=V5t(),d=E_(lPe,n),f=a.rect!==null,h=y.useMemo(()=>r.map(S=>typeof S=="object"&&"id"in S?S.id:S),[r]),p=s!=null,m=s?h.indexOf(s.id):-1,g=c?h.indexOf(c.id):-1,v=y.useRef(h),b=!G5t(h,v.current),w=g!==-1&&m===-1||b,x=Y5t(o);ru(()=>{b&&p&&u(h)},[b,h,p,u]),y.useEffect(()=>{v.current=h},[h]);const E=y.useMemo(()=>({activeIndex:m,containerId:d,disabled:x,disableTransforms:w,items:h,overIndex:g,useDragOverlay:f,sortedRects:q5t(h,l),strategy:i}),[m,d,x.draggable,x.droppable,w,h,g,l,f,i]);return $.createElement(cPe.Provider,{value:E},t)}const Z5t=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return sPe(n,r,i).indexOf(t)},Q5t=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},J5t={duration:200,easing:"ease"},uPe="transform",eVt=ZP.Transition.toString({property:uPe,duration:0,easing:"linear"}),tVt={roleDescription:"sortable"};function nVt(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=y.useState(null),a=y.useRef(n);return ru(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=A0(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,r,i]),y.useEffect(()=>{o&&s(null)},[o]),o}function Sin(e){let{animateLayoutChanges:t=Q5t,attributes:n,disabled:r,data:i,getNewIndex:o=Z5t,id:s,strategy:a,resizeObserverConfig:l,transition:c=J5t}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:v,strategy:b}=y.useContext(cPe),w=rVt(r,h),x=u.indexOf(s),E=y.useMemo(()=>({sortable:{containerId:d,index:x,items:u},...i}),[d,i,x,u]),S=y.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:_,node:k,isOver:C,setNodeRef:T}=K5t({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:A,activatorEvent:O,activeNodeRect:R,attributes:I,setNodeRef:F,listeners:N,isDragging:B,over:M,setActivatorNodeRef:L,transform:P}=U5t({id:s,data:E,attributes:{...tVt,...n},disabled:w.draggable}),G=_Ut(T,F),Z=!!A,z=Z&&!p&&bC(f)&&bC(g),oe=!v&&B,le=oe&&z?P:null,ue=z?le??(a??b)({rects:m,activeNodeRect:R,activeIndex:f,overIndex:g,index:x}):null,ce=bC(f)&&bC(g)?o({id:s,items:u,activeIndex:f,overIndex:g}):x,Q=A==null?void 0:A.id,K=y.useRef({activeId:Q,items:u,newIndex:ce,containerId:d}),pe=u!==K.current.items,X=t({active:A,containerId:d,isDragging:B,isSorting:Z,id:s,index:x,items:u,newIndex:K.current.newIndex,previousItems:K.current.items,previousContainerId:K.current.containerId,transition:c,wasDragging:K.current.activeId!=null}),Ze=nVt({disabled:!X,index:x,node:k,rect:_});return y.useEffect(()=>{Z&&K.current.newIndex!==ce&&(K.current.newIndex=ce),d!==K.current.containerId&&(K.current.containerId=d),u!==K.current.items&&(K.current.items=u)},[Z,ce,d,u]),y.useEffect(()=>{if(Q===K.current.activeId)return;if(Q!=null&&K.current.activeId==null){K.current.activeId=Q;return}const tt=setTimeout(()=>{K.current.activeId=Q},50);return()=>clearTimeout(tt)},[Q]),{active:A,activeIndex:f,attributes:I,data:E,rect:_,index:x,newIndex:ce,items:u,isOver:C,isSorting:Z,isDragging:B,listeners:N,node:k,overIndex:g,over:M,setNodeRef:G,setActivatorNodeRef:L,setDroppableNodeRef:T,setDraggableNodeRef:F,transform:Ze??ue,transition:Me()};function Me(){if(Ze||pe&&K.current.newIndex===x)return eVt;if(!(oe&&!A8(O)||!c)&&(Z||X))return ZP.Transition.toString({...c,property:uPe})}}function rVt(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}rn.Down,rn.Right,rn.Up,rn.Left;function Wi(e){this.content=e}Wi.prototype={constructor:Wi,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return i==-1?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new Wi(o)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Wi(n)},addToStart:function(e,t){return new Wi([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Wi(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(o==-1?i.length:o,0,t,n),new Wi(i)}
vendor: 57,595 bytes, lines 1134-1137
1134,forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Wi.from(e),e.size?new Wi(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Wi.from(e),e.size?new Wi(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Wi.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};Wi.from=function(e){if(e instanceof Wi)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Wi(t)};function dPe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),o=t.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=dPe(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function fPe(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=e.child(--i),a=t.child(--o),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let c=fPe(s.content,a.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class de{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,i=0,o){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>t&&r(l,i+a,o||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,n-u),r,i+u)}a=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let o="",s=!0;return this.nodesBetween(t,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(t,l)-l,n-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<t.content.length;o++)i.push(t.content[o]);return new de(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let o=0,s=0;s<n;o++){let a=this.content[o],l=s+a.nodeSize;l>t&&((s<t||l>n)&&(a.isText?a=a.cut(Math.max(0,t-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,t-s-1),Math.min(a.content.size,n-s-1))),r.push(a),i+=a.nodeSize),s=l}return new de(r,i)}cutByIndex(t,n){return t==n?de.empty:t==0&&n==this.content.length?this:new de(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new de(i,o)}addToStart(t){return new de([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new de(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];t(i,r,n),r+=i.nodeSize}}findDiffStart(t,n=0){return dPe(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return fPe(this,t,n,r)}findIndex(t){if(t==0)return xC(0,t);if(t==this.size)return xC(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=t)return o==t?xC(n+1,o):xC(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return de.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new de(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return de.empty;let n,r=0;for(let i=0;i<t.length;i++){let o=t[i];r+=o.nodeSize,i&&o.isText&&t[i-1].sameMarkup(o)?(n||(n=t.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new de(n||t,r)}static from(t){if(!t)return de.empty;if(t instanceof de)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new de([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}de.empty=new de([],0);const B$={index:0,offset:0};function xC(e,t){return B$.index=e,B$.offset=t,B$}function eI(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!eI(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!eI(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let Tn=class R4{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let i=0;i<t.length;i++){let o=t[i];if(this.eq(o))return t;if(this.type.excludes(o.type))n||(n=t.slice(0,i));else{if(o.type.excludes(this.type))return t;!r&&o.type.rank>this.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&eI(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return R4.none;if(t instanceof R4)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Tn.none=[];class tI extends Error{}class Pe{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=pPe(this.content,t+this.openStart,n);return r&&new Pe(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Pe(hPe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Pe.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Pe(de.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new Pe(t,r,i)}}Pe.empty=new Pe(de.empty,0,0);function hPe(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:s,offset:a}=e.findIndex(n);if(i==t||o.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(hPe(o.content,t-i-1,n-i-1)))}function pPe(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i);if(o==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let a=pPe(s.content,t-o-1,n,s);return a&&e.replaceChild(i,s.copy(a))}function iVt(e,t,n){if(n.openStart>e.depth)throw new tI("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new tI("Inconsistent open depths");return mPe(e,t,n,0)}function mPe(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let s=mPe(e,t,n,r+1);return o.copy(o.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let s=e.parent,a=s.content;return xm(s,a.cut(0,e.parentOffset).append(n.content).append(a.cut(t.parentOffset)))}else{let{start:s,end:a}=oVt(n,e);return xm(o,vPe(e,s,a,t,r))}else return xm(o,nI(e,t,r))}function gPe(e,t){if(!t.type.compatibleContent(e.type))throw new tI("Cannot join "+t.type.name+" onto "+e.type.name)}function M4(e,t,n){let r=e.node(n);return gPe(r,t.node(n)),r}function wm(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Jx(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(wm(e.nodeAfter,r),o++));for(let a=o;a<s;a++)wm(i.child(a),r);t&&t.depth==n&&t.textOffset&&wm(t.nodeBefore,r)}function xm(e,t){return e.type.checkContent(t),e.copy(t)}function vPe(e,t,n,r,i){let o=e.depth>i&&M4(e,t,i+1),s=r.depth>i&&M4(n,r,i+1),a=[];return Jx(null,e,i,a),o&&s&&t.index(i)==n.index(i)?(gPe(o,s),wm(xm(o,vPe(e,t,n,r,i+1)),a)):(o&&wm(xm(o,nI(e,t,i+1)),a),Jx(t,n,i,a),s&&wm(xm(s,nI(n,r,i+1)),a)),Jx(r,null,i,a),new de(a)}function nI(e,t,n){let r=[];if(Jx(null,e,n,r),e.depth>n){let i=M4(e,t,n+1);wm(xm(i,nI(e,t,n+1)),r)}return Jx(t,null,n,r),new de(r)}function oVt(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let o=n-1;o>=0;o--)i=t.node(o).copy(de.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class I1{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<t;o++)i+=r.child(o).nodeSize;return i}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return Tn.none;if(this.textOffset)return t.child(n).marks;let r=t.maybeChild(n-1),i=t.maybeChild(n);if(!r){let a=r;r=i,i=a}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=t.parent.maybeChild(t.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new rI(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=t;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,a,i+l),!c||(s=s.child(a),s.isText))break;o=c-1,i+=l+1}return new I1(n,r,o)}static resolveCached(t,n){let r=ese.get(t);if(r)for(let o=0;o<r.elts.length;o++){let s=r.elts[o];if(s.pos==n)return s}else ese.set(t,r=new sVt);let i=r.elts[r.i]=I1.resolve(t,n);return r.i=(r.i+1)%aVt,i}}class sVt{constructor(){this.elts=[],this.i=0}}const aVt=12,ese=new WeakMap;class rI{constructor(t,n,r){this.$from=t,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const lVt=Object.create(null);let oh=class N4{constructor(t,n,r,i=Tn.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||de.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,r,i=0){this.content.nodesBetween(t,n,r,i,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,r,i){return this.content.textBetween(t,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,r){return this.type==t&&eI(this.attrs,n||t.defaultAttrs||lVt)&&Tn.sameSet(this.marks,r||Tn.none)}copy(t=null){return t==this.content?this:new N4(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new N4(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,r=!1){if(t==n)return Pe.empty;let i=this.resolve(t),o=this.resolve(n),s=r?0:i.sharedDepth(n),a=i.start(s),c=i.node(s).content.cut(i.pos-a,o.pos-a);return new Pe(c,i.depth-s,o.depth-s)}replace(t,n,r){return iVt(this.resolve(t),this.resolve(n),r)}nodeAt(t){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(t);if(n=n.maybeChild(r),!n)return null;if(i==t||n.isText)return n;t-=i+1}}childAfter(t){let{index:n,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(t){return I1.resolveCached(this,t)}resolveNoCache(t){return I1.resolve(this,t)}rangeHasMark(t,n,r){let i=!1;return n>t&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),yPe(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=de.empty,i=0,o=r.childCount){let s=this.contentMatchAt(t).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(t,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(t).matchType(r),s=o&&o.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Tn.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!Tn.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=de.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};oh.prototype.text=void 0;class iI extends oh{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):yPe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new iI(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new iI(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function yPe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class ig{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new cVt(t,n);if(r.next==null)return ig.empty;let i=bPe(r);r.next&&r.err("Unexpected trailing text");let o=gVt(mVt(i));return vVt(o,r),o}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,r=t.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(t.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let r=0;r<t.next.length;r++)if(this.next[n].type==t.next[r].type)return!0;return!1}fillBefore(t,n=!1,r=0){let i=[this];function o(s,a){let l=s.matchFragment(t,r);if(l&&(!n||l.validEnd))return de.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=o(d,a.concat(u));if(f)return f}}return null}return o(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(t)){let s=[];for(let a=i;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:a,next:l}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i<r.next.length;i++)t.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),t.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+t.indexOf(r.next[s].next);return o}).join(` 1135`)}}ig.empty=new ig(!0);class cVt{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function bPe(e){let t=[];do t.push(uVt(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function uVt(e){let t=[];do t.push(dVt(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function dVt(e){let t=pVt(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=fVt(e,t);else break;return t}function tse(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function fVt(e,t){let n=tse(e),r=n;return e.eat(",")&&(e.next!="}"?r=tse(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function hVt(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let s=n[o];s.isInGroup(t)&&i.push(s)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function pVt(e){if(e.eat("(")){let t=bPe(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=hVt(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function mVt(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(s,a,l){let c={term:l,to:a};return t[s].push(c),c}function i(s,a){s.forEach(l=>l.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(o(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=o(s.exprs[l],a);if(l==s.exprs.length-1)return c;i(c,a=n())}else if(s.type=="star"){let l=n();return r(a,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(o(s.expr,a),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();i(o(s.expr,l),u),l=u}if(s.max==-1)i(o(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();r(l,u),i(o(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function wPe(e,t){return t-e}function nse(e,t){let n=[];return r(t),n.sort(wPe);function r(i){let o=e[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let s=0;s<o.length;s++){let{term:a,to:l}=o[s];!a&&n.indexOf(l)==-1&&r(l)}}}function gVt(e){let t=Object.create(null);return n(nse(e,0));function n(r){let i=[];r.forEach(s=>{e[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<i.length;u++)i[u][0]==a&&(c=i[u][1]);nse(e,l).forEach(u=>{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=t[r.join(",")]=new ig(r.indexOf(e.length-1)>-1);for(let s=0;s<i.length;s++){let a=i[s][1].sort(wPe);o.next.push({type:i[s][0],next:t[a.join(",")]||n(a)})}return o}}function vVt(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],o=!i.validEnd,s=[];for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];s.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function xPe(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function EPe(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let o=e[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function SPe(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in e){let o=e[i];o.validate&&o.validate(t[i])}}function _Pe(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new bVt(e,r,t[r]);return n}let rse=class kPe{constructor(t,n,r){this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_Pe(t,r.attrs),this.defaultAttrs=xPe(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ig.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:EPe(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new oh(this,this.computeAttrs(t),de.from(n),Tn.setFrom(r))}createChecked(t=null,n,r){return n=de.from(n),this.checkContent(n),new oh(this,this.computeAttrs(t),n,Tn.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=de.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(de.empty,!0);return o?new oh(this,t,n.append(o),Tn.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){SPe(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?n&&n.push(t[r]):n||(n=t.slice(0,r));return n?n.length?n:Tn.none:t}static compile(t,n){let r=Object.create(null);t.forEach((o,s)=>r[o]=new kPe(o,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function yVt(e,t,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class bVt{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?yVt(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class lD{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=_Pe(t,i.attrs),this.excluded=null;let o=xPe(this.attrs);this.instance=o?new Tn(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Tn(this,EPe(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((o,s)=>r[o]=new lD(o,i++,n,s)),r}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){SPe(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class CPe{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=Wi.from(t.nodes),n.marks=Wi.from(t.marks||{}),this.nodes=rse.compile(this.spec.nodes,this),this.marks=lD.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;if(o.contentMatch=r[s]||(r[s]=ig.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=a=="_"?null:a?ise(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:ise(this,s.split(" "))}this.nodeFromJSON=i=>oh.fromJSON(this,i),this.markFromJSON=i=>Tn.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof rse){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new iI(r,r.defaultAttrs,t,Tn.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function ise(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let a in e.marks){let l=e.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function wVt(e){return e.tag!=null}function xVt(e){return e.style!=null}class ld{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(wVt(i))this.tags.push(i);else if(xVt(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=t.nodes[i.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new sse(this,n,!1);return r.addAll(t,Tn.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new sse(this,n,!0);return r.addAll(t,Tn.none,n.from,n.to),Pe.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(_Vt(t,o.tag)&&(o.namespace===void 0||t.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(t);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(t,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let s=this.styles[o],a=s.style;if(!(a.indexOf(t)!=0||s.context&&!r.matchesContext(s.context)||a.length>t.length&&(a.charCodeAt(t.length)!=61||a.slice(t.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(t){let n=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<o)break}n.splice(s,0,i)}for(let i in t.marks){let o=t.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=ase(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in t.nodes){let o=t.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=ase(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new ld(t,ld.schemaRules(t)))}}const TPe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},EVt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},APe={ol:!0,ul:!0},R1=1,D4=2,eE=4;function ose(e,t,n){return t!=null?(t?R1:0)|(t==="full"?D4:0):e&&e.whitespace=="pre"?R1|D4:n&~eE}class EC{constructor(t,n,r,i,o,s){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=Tn.none,this.match=o||(s&eE?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(de.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&R1)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=de.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(de.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!TPe.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class sse{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,s=ose(null,n.preserveWhitespace,0)|(r?eE:0);i?o=new EC(i.type,i.attrs,Tn.none,!0,n.topMatch||i.type.contentMatch,s):r?o=new EC(null,null,Tn.none,!0,null,s):o=new EC(t.schema.topNodeType,null,Tn.none,!0,null,s),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top,o=i.options&D4?"full":this.localPreserveWS||(i.options&R1)>0,{schema:s}=this.parser;if(o==="full"||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(o)if(o==="full")r=r.replace(/\r\n?/g,` 1136`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=r.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),a[l]&&this.insertNode(s.text(a[l]),n,!/\S/.test(a[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let a=i.content[i.content.length-1],l=t.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=this.localPreserveWS,o=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let s=t.nodeName.toLowerCase(),a;APe.hasOwnProperty(s)&&this.parser.normalizeLists&&SVt(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(a=this.parser.matchTag(t,this,r));e:if(l?l.ignore:EVt.hasOwnProperty(s))this.findInside(t),this.ignoreFallback(t,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let c,u=this.needsBlock;if(TPe.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=l&&l.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(t,n);c&&this.addElementByRule(t,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=i}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` 1137`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],s=r.getPropertyValue(o);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(o,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(t,n,r,i){let o,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}o&&this.sync(a)&&this.open--}addAll(t,n,r,i){let o=r||0;for(let s=r?t.childNodes[r]:t.firstChild,a=i==null?null:t.childNodes[i];s!=a;s=s.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(s,n);this.findAtPoint(t,o)}findPlace(t,n,r){let i,o;for(let s=this.open,a=0;s>=0;s--){let l=this.nodes[s],c=l.findWrapping(t);if(c&&(!i||i.length>c.length+a)&&(i=c,o=l,!c.length))break;if(l.solid){if(r)break;a+=2}}if(!i)return null;this.sync(o);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(t,n,r){if(t.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let i=this.findPlace(t,n,r);if(i){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(t.type));let s=Tn.none;for(let a of i.concat(t.marks))(o.type?o.type.allowsMarkType(a.type):lse(a.type,t.type))&&(s=a.addToSet(s));return o.content.push(t.mark(s)),!0}return!1}enter(t,n,r,i){let o=this.findPlace(t.create(n),r,!1);return o&&(o=this.enterInner(t,n,r,!0,i)),o}enterInner(t,n,r,i=!1,o){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let a=ose(t,o,s.options);s.options&eE&&s.content.length==0&&(a|=eE);let l=Tn.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):lse(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new EC(t,n,l,i,null,a)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=R1)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function SVt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&APe.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function _Vt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ase(e){let t={};for(let n in e)t[n]=e[n];return t}function lse(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==t||o.indexOf(u)<0&&s(u))return!0}};if(s(i.contentMatch))return!0}}class Ng{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=j$(n).createDocumentFragment());let i=r,o=[];return t.forEach(s=>{if(o.length||s.marks.length){let a=0,l=0;for(;a<o.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)i=o.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(t,n){let{dom:r,contentDOM:i}=GT(j$(n),this.nodes[t.type.name](t),null,t.attrs);if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let i=t.marks.length-1;i>=0;i--){let o=this.serializeMark(t.marks[i],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&>(j$(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return GT(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Ng(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=cse(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return cse(t.marks)}}function cse(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function j$(e){return e.document||window.document}const use=new WeakMap;function kVt(e){let t=use.get(e);return t===void 0&&use.set(e,t=CVt(e)),t}function CVt(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(e),t}function GT(e,t,n,r){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=kVt(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let a,l=n?e.createElementNS(n,i):e.createElement(i),c=t[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<t.length;d++){let f=t[d];if(f===0){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=GT(e,f,n,r);if(l.appendChild(h),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const OPe=65535,PPe=Math.pow(2,16);function TVt(e,t){return e+t*PPe}function dse(e){return e&OPe}function AVt(e){return(e-(e&OPe))/PPe}const IPe=1,RPe=2,YT=4,MPe=8;class L4{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&MPe)>0}get deletedBefore(){return(this.delInfo&(IPe|YT))>0}get deletedAfter(){return(this.delInfo&(RPe|YT))>0}get deletedAcross(){return(this.delInfo&YT)>0}}class Ds{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Ds.empty)return Ds.empty}recover(t){let n=0,r=dse(t);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+AVt(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let i=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>t)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(t<=d){let f=c?t==l?-1:t==d?1:n:n,h=l+i+(f<0?0:u);if(r)return h;let p=t==(n<0?l:d)?null:TVt(a/3,t-l),m=t==l?RPe:t==d?IPe:YT;return(n<0?t!=l:t!=d)&&(m|=MPe),new L4(h,m,p)}i+=u-c}return r?t+i:new L4(t+i,0,null)}touches(t,n){let r=0,i=dse(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>t)break;let c=this.ranges[a+o],u=l+c;if(t<=u&&a==i*3)return!0;r+=this.ranges[a+s]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let s=this.ranges[i],a=s-(this.inverted?o:0),l=s+(this.inverted?0:o),c=this.ranges[i+n],u=this.ranges[i+r];t(a,a+c,l,l+u),o+=u-c}}invert(){return new Ds(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?Ds.empty:new Ds(t<0?[0,-t,0]:[0,0,t])}}Ds.empty=new Ds([]);class M1{constructor(t,n,r=0,i=t?t.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new M1(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,r=this._maps.length;n<t._maps.length;n++){let i=t.getMirror(n);this.appendMap(t._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,r=this._maps.length+t._maps.length;n>=0;n--){let i=t.getMirror(n);this.appendMap(t._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new M1;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this._maps[o],a=s.mapResult(t,n);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,t=this._maps[l].recover(a.recover);continue}}i|=a.delInfo,t=a.pos}return r?t:new L4(t,i,null)}}const z$=Object.create(null);class ko{getMap(){return Ds.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=z$[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in z$)throw new RangeError("Duplicate use of step JSON ID "+t);return z$[t]=n,n.prototype.jsonID=t,n}}class ti{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new ti(t,null)}static fail(t){return new ti(null,t)}static fromReplace(t,n,r,i){try{return ti.ok(t.replace(n,r,i))}catch(o){if(o instanceof tI)return ti.fail(o.message);throw o}}}function R8(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(R8(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return de.fromArray(r)}class jf extends ko{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new Pe(R8(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return ti.fromReplace(t,this.from,this.to,o)}invert(){return new kl(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new jf(n.pos,r.pos,this.mark)}merge(t){return t instanceof jf&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new jf(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new jf(n.from,n.to,t.markFromJSON(n.mark))}}ko.jsonID("addMark",jf);class kl extends ko{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Pe(R8(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return ti.fromReplace(t,this.from,this.to,r)}invert(){return new jf(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new kl(n.pos,r.pos,this.mark)}merge(t){return t instanceof kl&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new kl(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new kl(n.from,n.to,t.markFromJSON(n.mark))}}ko.jsonID("removeMark",kl);class zf extends ko{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return ti.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ti.fromReplace(t,this.pos,this.pos+1,new Pe(de.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new zf(this.pos,n.marks[i]);return new zf(this.pos,this.mark)}}return new og(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new zf(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new zf(n.pos,t.markFromJSON(n.mark))}}ko.jsonID("addNodeMark",zf);class og extends ko{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return ti.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ti.fromReplace(t,this.pos,this.pos+1,new Pe(de.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new zf(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new og(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new og(n.pos,t.markFromJSON(n.mark))}}ko.jsonID("removeNodeMark",og);class Zr extends ko{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&$4(t,this.from,this.to)?ti.fail("Structure replace would overwrite content"):ti.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new Ds([this.from,this.to-this.from,this.slice.size])}invert(t){return new Zr(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&Zr.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new Zr(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof Zr)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Pe.empty:new Pe(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Zr(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Pe.empty:new Pe(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Zr(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Zr(n.from,n.to,Pe.fromJSON(t,n.slice),!!n.structure)}}Zr.MAP_BIAS=1;ko.jsonID("replace",Zr);class Pi extends ko{constructor(t,n,r,i,o,s,a=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=a}apply(t){if(this.structure&&($4(t,this.from,this.gapFrom)||$4(t,this.gapTo,this.to)))return ti.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ti.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ti.fromReplace(t,this.from,this.to,r):ti.fail("Content does not fit in gap")}getMap(){return new Ds([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Pi(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new Pi(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Pi(n.from,n.to,n.gapFrom,n.gapTo,Pe.fromJSON(t,n.slice),n.insert,!!n.structure)}}ko.jsonID("replaceAround",Pi);function $4(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function OVt(e,t,n,r){let i=[],o=[],s,a;e.doc.nodesBetween(t,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,t),h=Math.min(c+l.nodeSize,n),p=r.addToSet(d);for(let m=0;m<d.length;m++)d[m].isInSet(p)||(s&&s.to==f&&s.mark.eq(d[m])?s.to=h:i.push(s=new kl(f,h,d[m])));a&&a.to==f?a.to=h:o.push(a=new jf(f,h,r))}}),i.forEach(l=>e.step(l)),o.forEach(l=>e.step(l))}function PVt(e,t,n,r){let i=[],o=0;e.doc.nodesBetween(t,n,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof lD){let c=s.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==o-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=c,f.step=o):i.push({style:d,from:Math.max(a,t),to:c,step:o})}}}
vendor: 2,988 bytes, line 1137
1137),i.forEach(s=>e.step(new kl(s.from,s.to,s.style)))}function M8(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),s=[],a=t+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)s.push(new Zr(a,u,Pe.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||e.step(new kl(a,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new Pe(de.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Zr(a+f.index,a+f.index+f[0].length,p))}}a=u}if(!r.validEnd){let l=r.fillBefore(de.empty,!0);e.replace(a,a,new Pe(l,0,0))}for(let l=s.length-1;l>=0;l--)e.step(s[l])}function IVt(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function O0(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,i=0,o=0;;--r){let s=e.$from.node(r),a=e.$from.index(r)+i,l=e.$to.indexAfter(r)-o;if(r<e.depth&&s.canReplace(a,l,n))return r;if(r==0||s.type.spec.isolating||!IVt(s,a,l))break;a&&(i=1),l<s.childCount&&(o=1)}return null}function RVt(e,t,n){let{$from:r,$to:i,depth:o}=t,s=r.before(o+1),a=i.after(o+1),l=s,c=a,u=de.empty,d=0;for(let p=o,m=!1;p>n;p--)m||r.index(p)>0?(m=!0,u=de.from(r.node(p).copy(u)),d++):l--;let f=de.empty,h=0;for(let p=o,m=!1;p>n;p--)m||i.after(p+1)<i.end(p)?(m=!0,f=de.from(i.node(p).copy(f)),h++):c++;e.step(new Pi(l,c,s,a,new Pe(u.append(f),d,h),u.size-d,!0))}function N8(e,t,n=null,r=e){let i=MVt(e,t),o=i&&NVt(r,t);return o?i.map(fse).concat({type:t,attrs:n}).concat(o.map(fse)):null}function fse(e){return{type:e,attrs:null}}function MVt(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}function NVt(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:t).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function DVt(e,t,n){let r=de.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let a=n[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=de.from(n[s].type.create(n[s].attrs,r))}let i=t.start,o=t.end;e.step(new Pi(i,o,i,o,new Pe(r,0,0),n.length,!0))}function LVt(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(s,a)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&$Vt(e.doc,e.mapping.slice(o).map(a),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&DPe(e,s,a,o),M8(e,e.mapping.slice(o).map(a,1),r,void 0,c===null);let u=e.mapping.slice(o),d=u.map(a,1),f=u.map(a+s.nodeSize,1);
vendor: 6,170 bytes, lines 1137-1138
1137return e.step(new Pi(d,f,d+1,f-1,new Pe(de.from(r.create(l,null,s.marks)),0,0),1,!0)),c===!0&&NPe(e,s,a,o),!1}})}function NPe(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let l=e.mapping.slice(r).map(n+1+o+s.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function DPe(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let s=e.mapping.slice(r).map(n+1+o);e.replaceWith(s,s+1,t.type.schema.text(` 1138`))}})}function $Vt(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function FVt(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let s=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,s);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Pi(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new Pe(de.from(s),0,0),1,!0))}function cd(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),f=i.index(c);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=r&&r[u+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[u]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(h))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function BVt(e,t,n=1,r){let i=e.doc.resolve(t),o=de.empty,s=de.empty;for(let a=i.depth,l=i.depth-n,c=n-1;a>l;a--,c--){o=de.from(i.node(a).copy(o));let u=r&&r[c];s=de.from(u?u.type.create(u.attrs,s):i.node(a).copy(s))}e.step(new Zr(t,t,new Pe(o.append(s),n,n),!0))}function ep(e,t){let n=e.resolve(t),r=n.index();return LPe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function jVt(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==r?e.type.schema.nodes.text:o.type;if(n=n.matchType(s),!n||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}function LPe(e,t){return!!(e&&t&&!e.isLeaf&&jVt(e,t))}function cD(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let o,s,a=r.index(i);if(i==r.depth?(o=r.nodeBefore,s=r.nodeAfter):n>0?(o=r.node(i+1),a++,s=r.node(i).maybeChild(a)):(o=r.node(i).maybeChild(a-1),s=r.node(i+1)),o&&!o.isTextblock&&LPe(o,s)&&r.node(i).canReplace(a,a+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function zVt(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),s=o.node().type;if(i&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let a=e.steps.length;if(r===!1){let u=e.doc.resolve(t+n);DPe(e,u.node(),u.before(),a)}s.inlineContent&&M8(e,t+n-1,s,o.node().contentMatchAt(o.index()),r==null);let l=e.mapping.slice(a),c=l.map(t-n);if(e.step(new Zr(c,l.map(t+n,-1),Pe.empty,!0)),r===!0){let u=e.doc.resolve(c);NPe(e,u.node(),u.before(),e.steps.length)}return e}function UVt(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function $Pe(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let s=r.depth;s>=0;s--){let a=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(a>0?1:0),c=r.node(s),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function uD(e,t,n=t,r=Pe.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return FPe(i,o,r)?new Zr(t,n,r):new VVt(i,o,r).fit()}function FPe(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class VVt{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=de.empty;for(let i=0;i<=t.depth;i++){let o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=de.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&o.childCount==1;)o=o.firstChild.content,s--,a--;let l=new Pe(o,s,a);return t>-1?new Pi(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Zr(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=U$(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let s=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(de.from(s),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=U$(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new Pe
vendor: 8,518 bytes, line 1138
1138(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=U$(t,n);if(i.childCount<=1&&n>0){let o=t.size-n<=n+i.size;this.unplaced=new Pe(dx(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new Pe(dx(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m<o.length;m++)this.openFrontierNode(o[m]);let s=this.unplaced,a=r?r.content:s.content,l=s.openStart-t,c=0,u=[],{match:d,type:f}=this.frontier[n];if(i){for(let m=0;m<i.childCount;m++)u.push(i.child(m));d=d.matchFragment(i)}let h=a.size+t-(s.content.size-s.openEnd);for(;c<a.childCount;){let m=a.child(c),g=d.matchType(m.type);if(!g)break;c++,(c>1||l==0||m.content.size)&&(d=g,u.push(BPe(m.mark(f.allowedMarks(m.marks)),c==1?l:0,c==a.childCount?h:-1)))}let p=c==a.childCount;p||(h=-1),this.placed=fx(this.placed,n,de.from(u)),this.frontier[n].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=a;m<h;m++){let v=g.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),g=v.content}this.unplaced=p?t==0?Pe.empty:new Pe(dx(s.content,t-1,1),t-1,h<0?s.openEnd:t-1):new Pe(dx(s.content,t,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!V$(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),s=V$(t,n,i,r,o);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=V$(t,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=fx(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,o)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=fx(this.placed,this.depth,de.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(de.empty,!0);n.childCount&&(this.placed=fx(this.placed,this.frontier.length,n))}}function dx(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(dx(e.firstChild.content,t-1,n)))}function fx(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(fx(e.lastChild.content,t-1,n)))}function U$(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function BPe(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,BPe(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(de.empty,!0)))),e.copy(r)}function V$(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!WVt(n,o.content,s)?a:null}function WVt(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function HVt(e){return e.spec.defining||e.spec.definingForContent}function KVt(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),o=e.doc.resolve(n);if(FPe(i,o,r))return e.step(new Zr(t,n,r));let s=zPe(i,o);s[s.length-1]==0&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let f=i.depth,h=i.pos-1;f>0;f--,h--){let p=i.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(f)>-1?a=f:i.before(f)==h&&s.splice(1,0,-f)}let l=s.indexOf(a),c=[],u=r.openStart;for(let f=r.content,h=0;;h++){let p=f.firstChild;if(c.push(p),h==r.openStart)break;f=p.content}for(let f=u-1;f>=0;f--){let h=c[f],p=HVt(h.type);if(p&&!h.sameMarkup(i.node(Math.abs(a)-1)))u=f;else if(p||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+u+1)%(r.openStart+1),p=c[h];if(p)for(let m=0;m<s.length;m++){let g=s[(m+l)%s.length],v=!0;g<0&&(v=!1,g=-g);let b=i.node(g-1),w=i.index(g-1);if(b.canReplaceWith(w,w,p.type,p.marks))return e.replace(i.before(g),v?o.after(g):n,new Pe(jPe(r.content,0,r.openStart,h),h,r.openEnd))}}let d=e.steps.length;for(let f=s.length-1;f>=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let h=s[f];h<0||(t=i.before(h),n=o.after(h))}}function jPe(e,t,n,r,i){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(jPe(o.content,t+1,n,r,o)))}if(t>r){let o=i.contentMatchAt(0),s=o.fillBefore(e).append(e);e=s.append(o.matchFragment(s).fillBefore(de.empty,!0))}return e}function qVt(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=UVt(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Pe(de.from(r),0,0))}function GVt(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let s=r.sharedDepth(n),a=!1;for(let l=r.depth;l>s;l--)r.node(l).type.spec.isolating&&(a=!0);for(let l=i.depth;l>s;l--)i.node(l).type.spec.isolating&&(a=!0);if(!a){for(let l=r.depth;l>0&&t==r.start(l);l--)t=r.before(l);for(let l=i.depth;l>0&&n==i.start(l);l--)n=i.before(l);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let o=zPe(r,i);for(let s=0;s<o.length;s++){let a=o[s],l=s==o.length-1;if(l&&a==0||r.node(a).type.contentMatch.validEnd)return e.delete(r.start(a),i.end(a));if(a>0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return e.delete(r.before(a),i.after(a))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(t-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return e.delete(r.before(s),n);e.delete(t,n)}function zPe(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let o=e.start(i);if(o<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}class vy extends ko{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return ti.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return ti.fromReplace(t,this.pos,this.pos+1,new Pe(de.from(i),0,n.isLeaf?0:1))}getMap(){return Ds.empty}invert(t){return new vy(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new vy(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new vy(n.pos,n.attr,n.value)}}ko.jsonID("attr",vy);class N1 extends ko{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return ti.ok(r)}getMap(){return Ds.empty}invert(t){return new N1(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new N1(n.attr,n.value)}}ko.jsonID("docAttr",N1);let Sb=class extends Error{};Sb=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};Sb.prototype=Object.create(Error.prototype);Sb.prototype.constructor=Sb;Sb.prototype.name="TransformError";class UPe{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new M1}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Sb(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];
vendor: 29,275 bytes, lines 1138-1139
1138r&&(t=i.map(t,1),n=i.map(n,-1)),i.forEach((o,s,a,l)=>{t=Math.min(t,a),n=Math.max(n,l)})}return t==1e9?null:{from:t,to:n}}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Pe.empty){let i=uD(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new Pe(de.from(r),0,0))}delete(t,n){return this.replace(t,n,Pe.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return KVt(this,t,n,r),this}replaceRangeWith(t,n,r){return qVt(this,t,n,r),this}deleteRange(t,n){return GVt(this,t,n),this}lift(t,n){return RVt(this,t,n),this}join(t,n=1){return zVt(this,t,n),this}wrap(t,n){return DVt(this,t,n),this}setBlockType(t,n=t,r,i=null){return LVt(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return FVt(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new vy(t,n,r)),this}setDocAttribute(t,n){return this.step(new N1(t,n)),this}addNodeMark(t,n){return this.step(new zf(t,n)),this}removeNodeMark(t,n){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n instanceof Tn)n.isInSet(r.marks)&&this.step(new og(t,n));else{let i=r.marks,o,s=[];for(;o=n.isInSet(i);)s.push(new og(t,o)),i=o.removeFromSet(i);for(let a=s.length-1;a>=0;a--)this.step(s[a])}return this}split(t,n=1,r){return BVt(this,t,n,r),this}addMark(t,n,r){return OVt(this,t,n,r),this}removeMark(t,n,r){return PVt(this,t,n,r),this}clearIncompatible(t,n,r){return M8(this,t,n,r),this}}const W$=Object.create(null);class ut{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new VPe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=Pe.empty){let r=n.content.lastChild,i=null;for(let a=0;a<n.openEnd;a++)i=r,r=r.lastChild;let o=t.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=t.mapping.slice(o);t.replaceRange(u.map(l.pos),u.map(c.pos),a?Pe.empty:n),a==0&&mse(t,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:s,$to:a}=i[o],l=t.mapping.slice(r),c=l.map(s.pos),u=l.map(a.pos);o?t.deleteRange(c,u):(t.replaceRangeWith(c,u,n),mse(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new dt(t):yv(t.node(0),t.parent,t.pos,t.index(),n,r);if(i)return i;for(let o=t.depth-1;o>=0;o--){let s=n<0?yv(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):yv(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(s)return s}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Ks(t.node(0))}static atStart(t){return yv(t,t,0,0,1)||new Ks(t)}static atEnd(t){return yv(t,t,t.content.size,t.childCount,-1)||new Ks(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=W$[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in W$)throw new RangeError("Duplicate use of selection JSON ID "+t);return W$[t]=n,n.prototype.jsonID=t,n}getBookmark(){return dt.between(this.$anchor,this.$head).getBookmark()}}ut.prototype.visible=!0;class VPe{constructor(t,n){this.$from=t,this.$to=n}}let hse=!1;function pse(e){!hse&&!e.parent.inlineContent&&(hse=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class dt extends ut{constructor(t,n=t){pse(t),pse(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return ut.near(r);let i=t.resolve(n.map(this.anchor));return new dt(i.parent.inlineContent?i:r,r)}replace(t,n=Pe.empty){if(super.replace(t,n),n==Pe.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof dt&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new dD(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new dt(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=ut.findFrom(n,r,!0)||ut.findFrom(n,-r,!0);if(o)n=o.$head;else return ut.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(ut.findFrom(t,-r,!0)||ut.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new dt(t,n)}}ut.jsonID("text",dt);class dD{constructor(t,n){this.anchor=t,this.head=n}map(t){return new dD(t.map(this.anchor),t.map(this.head))}resolve(t){return dt.between(t.resolve(this.anchor),t.resolve(this.head))}}class rt extends ut{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=t.resolve(i);return r?ut.near(o):new rt(o)}content(){return new Pe(de.from(this.node),0,0)}eq(t){return t instanceof rt&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new D8(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new rt(t.resolve(n.anchor))}static create(t,n){return new rt(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}rt.prototype.visible=!1;ut.jsonID("node",rt);class D8{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new dD(r,r):new D8(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&rt.isSelectable(r)?new rt(n):ut.near(n)}}class Ks extends ut{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=Pe.empty){if(n==Pe.empty){t.delete(0,t.doc.content.size);let r=ut.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new Ks(t)}map(t){return new Ks(t)}eq(t){return t instanceof Ks}getBookmark(){return YVt}}ut.jsonID("all",Ks);const YVt={map(){return this},resolve(e){return new Ks(e)}};function yv(e,t,n,r,i,o=!1){if(t.inlineContent)return dt.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let a=t.child(s);if(a.isAtom){if(!o&&rt.isSelectable(a))return rt.create(e,n-(i<0?a.nodeSize:0))}else{let l=yv(e,a,n+i,i<0?a.childCount:0,i,o);if(l)return l}n+=a.nodeSize*i}return null}function mse(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Zr||i instanceof Pi))return;let o=e.mapping.maps[r],s;o.forEach((a,l,c,u)=>{s==null&&(s=u)}),e.setSelection(ut.near(e.doc.resolve(s),n))}const gse=1,SC=2,vse=4;class XVt extends UPe{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|gse)&~SC,this.storedMarks=null,this}get selectionSet(){return(this.updated&gse)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=SC,this}ensureMarks(t){return Tn.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&SC)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~SC,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Tn.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),!t)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let s=this.doc.resolve(n);o=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,o)),!this.selection.empty&&this.selection.to==n+t.length&&this.setSelection(ut.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=vse,this}get scrolledIntoView(){return(this.updated&vse)>0}}function yse(e,t){return!t||!e?e:e.bind(t)}class hx{constructor(t,n,r){this.name=t,this.init=yse(n.init,r),this.apply=yse(n.apply,r)}}const ZVt=[new hx("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new hx("selection",{init(e,t){return e.selection||ut.atStart(t.doc)},apply(e){return e.selection}}),new hx("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new hx("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class H${constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=ZVt.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new hx(r.key,r.spec.state,r))})}}class Wv{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],r=this.applyInner(t),i=null;for(;;){let o=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=i?i[s].n:0,c=i?i[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",t),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),o=!0}i&&(i[s]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Wv(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(t,this[o.name],this,n)}return n}get tr(){return new XVt(this)}static create(t){let n=new H$(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new Wv(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}reconfigure(t){let n=new H$(this.schema,t.plugins),r=n.fields,i=new Wv(n);for(let o=0;o<r.length;o++){let s=r[o].name;i[s]=this.hasOwnProperty(s)?this[s]:r[o].init(t,i)}return i}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new H$(t.schema,t.plugins),o=new Wv(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=oh.fromJSON(t.schema,n.doc);else if(s.name=="selection")o.selection=ut.fromJSON(o.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[s.name]=c.fromJSON.call(l,t,n[a],o);return}}o[s.name]=s.init(t,o)}}),o}}function WPe(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=WPe(i,t,{})),n[r]=i}return n}class Fn{constructor(t){this.spec=t,this.props={},t.props&&WPe(t.props,this,this.props),this.key=t.key?t.key.key:HPe("plugin")}getState(t){return t[this.key]}}const K$=Object.create(null);function HPe(e){return e in K$?e+"$"+ ++K$[e]:(K$[e]=0,e+"$")}class Bn{constructor(t="key"){this.key=HPe(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const L8=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function KPe(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const qPe=(e,t,n)=>{let r=KPe(e,n);if(!r)return!1;let i=$8(r);if(!i){let s=r.blockRange(),a=s&&O0(s);return a==null?!1:(t&&t(e.tr.lift(s,a).scrollIntoView()),!0)}let o=i.nodeBefore;if(nIe(e,i,t,-1))return!0;if(r.parent.content.size==0&&(_b(o,"end")||rt.isSelectable(o)))for(let s=r.depth;;s--){let a=uD(e.doc,r.before(s),r.after(s),Pe.empty);if(a&&a.slice.size<a.to-a.from){if(t){let l=e.tr.step(a);l.setSelection(_b(o,"end")?ut.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):rt.create(l.doc,i.pos-o.nodeSize)),t(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},QVt=(e,t,n)=>{let r=KPe(e,n);if(!r)return!1;let i=$8(r);return i?GPe(e,i,t):!1},JVt=(e,t,n)=>{let r=XPe(e,n);if(!r)return!1;let i=F8(r);return i?GPe(e,i,t):!1};function GPe(e,t,n){let r=t.nodeBefore,i=r,o=t.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let s=t.nodeAfter,a=s,l=t.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=uD(e.doc,o,l,Pe.empty);if(!c||c.from!=o||c instanceof Zr&&c.slice.size>=l-o)return!1;if(n){let u=e.tr.step(c);u.setSelection(dt.create(u.doc,o)),n(u.scrollIntoView())}return!0}function _b(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const YPe=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=$8(r)}let s=o&&o.nodeBefore;return!s||!rt.isSelectable(s)?!1:(t&&t(e.tr.setSelection(rt.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function $8(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function XPe(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const ZPe=(e,t,n)=>{let r=XPe(e,n);if(!r)return!1;let i=F8(r);if(!i)return!1;let o=i.nodeAfter;if(nIe(e,i,t,1))return!0;if(r.parent.content.size==0&&(_b(o,"start")||rt.isSelectable(o))){let s=uD(e.doc,r.before(),r.after(),Pe.empty);if(s&&s.slice.size<s.to-s.from){if(t){let a=e.tr.step(s);a.setSelection(_b(o,"start")?ut.findFrom(a.doc.resolve(a.mapping.map(i.pos)),1):rt.create(a.doc,a.mapping.map(i.pos))),t(a.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},QPe=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=F8(r)}let s=o&&o.nodeAfter;return!s||!rt.isSelectable(s)?!1:(t&&t(e.tr.setSelection(rt.create(e.doc,o.pos)).scrollIntoView()),!0)};function F8(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const e6t=(e,t)=>{let n=e.selection,r=n instanceof rt,i;if(r){if(n.node.isTextblock||!ep(e.doc,n.from))return!1;i=n.from}else if(i=cD(e.doc,n.from,-1),i==null)return!1;if(t){let o=e.tr.join(i);r&&o.setSelection(rt.create(o.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},t6t=(e,t)=>{let n=e.selection,r;if(n instanceof rt){if(n.node.isTextblock||!ep(e.doc,n.to))return!1;r=n.to}else if(r=cD(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},n6t=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&O0(i);return o==null?!1:(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},JPe=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` 1139`).scrollIntoView()),!0)};function B8(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const r6t=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),s=B8(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(t){let a=n.after(),l=e.tr.replaceWith(a,a,s.createAndFill());l.setSelection(ut.near(l.doc.resolve(a),1)),t(l.scrollIntoView())}return!0},eIe=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Ks||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=B8(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(s,o.createAndFill());a.setSelection(dt.create(a.doc,s+1)),t(a.scrollIntoView())}return!0},tIe=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(cd(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&O0(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function i6t(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof rt&&t.selection.node.isBlock)return!r.parentOffset||!cd(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],s,a,l=!1,c=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){l=r.end(h)==r.pos+(r.depth-h),c=r.start(h)==r.pos-(r.depth-h),a=B8(r.node(h-1).contentMatchAt(r.indexAfter(h-1))),o.unshift(l&&a?{type:a}:null),s=h;break}else{if(h==1)return!1;o.unshift(null)}let u=t.tr;(t.selection instanceof dt||t.selection instanceof Ks)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=cd(u.doc,d,o.length,o);if(f||(o[0]=a?{type:a}:null,f=cd(u.doc,d,o.length,o)),!f)return!1;if(u.split(d,o.length,o),!l&&c&&r.node(s).type!=a){let h=u.mapping.map(r.before(s)),p=u.doc.resolve(h);a&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(r.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const o6t=i6t(),s6t=(e,t)=>{let{$from:n,to:r}=e.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),t&&t(e.tr.setSelection(rt.create(e.doc,i))),!0)};function a6t(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(i.isTextblock||ep(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function nIe(e,t,n,r){let i=t.nodeBefore,o=t.nodeAfter,s,a,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&a6t(e,t,n))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(s=(a=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&a.matchType(s[0]||o.type).validEnd){if(n){let h=t.pos+o.nodeSize,p=de.empty;for(let v=s.length-1;v>=0;v--)p=de.from(s[v].create(null,p));p=de.from(i.copy(p));let m=e.tr.step(new Pi(t.pos-1,h,t.pos,h,new Pe(p,1,0),s.length,!0)),g=m.doc.resolve(h+2*s.length);g.nodeAfter&&g.nodeAfter.type==i.type&&ep(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:ut.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&O0(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(c&&_b(o,"start",!0)&&_b(i,"end")){let h=i,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let m=o,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(n){let v=de.empty;for(let w=p.length-1;w>=0;w--)v=de.from(p[w].copy(v));let b=e.tr.step(new Pi(t.pos-p.length,t.pos+o.nodeSize,t.pos+g,t.pos+o.nodeSize-g,new Pe(v,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function rIe(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(t.tr.setSelection(dt.create(t.doc,e<0?i.start(o):i.end(o)))),!0):!1}}const l6t=rIe(-1),c6t=rIe(1);function u6t(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=s&&N8(s,e,t);return a?(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function bse(e,t=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(s,a,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let o=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];o.setBlockType(a,l,e,t)}r(o.scrollIntoView())}return!0}}function j8(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}j8(L8,qPe,YPe);j8(L8,ZPe,QPe);j8(JPe,eIe,tIe,o6t);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function d6t(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o);if(!s)return!1;let a=r?n.tr:null;return f6t(a,s,e,t)?(r&&r(a.scrollIntoView()),!0):!1}}function f6t(e,t,n,r=null){let i=!1,o=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let l=s.resolve(t.start-2);o=new rI(l,l,t.depth),t.endIndex<t.parent.childCount&&(t=new rI(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let a=N8(o,n,r,t);return a?(e&&h6t(e,t,a,i,n),!0):!1}function h6t(e,t,n,r,i){let o=de.empty;for(let u=n.length-1;u>=0;u--)o=de.from(n[u].type.create(n[u].attrs,o));e.step(new Pi(t.start-(r?2:0),t.end,t.start,t.end,new Pe(o,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==i&&(s=u+1);let a=n.length-s,l=t.start+n.length-(r?2:0),c=t.parent;for(let u=t.startIndex,d=t.endIndex,f=!0;u<d;u++,f=!1)!f&&cd(e.doc,l,a)&&(e.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return e}function p6t(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?m6t(t,n,e,o):g6t(t,n,o):!0:!1}}function m6t(e,t,n,r){let i=e.tr,o=r.end,s=r.$to.end(r.depth);o<s&&(i.step(new Pi(o-1,s,o,s,new Pe(de.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new rI(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const a=O0(r);if(a==null)return!1;i.lift(r,a);let l=i.doc.resolve(i.mapping.map(o,-1)-1);return ep(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),t(i.scrollIntoView()),!0}function g6t(e,t,n){let r=e.tr,i=n.parent;for(let h=n.end,p=n.endIndex-1,m=n.startIndex;p>m;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),s=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?de.empty:de.from(i))))return!1;let d=o.pos,f=d+s.nodeSize;return r.step(new Pi(d-(a?1:0),f+(l?1:0),d+1,f-1,new Pe((a?de.empty:de.from(i.copy(de.empty))).append(l?de.empty:de.from(i.copy(de.empty))),a?0:1,l?0:1),a?0:1)),t(r.scrollIntoView()),!0}function v6t(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==e);if(!o)return!1;let s=o.startIndex;if(s==0)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=e)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=de.from(c?e.create():null),d=new Pe(de.from(e.create(null,de.from(a.type.create(null,u)))),c?3:1,0),f=o.start,h=o.end;n(t.tr.step(new Pi(f-(c?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}const Gi=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},kb=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let F4=null;const Du=function(e,t,n){let r=F4||(F4=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},y6t=function(){F4=null},sg=function(e,t,n,r){return n&&(wse(e,t,n,r,-1)||wse(e,t,n,r,1))},b6t=/^(img|br|input|textarea|hr)$/i;function wse(e,t,n,r,i){for(var o;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Ta(e))){let s=e.parentNode;if(!s||s.nodeType!=1||S_(e)||b6t.test(e.nodeName)||e.contentEditable=="false")return!1;t=Gi(e)+(i<0?0:1),e=s}else if(e.nodeType==1){let s=e.childNodes[t+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((o=s.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)t+=i;else return!1;else e=s,t=i<0?Ta(e):0}else return!1}}function Ta(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function w6t(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Ta(e)}else if(e.parentNode&&!S_(e))t=Gi(e),e=e.parentNode;else return null}}function x6t(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!S_(e))t=Gi(e)+1,e=e.parentNode;else return null}}function E6t(e,t,n){for(let r=t==0,i=t==Ta(e);r||i;){if(e==n)return!0;let o=Gi(e);if(e=e.parentNode,!e)return!1;r=r&&o==0,i=i&&o==Ta(e)}}function S_(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const fD=function(e){return e.focusNode&&sg(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Np(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function S6t(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function _6t(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(Ta(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(Ta(r.startContainer),r.startOffset)}}}const iu=typeof navigator<"u"?navigator:null,xse=typeof document<"u"?document:null,tp=iu&&iu.userAgent||"",B4=/Edge\/(\d+)/.exec(tp),iIe=/MSIE \d/.exec(tp),j4=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tp),xs=!!(iIe||j4||B4),sh=iIe?document.documentMode:j4?+j4[1]:B4?+B4[1]:0,Fa=!xs&&/gecko\/(\d+)/i.test(tp);Fa&&+(/Firefox\/(\d+)/.exec(tp)||[0,0])[1];const z4=!xs&&/Chrome\/(\d+)/.exec(tp),Zi=!!z4,oIe=z4?+z4[1]:0,Eo=!xs&&!!iu&&/Apple Computer/.test(iu.vendor),Cb=Eo&&(/Mobile\/\w+/.test(tp)||!!iu&&iu.maxTouchPoints>2),Ea=Cb||(iu?/Mac/.test(iu.platform):!1),sIe=iu?/Win/.test(iu.platform):!1,td=/Android \d/.test(tp),__=!!xse&&"webkitFontSmoothing"in xse.documentElement.style,k6t=__?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function C6t(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function bu(e,t){return typeof e=="number"?e:e[t]}function T6t(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function Ese(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(s.nodeType!=1){s=kb(s);continue}let a=s,l=a==o.body,c=l?C6t(o):T6t(a),u=0,d=0;if(t.top<c.top+bu(r,"top")?d=-(c.top-t.top+bu(i,"top")):t.bottom>c.bottom-bu(r,"bottom")&&(d=t.bottom-t.top>c.bottom-c.top?t.top+bu(i,"top")-c.top:t.bottom-c.bottom+bu(i,"bottom")),t.left<c.left+bu(r,"left")?u=-(c.left-t.left+bu(i,"left")):t.right>c.right-bu(r,"right")&&(u=t.right-c.right+bu(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;
vendor: 4,399 bytes, line 1139
1139d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let m=a.scrollLeft-h,g=a.scrollTop-p;t={left:t.left-m,top:t.top-g,right:t.right-m,bottom:t.bottom-g}}let f=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(f))break;s=f=="absolute"?s.offsetParent:kb(s)}}function A6t(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,s=n+1;s<Math.min(innerHeight,t.bottom);s+=5){let a=e.root.elementFromPoint(o,s);if(!a||a==e.dom||!e.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:aIe(e.dom)}}function aIe(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=kb(r));return t}function O6t({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;lIe(n,r==0?0:r-t)}function lIe(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let av=null;function P6t(e){if(e.setActive)return e.setActive();if(av)return e.focus(av);let t=aIe(e);e.focus(av==null?{get preventScroll(){return av={preventScroll:!0},!0}}:void 0),av||(av=!1,lIe(t,0))}function cIe(e,t){let n,r=2e8,i,o=0,s=t.top,a=t.top,l,c;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let f;if(u.nodeType==1)f=u.getClientRects();else if(u.nodeType==3)f=Du(u).getClientRects();else continue;for(let h=0;h<f.length;h++){let p=f[h];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let m=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(m<r){n=u,r=m,i=m&&n.nodeType==3?{left:p.right<t.left?p.right:p.left,top:t.top}:t,u.nodeType==1&&m&&(o=d+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!l&&p.left<=t.left&&p.right>=t.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?I6t(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:cIe(n,i)}function I6t(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let s=tf(r,1);if(s.top!=s.bottom&&z8(t,s)){i={node:e,offset:o+(t.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),i||{node:e,offset:0}}function z8(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function R6t(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function M6t(e,t,n){let{node:r,offset:i}=cIe(t,n),o=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function N6t(e,t,n,r){let i=-1;for(let o=t,s=!1;o!=e.dom;){let a=e.docView.nearestDesc(o,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!s&&l.left>r.left||l.top>r.top?i=a.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(i=a.posAfter),s=!0),!a.contentDOM&&i<0&&!a.node.isText))return(a.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;o=a.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function uIe(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let s=e.childNodes[o];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(z8(t,c))return uIe(s,t,c)}}if((o=(o+1)%r)==i)break}return e}function D6t(e,t){let n=e.dom.ownerDocument,r,i=0,o=_6t(n,t.left,t.top);o&&({node:r,offset:i}=o);let s=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),a;if(!s||!e.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=e.dom.getBoundingClientRect();if(!z8(t,c)||(s=uIe(e.dom,t,c),!s))return null}if(Eo)for(let c=s;r&&c;c=kb(c))c.draggable&&(r=void 0);if(s=R6t(s,t),r){if(Fa&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&i++}let c;__&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>
vendor: 20,079 bytes, lines 1139-1140
1139r.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=N6t(e,r,i,t))}a==null&&(a=M6t(e,s,t));let l=e.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Sse(e){return e.top<e.bottom||e.left<e.right}function tf(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if(Sse(r))return r}return Array.prototype.find.call(n,Sse)||e.getBoundingClientRect()}const L6t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dIe(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),s=__||Fa;if(r.nodeType==3)if(s&&(L6t.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=tf(Du(r,i,i),n);if(Fa&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let c=tf(Du(r,i-1,i-1),-1);if(c.top==l.top){let u=tf(Du(r,i,i+1),-1);if(u.top!=l.top)return Iw(u,u.left<c.left)}}return l}else{let l=i,c=i,u=n<0?1:-1;return n<0&&!i?(c++,u=-1):n>=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,Iw(tf(Du(r,l,c),u),u<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==Ta(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return q$(l.getBoundingClientRect(),!1)}if(o==null&&i<Ta(r)){let l=r.childNodes[i];if(l.nodeType==1)return q$(l.getBoundingClientRect(),!0)}return q$(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==Ta(r))){let l=r.childNodes[i-1],c=l.nodeType==3?Du(l,Ta(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Iw(tf(c,1),!1)}if(o==null&&i<Ta(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Du(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Iw(tf(c,-1),!0)}return Iw(tf(r.nodeType==3?Du(r):r,-n),n>=0)}function Iw(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function q$(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function fIe(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function $6t(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return fIe(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=e.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=dIe(e,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Du(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const F6t=/[\u0590-\u08ac]/;function B6t(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=e.domSelection();return a?!F6t.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:s:fIe(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=e.domSelectionRange(),f=a.caretBidiLevel;a.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:m}=e.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==m;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return f!=null&&(a.caretBidiLevel=f),g}):r.pos==r.start()||r.pos==r.end()}let _se=null,kse=null,Cse=!1;function j6t(e,t,n){return _se==t&&kse==n?Cse:(_se=t,kse=n,Cse=n=="up"||n=="down"?$6t(e,t,n):B6t(e,t,n))}const Ba=0,Tse=1,Gp=2,ou=3;class k_{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ba,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==t)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,r){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(r<0){let o,s;if(t==this.contentDOM)o=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;o=t.previousSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(s)+s.size:this.posAtStart}else{let o,s;if(t==this.contentDOM)o=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;o=t.nextSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}let i;if(t==this.dom&&this.contentDOM)i=n>Gi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!n||o.node))if(r&&(s=o.nodeDOM)&&!(s.nodeType==1?s.contains(t.nodeType==1?t:t.parentNode):s==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==t&&o!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let a=i.children[s];if(a.size){i=a;break}}return i}if(t<o)return i.descAt(t-r-i.border);r=o}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.size;if(a>t||s instanceof pIe){i=t-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof hIe&&o.side>=0;r--);if(n<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&n&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Gi(o.dom)+1:0}}else{let o,s=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,s=!1);return o&&s&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?Gi(o.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let s=r,a=0;;a++){let l=this.children[a],c=s+l.size;if(i==-1&&t<=c){let u=s+l.border;if(t>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,u);t=s;for(let d=a;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=Gi(f.dom)+1;break}t-=f.size}i==-1&&(i=0)}if(i>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){o=Gi(d.dom);break}n+=d.size}o==-1&&(o=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:t,to:n,fromOffset:i,toOffset:o}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:r}=this.domFromPos(t,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]}setSelection(t,n,r,i=!1){let o=Math.min(t,n),s=Math.max(t,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],g=p+m.size;if(o>p&&s<g)return m.setSelection(t-p-m.border,n-p-m.border,r,i);p=g}let a=this.domFromPos(t,t?-1:1),l=n==t?a:this.domFromPos(n,n?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),d=!1;if((Fa||Eo)&&t==n){let{node:h,offset:p}=a;if(h.nodeType==3){if(d=!!(p&&h.nodeValue[p-1]==` 1140`),d&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(a=l={node:g.parentNode,offset:Gi(g)+1});break}let v=m.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let m=h.childNodes[p-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Fa&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let h=u.focusNode.childNodes[u.focusOffset];h&&h.contentEditable=="false"&&(i=!0)}if(!(i||d&&Eo)&&sg(a.node,a.offset,u.anchorNode,u.anchorOffset)&&sg(l.node,l.offset,u.focusNode,u.focusOffset))return;let f=!1;if((c.extend||t==n)&&!(d&&Fa)){c.collapse(a.node,a.offset);try{t!=n&&c.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(t>n){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],s=r+o.size;if(r==s?t<=s&&n>=r:t<s&&n>r){let a=r+o.border,l=s-o.border;if(t>=a&&n<=l){this.dirty=t==r||n==s?Gp:Tse,t==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=ou:o.markDirty(t-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Gp:ou}r=s}this.dirty=Gp}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?Gp:Tse;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class hIe extends k_{constructor(t,n,r,i){let o,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==Ba&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class z6t extends k_{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class ag extends k_{constructor(t,n,r,i,o){super(t,[],r,i),this.mark=n,this.spec=o}static create(t,n,r,i){let o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return(!s||!s.dom)&&(s=Ng.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new ag(t,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&ou||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=ou&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Ba){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Ba}}slice(t,n,r){let i=ag.create(this.parent,this.mark,!0,r),o=this.children,s=this.size;n<s&&(o=V4(o,n,s,r)),t>0&&(o=V4(o,0,t,r));for(let a=0;a<o.length;a++)o[a].parent=i;return i.children=o,i}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ah extends k_{constructor(t,n,r,i,o,s,a,l,c){super(t,[],o,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=a}static create(t,n,r,i,o,s){let a=o.nodeViews[n.type.name],l,c=a&&a(n,o,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Ng.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=vIe(u,r,n),c?l=new U6t(t,n,r,i,u,d||null,f,c,o,s+1):n.isText?new hD(t,n,r,i,u,f,o):new ah(t,n,r,i,u,d||null,f,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>de.empty)}return t}matchesNode(t,n,r){return this.dirty==Ba&&t.eq(this.node)&&oI(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,o=t.composing?this.localCompositionInfo(t,n):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new W6t(this,s&&s.node,t);q6t(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,t,u):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Tn.none:this.node.child(u).marks,r,t,u),l.placeWidget(c,t,i)},(c,u,d,f)=>{l.syncToMarks(c.marks,r,t,f);let h;l.findNodeMatch(c,u,d,f)||a&&t.state.selection.from>i&&t.state.selection.to<i+c.nodeSize&&(h=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,h,t)||l.updateNextNode(c,u,d,t,f,i)||l.addNode(c,u,d,t,i),i+=c.nodeSize}),l.syncToMarks([],r,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Gp)&&(s&&this.protectLocalComposition(t,s),mIe(this.contentDOM,this.children,t),Cb&&G6t(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof dt)||r<n||i>n+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,a=Y6t(this.node.content,s,r-n,i-n);return a<0?null:{node:o,pos:a,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new z6t(this,o,n,i);t.input.compositionNodes.push(s),this.children=V4(this.children,r,r+i.length,t,s)}update(t,n,r,i){return this.dirty==ou||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Ba}updateOuterDeco(t){if(oI(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=gIe(this.dom,this.nodeDOM,U4(this.outerDeco,this.node,n),U4(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Ase(e,t,n,r,i){vIe(r,t,e);let o=new ah(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class hD extends ah{constructor(t,n,r,i,o,s,a){super(t,n,r,i,o,null,s,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==ou||this.dirty!=Ba&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ba||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=Ba,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),o=document.createTextNode(i.text);return new hD(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=ou)}get domAtom(){return!1}isText(t){return this.node.text==t}}class pIe extends k_{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Ba&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class U6t extends ah{constructor(t,n,r,i,o,s,a,l,c,u){super(t,n,r,i,o,s,a,c,u),this.spec=l}update(t,n,r,i){if(this.dirty==ou)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function mIe(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o<t.length;o++){let s=t[o],a=s.dom;if(a.parentNode==e){for(;a!=r;)r=Ose(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(a,r);if(s instanceof ag){let l=r?r.previousSibling:e.lastChild;mIe(s.contentDOM,s.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=Ose(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const tE=function(e){e&&(this.nodeName=e)};tE.prototype=Object.create(null);const Yp=[new tE];function U4(e,t,n){if(e.length==0)return Yp;let r=n?Yp[0]:new tE,i=[r];for(let o=0;o<e.length;o++){let s=e[o].type.attrs;if(s){s.nodeName&&i.push(r=new tE(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&i.length==1&&i.push(r=new tE(t.isInline?"span":"div")),a=="class"?r.class=(r.class?r.class+" ":"")+l:a=="style"?r.style=(r.style?r.style+";":"")+l:a!="nodeName"&&(r[a]=l))}}}return i}function gIe(e,t,n,r){if(n==Yp&&r==Yp)return t;let i=t;for(let o=0;o<r.length;o++){let s=r[o],a=n[o];if(o){let l;a&&a.nodeName==s.nodeName&&i!=e&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),a=Yp[0]),i=l}V6t(i,a||Yp[0],s)}return i}function V6t(e,t,n){for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=t[r]&&e.setAttribute(r,n[r]);
vendor: 4,238 bytes, line 1140
1140if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&e.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&e.classList.add(i[o]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(t.style);)e.style.removeProperty(i[1])}n.style&&(e.style.cssText+=n.style)}}function vIe(e,t,n){return gIe(e,e,Yp,U4(t,n,e.nodeType!=1))}function oI(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Ose(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class W6t{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=H6t(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let r=t;r<n;r++)this.top.children[r].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,r,i){let o=0,s=this.stack.length>>1,a=Math.min(s,t.length);for(;o<a&&(o==s-1?this.top:this.stack[o+1<<1]).matchesMark(t[o])&&t[o].type.spec.spanning!==!1;)o++;for(;o<s;)this.destroyRest(),this.top.dirty=Ba,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<t.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;i<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let u=this.index;u<c;u++){let d=this.top.children[u];if(d.matchesMark(t[s])&&!this.isLocked(d.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=ag.create(this.top,t[s],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(t,n,r,i){let o=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(t,n,r))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(t,n,r)&&!this.preMatch.matched.has(c)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(t,n,r,i,o){let s=this.top.children[i];return s.dirty==ou&&s.dom==s.contentDOM&&(s.dirty=Gp),s.update(t,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=t.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}t=n}}updateNextNode(t,n,r,i,o,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof ah){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,d,f=this.isLocked(u)&&!(t.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==t.text&&l.dirty!=ou&&oI(n,l.outerDeco));if(!f&&l.update(t,n,r,i))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!f&&(d=this.recreateWrapper(l,t,n,r,i,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Gp,d.updateChildren(i,s+1),d.dirty=Ba),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,r,i,o,s){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!oI(r,t.outerDeco)||!i.eq(t.innerDeco))return null;let a=ah.create(this.top,n,r,i,o,s);if(a.contentDOM){a.children=t.children,t.children=[];for(let l of a.children)l.parent=a}return t.destroy(),a}addNode(t,n,r,i,o){let s=ah.create(this.top,t,n,r,i,o);s.contentDOM&&s.updateChildren(i,o+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(t,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(t)&&(t==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new hIe(this.top,t,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof ag;)n=t,t=n.children[n.children.length-1];
vendor: 17,137 bytes, lines 1140-1143
1140(!t||!(t instanceof hD)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((Eo||Zi)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);t=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),t=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new pIe(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function H6t(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,s=[];e:for(;i>0;){let a;for(;;)if(r){let c=n.children[r-1];if(c instanceof ag)n=c,r=c.children.length;else{a=c,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=e.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}function K6t(e,t){return e.type.side-t.type.side}function q6t(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let c=0;c<e.childCount;c++){let u=e.child(c);r(u,i,t.forChild(o,u),c),o+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<i.length&&i[s].to==o;){let g=i[s++];g.widget&&(u?(d||(d=[u])).push(g):u=g)}if(u)if(d){d.sort(K6t);for(let g=0;g<d.length;g++)n(d[g],c,!!l)}else n(u,c,!!l);let f,h;if(l)h=-1,f=l,l=null;else if(c<e.childCount)h=c,f=e.child(c++);else break;for(let g=0;g<a.length;g++)a[g].to<=o&&a.splice(g--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let p=o+f.nodeSize;if(f.isText){let g=p;s<i.length&&i[s].from<g&&(g=i[s].from);for(let v=0;v<a.length;v++)a[v].to<g&&(g=a[v].to);g<p&&(l=f.cut(g-o),f=f.cut(0,g-o),p=g,h=-1)}else for(;s<i.length&&i[s].to<p;)s++;let m=f.isInline&&!f.isLeaf?a.filter(g=>!g.inline):a.slice();r(f,m,t.forChild(o,f),h),o=p}}function G6t(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Y6t(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let s=e.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<e.childCount;){let c=e.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let c=a<r?l.lastIndexOf(t,r-a-1):-1;if(c>=0&&c+t.length+a>=n)return a+c;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return-1}function V4(e,t,n,r,i){let o=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function U8(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,c;if(fD(n)){for(l=s;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&rt.isSelectable(d)&&i.parent&&!(d.isInline&&E6t(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;c=new rt(s==f?a:r.resolve(f))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,f=s;for(let h=0;h<n.rangeCount;h++){let p=n.getRangeAt(h);d=Math.min(d,e.docView.posFromDOM(p.startContainer,p.startOffset,1)),f=Math.max(f,e.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,s]=f==e.state.selection.anchor?[f,d]:[d,f],a=r.resolve(s)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let d=t=="pointer"||e.state.selection.head<a.pos&&!o?1:-1;c=V8(e,u,a,d)}return c}function yIe(e){return e.editable?e.hasFocus():wIe(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ud(e,t=!1){let n=e.state.selection;if(bIe(e,n),!!yIe(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Zi){let r=e.domSelectionRange(),i=e.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&sg(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Z6t(e);else{let{anchor:r,head:i}=n,o,s;Pse&&!(n instanceof dt)&&(n.$from.parent.inlineContent||(o=Ise(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Ise(e,n.to))),e.docView.setSelection(r,i,e,t),Pse&&(o&&Rse(o),s&&Rse(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&X6t(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Pse=Eo||Zi&&oIe<63;function Ise(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(Eo&&i&&i.contentEditable=="false")return G$(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return G$(i);if(o)return G$(o)}}function G$(e){return e.contentEditable="true",Eo&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Rse(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function X6t(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!yIe(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Z6t(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,Gi(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&xs&&sh<=11&&(n.disabled=!0,n.disabled=!1)}function bIe(e,t){if(t instanceof rt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Mse(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Mse(e)}function Mse(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function V8(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||dt.between(t,n,r)}function Nse(e){return e.editable&&!e.hasFocus()?!1:wIe(e)}function wIe(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Q6t(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return sg(t.node,t.offset,n.anchorNode,n.anchorOffset)}function W4(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&ut.findFrom(o,t)}function uf(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Dse(e,t,n){let r=e.state.selection;if(r instanceof dt)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return uf(e,new dt(r.$anchor,s))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=W4(e.state,t);return i&&i instanceof rt?uf(e,i):!1}else if(!(Ea&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,s;if(!o||o.isText)return!1;let a=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(s=e.docView.descAt(a))&&!s.contentDOM?rt.isSelectable(o)?uf(e,new rt(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):__?uf(e,new dt(e.state.doc.resolve(t<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof rt&&r.node.isInline)return uf(e,new dt(t>0?r.$to:r.$from));{let i=W4(e.state,t);return i?uf(e,i):!1}}}function sI(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function nE(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function lv(e,t){return t<0?J6t(e):eWt(e)}function J6t(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=!1;for(Fa&&n.nodeType==1&&r<sI(n)&&nE(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(nE(a,-1))i=n,o=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(xIe(n))break;{let a=n.previousSibling;for(;a&&nE(a,-1);)i=n.parentNode,o=Gi(a),a=a.previousSibling;if(a)n=a,r=sI(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?H4(e,n,r):i&&H4(e,i,o)}function eWt(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=sI(n),o,s;for(;;)if(r<i){if(n.nodeType!=1)break;let a=n.childNodes[r];if(nE(a,1))o=n,s=++r;else break}else{if(xIe(n))break;{let a=n.nextSibling;for(;a&&nE(a,1);)o=a.parentNode,s=Gi(a)+1,a=a.nextSibling;if(a)n=a,r=0,i=sI(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}o&&H4(e,o,s)}function xIe(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function tWt(e,t){for(;e&&t==e.childNodes.length&&!S_(e);)t=Gi(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function nWt(e,t){for(;e&&!t&&!S_(e);)t=Gi(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function H4(e,t,n){if(t.nodeType!=3){let o,s;(s=tWt(t,n))?(t=s,n=0):(o=nWt(t,n))&&(t=o,n=o.nodeValue.length)}let r=e.domSelection();if(!r)return;if(fD(r)){let o=document.createRange();o.setEnd(t,n),o.setStart(t,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&ud(e)},50)}function Lse(e,t){let n=e.state.doc.resolve(t);if(!(Zi||sIe)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let o=e.coordsAtPos(t-1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(t<n.end()){let o=e.coordsAtPos(t+1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function $se(e,t,n){let r=e.state.selection;if(r instanceof dt&&!r.empty||n.indexOf("s")>-1||Ea&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let s=W4(e.state,t);if(s&&s instanceof rt)return uf(e,s)}if(!i.parent.inlineContent){let s=t<0?i:o,a=r instanceof Ks?ut.near(s,t):ut.findFrom(s,t);return a?uf(e,a):!1}return!1}function Fse(e,t){if(!(e.state.selection instanceof dt))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let s=e.state.tr;return t<0?s.delete(n.pos-o.nodeSize,n.pos):s.delete(n.pos,n.pos+o.nodeSize),e.dispatch(s),!0}return!1}function Bse(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function rWt(e){if(!Eo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;Bse(e,r,"true"),setTimeout(()=>Bse(e,r,"false"),20)}return!1}function iWt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function oWt(e,t){let n=t.keyCode,r=iWt(t);if(n==8||Ea&&n==72&&r=="c")return Fse(e,-1)||lv(e,-1);if(n==46&&!t.shiftKey||Ea&&n==68&&r=="c")return Fse(e,1)||lv(e,1);if(n==13||n==27)return!0;if(n==37||Ea&&n==66&&r=="c"){let i=n==37?Lse(e,e.state.selection.from)=="ltr"?-1:1:-1;return Dse(e,i,r)||lv(e,i)}else if(n==39||Ea&&n==70&&r=="c"){let i=n==39?Lse(e,e.state.selection.from)=="ltr"?1:-1:1;return Dse(e,i,r)||lv(e,i)}else{if(n==38||Ea&&n==80&&r=="c")return $se(e,-1,r)||lv(e,-1);if(n==40||Ea&&n==78&&r=="c")return rWt(e)||$se(e,1,r)||lv(e,1);if(r==(Ea?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function W8(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let s=e.someProp("clipboardSerializer")||Ng.fromSchema(e.state.schema),a=TIe(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=CIe[c.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=a.createElement(u[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` 1141 1142`);return{dom:l,text:f,slice:t}}function EIe(e,t,n,r,i){let o=i.parent.type.spec.code,s,a;if(!n&&!t)return null;let l=!!t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,o||r,e)}),o)return a=new Pe(de.from(e.state.schema.text(t.replace(/\r\n?/g,` 1143`))),0,0),e.someProp("transformPasted",f=>{a=f(a,e,!0)}),a;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)a=d;else{let f=i.marks(),{schema:h}=e.state,p=Ng.fromSchema(h);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=s.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(h.text(m,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),s=cWt(n),__&&uWt(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(a||(a=(e.someProp("clipboardParser")||e.someProp("domParser")||ld.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!sWt.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)a=dWt(jse(a,+u[1],+u[2]),u[4]);else if(a=Pe.maxOpen(aWt(a.content,i),!0),a.openStart||a.openEnd){let d=0,f=0;for(let h=a.content.firstChild;d<a.openStart&&!h.type.spec.isolating;d++,h=h.firstChild);for(let h=a.content.lastChild;f<a.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);a=jse(a,d,f)}return e.someProp("transformPasted",d=>{a=d(a,e,l)}),a}const sWt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function aWt(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,s=[];if(e.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&o.length&&_Ie(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=kIe(s[s.length-1],o.length));let u=SIe(a,l);s.push(u),i=i.matchType(u.type),o=l}}),s)return de.from(s)}return e}function SIe(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,de.from(e));return e}function _Ie(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let o=_Ie(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(de.from(SIe(n,e,i+1))))}}function kIe(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,kIe(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(de.empty,!0);return e.copy(n.append(r))}function K4(e,t,n,r,i,o){let s=t<0?e.firstChild:e.lastChild,a=s.content;return e.childCount>1&&(o=0),i<r-1&&(a=K4(a,t,n,r,i+1,o)),i>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(de.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function jse(e,t,n){return t<e.openStart&&(e=new Pe(K4(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Pe(K4(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const CIe={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let zse=null;function TIe(){return zse||(zse=document.implementation.createHTMLDocument("title"))}let Y$=null;function lWt(e){let t=window.trustedTypes;return t?(Y$||(Y$=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Y$.createHTML(e)):e}function cWt(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=TIe().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&CIe[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=lWt(e),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function uWt(e){let t=e.querySelectorAll(Zi?"span:not([class]):not([style])":"span.Apple-converted-s
1143pace");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent=="Â "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function dWt(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:o,openEnd:s}=e;for(let a=r.length-2;a>=0;a-=2){let l=n.nodes[r[a]];if(!l||l.hasRequiredAttrs())break;i=de.from(l.create(r[a+1],i)),o++,s++}return new Pe(i,o,s)}const qo={},Go={},fWt={touchstart:!0,touchmove:!0};class hWt{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function pWt(e){for(let t in qo){let n=qo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{gWt(e,r)&&!H8(e,r)&&(e.editable||!(r.type in Go))&&n(e,r)},fWt[t]?{passive:!0}:void 0)}Eo&&e.dom.addEventListener("input",()=>null),q4(e)}function Uf(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function mWt(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function q4(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>H8(e,r))})}function H8(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function gWt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function vWt(e,t){!H8(e,t)&&qo[t.type]&&(e.editable||!(t.type in Go))&&qo[t.type](e,t)}Go.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!OIe(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(td&&Zi&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Cb&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,Np(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||oWt(e,n)?n.preventDefault():Uf(e,"key")};Go.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Go.keypress=(e,t)=>{let n=t;if(OIe(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ea&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof dt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),o=()=>e.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",s=>s(e,r.$from.pos,r.$to.pos,i,o))&&e.dispatch(o()),n.preventDefault()}};function pD(e){return{left:e.clientX,top:e.clientY}}function yWt(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function K8(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let s=o.depth+1;s>0;s--)if(e.someProp(t,a=>s>o.depth?a(e,n,o.nodeAfter,o.before(s),i,!0):a(e,n,o.node(s),o.before(s),i,!1)))return!0;return!1}function yy(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function bWt(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&rt.isSelectable(r)?(yy(e,new rt(n)),!0):!1}function wWt(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof rt&&(r=n.node);let o=e.state.doc.resolve(t);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(rt.isSelectable(a)){r&&n.$from.depth>0&&s>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(s);break}}return i!=null?(yy(e,rt.create(e.state.doc,i)),!0):!1}function xWt(e,t,n,r,i){return K8(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>
vendor: 20,013 bytes, line 1143
1143o(e,t,r))||(i?wWt(e,n):bWt(e,n))}function EWt(e,t,n,r){return K8(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function SWt(e,t,n,r){return K8(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||_Wt(e,n,r)}function _Wt(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(yy(e,dt.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(s.inlineContent)yy(e,dt.create(r,a+1,a+1+s.content.size));else if(rt.isSelectable(s))yy(e,rt.create(r,a));else continue;return!0}}function q8(e){return aI(e)}const AIe=Ea?"metaKey":"ctrlKey";qo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=q8(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&yWt(n,e.input.lastClick)&&!n[AIe]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o,button:n.button};let s=e.posAtCoords(pD(n));s&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new kWt(e,s,n,!!r)):(o=="doubleClick"?EWt:SWt)(e,s.pos,s.inside,n)?n.preventDefault():Uf(e,"pointer"))};class kWt{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[AIe],this.allowDefault=r.shiftKey;let o,s;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),s=n.inside;else{let u=t.state.doc.resolve(n.pos);o=u.parent,s=u.depth?u.before():0}const a=i?null:r.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=t.state;r.button==0&&(o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof rt&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Fa&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Uf(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>ud(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(pD(t))),this.updateAllowDefault(t),this.allowDefault||!n?Uf(this.view,"pointer"):xWt(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Eo&&this.mightDrag&&!this.mightDrag.node.isAtom||Zi&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(yy(this.view,ut.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Uf(this.view,"pointer")}move(t){this.updateAllowDefault(t),Uf(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}qo.touchstart=e=>{e.input.lastTouch=Date.now(),q8(e),Uf(e,"pointer")};qo.touchmove=e=>{e.input.lastTouch=Date.now(),Uf(e,"pointer")};qo.contextmenu=e=>q8(e);function OIe(e,t){return e.composing?!0:Eo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const CWt=td?5e3:-1;Go.compositionstart=Go.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof dt&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||Zi&&sIe&&TWt(e)))e.markCursor=e.state.storedMarks||n.marks(),aI(e,!0),e.markCursor=null;else if(aI(e,!t.selection.empty),Fa&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(s.nodeType==3){let a=e.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else i=s,o=-1}}e.input.composing=!0}PIe(e,CWt)};function TWt(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Go.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,PIe(e,20))};function PIe(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>aI(e),t))}function IIe(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=OWt());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function AWt(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=w6t(t.focusNode,t.focusOffset),r=x6t(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function OWt(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function aI(e,t=!1){if(!(td&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),IIe(e),t||e.docView&&e.docView.dirty){let n=U8(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function PWt(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const D1=xs&&sh<15||Cb&&k6t<604;qo.copy=Go.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=D1?null:n.clipboardData,s=r.content(),{dom:a,text:l}=W8(e,s);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):PWt(e,a),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function IWt(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function RWt(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?L1(e,r.value,null,i,t):L1(e,r.textContent,r.innerHTML,i,t)},50)}function L1(e,t,n,r,i){let o=EIe(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||Pe.empty)))return!0;if(!o)return!1;let s=IWt(o),a=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(o);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function RIe(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Go.paste=(e,t)=>{let n=t;if(e.composing&&!td)return;let r=D1?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&L1(e,RIe(r),r.getData("text/html"),i,n)?n.preventDefault():RWt(e,n)};class MIe{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const MWt=Ea?"altKey":"ctrlKey";function NIe(e,t){let n;return e.someProp("dragCopies",r=>{n=n||r(t)}),n!=null?!n:!t[MWt]}qo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(pD(n)),s;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof rt?i.to-1:i.to))){if(r&&r.mightDrag)s=rt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(s=rt.create(e.state.doc,d.posBefore))}}let a=(s||e.state.selection).content(),{dom:l,text:c,slice:u}=W8(e,a);(!n.dataTransfer.files.length||!Zi||oIe>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(D1?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",D1||n.dataTransfer.setData("text/plain",c),e.dragging=new MIe(u,NIe(e,n),s)};qo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Go.dragover=Go.dragenter=(e,t)=>t.preventDefault();Go.drop=(e,t)=>{try{NWt(e,t,e.dragging)}finally{e.dragging=null}};function NWt(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(pD(t));if(!r)return;let i=e.state.doc.resolve(r.pos),o=n&&n.slice;o?e.someProp("transformPasted",h=>{o=h(o,e,!1)}):o=EIe(e,RIe(t.dataTransfer),D1?null:t.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&NIe(e,t));if(e.someProp("handleDrop",h=>h(e,t,o||Pe.empty,s))){t.preventDefault();return}if(!o)return;t.preventDefault();let a=o?$Pe(e.state.doc,i.pos,o):i.pos;a==null&&(a=i.pos);let l=e.state.tr;if(s){let{node:h}=n;h?h.replace(l):l.deleteSelection()}let c=l.mapping.map(a),u=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,d=l.doc;if(u?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o),l.doc.eq(d))return;let f=l.doc.resolve(c);if(u&&rt.isSelectable(o.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new rt(f));else{let h=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((p,m,g,v)=>h=v),l.setSelection(V8(e,f,l.doc.resolve(h)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}qo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&ud(e)},20))};qo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};qo.beforeinput=(e,t)=>{if(Zi&&td&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,Np(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Go)qo[e]=Go[e];function $1(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class lI{constructor(t,n){this.toDOM=t,this.spec=n||Em,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:s}=t.mapResult(n.from+i,this.side<0?-1:1);return s?null:new vo(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof lI&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&$1(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class lh{constructor(t,n){this.attrs=t,this.spec=n||Em}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=s?null:new vo(o,s,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof lh&&$1(this.attrs,t.attrs)&&$1(this.spec,t.spec)}static is(t){return t.type instanceof lh}destroy(){}}class G8{constructor(t,n){this.attrs=t,this.spec=n||Em}map(t,n,r,i){let o=t.mapResult(n.from+i,1);if(o.deleted)return null;let s=t.mapResult(n.to+i,-1);return s.deleted||s.pos<=o.pos?null:new vo(o.pos-r,s.pos-r,this)}valid(t,n){let{index:r,offset:i}=t.content.findIndex(n.from),o;return i==n.from&&!(o=t.child(r)).isText&&i+o.nodeSize==n.to}eq(t){return this==t||t instanceof G8&&$1(this.attrs,t.attrs)&&$1(this.spec,t.spec)}destroy(){}}class vo{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new vo(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new vo(t,t,new lI(n,r))}static inline(t,n,r,i){return new vo(t,n,new lh(r,i))}static node(t,n,r,i){return new vo(t,n,new G8(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof lh}get widget(){return this.type instanceof lI}}const bv=[],Em={};class sr{constructor(t,n){this.local=t.length?t:bv,this.children=n.length?n:bv}static create(t,n){return n.length?cI(n,t,0,Em):uo}find(t,n,r){let i=[];return this.findInner(t??0,n??1e9,i,0,r),i}findInner(t,n,r,i,o){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=t&&(!o||o(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>t){let a=this.children[s]+1;this.children[s+2].findInner(t-a,n-a,r,i+a,o)}}map(t,n,r){return this==uo||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Em)}mapInner(t,n,r,i,o){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(t,r,i);l&&l.type.valid(n,l)?(s||(s=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?DWt(this.children,s||[],t,n,r,i,o):s?new sr(s.sort(Sm),bv):uo}add(t,n){return n.length?this==uo?sr.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,o=0;t.forEach((a,l)=>{let c=l+r,u;if(u=LIe(n,a,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(a,u,c+1):i.splice(o,0,l,l+a.nodeSize,cI(u,a,c+1,Em)),o+=3}});let s=DIe(o?$Ie(n):n,-r);for(let a=0;a<s.length;a++)s[a].type.valid(t,s[a])||s.splice(a--,1);return new sr(s.length?this.local.concat(s).sort(Sm):this.local,i||this.children)}remove(t){return t.length==0||this==uo?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let s,a=r[o]+n,l=r[o+1]+n;for(let u=0,d;u<t.length;u++)(d=t[u])&&d.from>a&&d.to<l&&(t[u]=null,(s||(s=[])).push(d));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(s,a+1);c!=uo?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,s;o<t.length;o++)if(s=t[o])for(let a=0;a<i.length;a++)i[a].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(a--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new sr(i,r):uo}forChild(t,n){if(this==uo)return this;if(n.isLeaf)return sr.empty;let r,i;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=t){this.children[a]==t&&(r=this.children[a+2]);break}let o=t+1,s=o+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof lh){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let a=new sr(i.sort(Sm),bv);return r?new vf([a,r]):a}return r||uo}eq(t){if(this==t)return!0;if(!(t instanceof sr)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return Y8(this.localsInner(t))}localsInner(t){if(this==uo)return bv;if(t.inlineContent||!this.local.some(lh.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof lh||n.push(this.local[r]);return n}forEachSet(t){t(this)}}sr.empty=new sr([],[]);sr.removeOverlap=Y8;const uo=sr.empty;class vf{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,Em));return vf.from(r)}forChild(t,n){if(n.isLeaf)return sr.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(t,n);o!=uo&&(o instanceof vf?r=r.concat(o.members):r.push(o))}return vf.from(r)}eq(t){if(!(t instanceof vf)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(t);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let s=0;s<o.length;s++)n.push(o[s])}}return n?Y8(r?n:n.sort(Sm)):bv}static from(t){switch(t.length){case 0:return uo;case 1:return t[0];default:return new vf(t.every(n=>n instanceof sr)?t:t.reduce((n,r)=>n.concat(r instanceof sr?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function DWt(e,t,n,r,i,o,s){let a=e.slice();for(let c=0,u=o;c<n.maps.length;c++){let d=0;n.maps[c].forEach((f,h,p,m)=>{let g=m-p-(h-f);for(let v=0;v<a.length;v+=3){let b=a[v+1];if(b<0||f>b+u-d)continue;let w=a[v]+u-d;h>=w?a[v+1]=f<=w?-2:-1:f>=u&&g&&(a[v]+=g,a[v+1]+=g)}d+=g}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(e[c]+o),d=u-i;if(d<0||d>=r.content.size){l=!0;continue}let f=n.map(e[c+1]+o,-1),h=f-i,{index:p,offset:m}=r.content.findIndex(d),g=r.maybeChild(p);if(g&&m==d&&m+g.nodeSize==h){let v=a[c+2].mapInner(n,g,u+1,e[c]+o+1,s);v!=uo?(a[c]=d,a[c+1]=h,a[c+2]=v):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=LWt(a,e,t,n,i,o,s),u=cI(c,r,0,s);t=u.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,f=0;d<u.children.length;d+=3){let h=u.children[d];for(;f<a.length&&a[f]<h;)f+=3;a.splice(f,0,u.children[d],u.children[d+1],u.children[d+2])}}return new sr(t.sort(Sm),a)}function DIe(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new vo(i.from+t,i.to+t,i.type))}return n}function LWt(e,t,n,r,i,o,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(r,i,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&a(e[l+2],t[l]+o+1);return n}function LIe(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let o=0,s;o<e.length;o++)(s=e[o])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),e[o]=null);return i}function $Ie(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function cI(e,t,n,r){let i=[],o=!1;t.forEach((a,l)=>{let c=LIe(e,a,l+n);if(c){o=!0;let u=cI(c,a,n+l+1,r);u!=uo&&i.push(l,l+a.nodeSize,u)}});let s=DIe(o?$Ie(e):e,-n).sort(Sm);for(let a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||i.length?new sr(s,i):uo}function Sm(e,t){return e.from-t.from||e.to-t.to}function Y8(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from==r.from){o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),Use(t,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),Use(t,i,r.copy(o.from,r.to)));break}}}return t}function Use(e,t,n){for(;t<e.length&&Sm(n,e[t])>0;)t++;e.splice(t,0,n)}
vendor: 19,115 bytes, line 1143
1143function X$(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=uo&&t.push(r)}),e.cursorWrapper&&t.push(sr.create(e.state.doc,[e.cursorWrapper.deco])),vf.from(t)}const $Wt={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},FWt=xs&&sh<=11;class BWt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class jWt{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new BWt,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);xs&&sh<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():Eo&&t.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),FWt&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,$Wt)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Nse(this.view)){if(this.suppressingSelectionUpdates)return ud(this.view);if(xs&&sh<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&sg(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=kb(o))n.add(o);for(let o=t.anchorNode;o;o=kb(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Nse(t)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];if(t.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(o=o<0?d.from:Math.min(d.from,o),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(l.some(u=>u.nodeName=="BR")&&(t.input.lastKeyCode==8||t.input.lastKeyCode==46)){for(let u of l)if(u.nodeName=="BR"&&u.parentNode){let d=u.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){u.parentNode.removeChild(u);break}d=d.firstChild}}}else if(Fa&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||VWt(t,d)!=h)&&f.remove()}}}let c=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&fD(r)&&(c=U8(t))&&c.eq(ut.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,ud(t),this.currentSelection.set(r),t.scrollToSelection()):(o>-1||i)&&(o>-1&&(t.docView.markDirty(o,s),zWt(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,WWt(t,l)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||ud(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;u<t.addedNodes.length;u++){let d=t.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let i=t.previousSibling,o=t.nextSibling;if(xs&&sh<=11&&t.addedNodes.length)for(let u=0;u<t.addedNodes.length;u++){let{previousSibling:d,nextSibling:f}=t.addedNodes[u];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(i=d),(!f||Array.prototype.indexOf.call(t.addedNodes,f)<0)&&(o=f)}let s=i&&i.parentNode==t.target?Gi(i)+1:0,a=r.localPosFromDOM(t.target,s,-1),l=o&&o.parentNode==t.target?Gi(o):t.target.childNodes.length,c=r.localPosFromDOM(t.target,l,1);return{from:a,to:c}}else return t.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let Vse=new WeakMap,Wse=!1;function zWt(e){if(!Vse.has(e)&&(Vse.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Fa,Wse)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Wse=!0}}function Hse(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return sg(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function UWt(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return Hse(e,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?Hse(e,n):null}function VWt(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function WWt(e,t){var n;let{focusNode:r,focusOffset:i}=e.domSelectionRange();for(let o of t)if(((n=o.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=o.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let a=s;for(;;){let l=a.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;a=l}a.insertBefore(o,a.firstChild),r==o&&e.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}function HWt(e,t,n){let{node:r,fromOffset:i,toOffset:o,from:s,to:a}=e.docView.parseRange(t,n),l=e.domSelectionRange(),c,u=l.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],fD(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Zi&&e.input.lastKeyCode===8)for(let g=o;g>i;g--){let v=r.childNodes[g-1],b=v.pmViewDesc;if(v.nodeName=="BR"&&!b){o=g;break}if(!b||b.size)break}let d=e.state.doc,f=e.someProp("domParser")||ld.fromSchema(e.state.schema),h=d.resolve(s),p=null,m=f.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:KWt,context:h});if(c&&c[0].pos!=null){let g=c[0].pos,v=c[1]&&c[1].pos;v==null&&(v=g),p={anchor:g+s,head:v+s}}return{doc:m,sel:p,from:s,to:a}}function KWt(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Eo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Eo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const qWt=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function GWt(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let _=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,k=U8(e,_);if(k&&!e.state.selection.eq(k)){if(Zi&&td&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",T=>T(e,Np(13,"Enter"))))return;let C=e.state.tr.setSelection(k);_=="pointer"?C.setMeta("pointer",!0):_=="key"&&C.scrollIntoView(),o&&C.setMeta("composition",o),e.dispatch(C)}return}let s=e.state.doc.resolve(t),a=s.sharedDepth(n);t=s.before(a+1),n=e.state.doc.resolve(n).after(a+1);let l=e.state.selection,c=HWt(e,t,n),u=e.state.doc,d=u.slice(c.from,c.to),f,h;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,h="end"):(f=e.state.selection.from,h="start"),e.input.lastKeyCode=null;let p=ZWt(d.content,c.doc.content,c.from,f,h);if(p&&e.input.domChangeCount++,(Cb&&e.input.lastIOSEnter>Date.now()-225||td)&&i.some(_=>_.nodeType==1&&!qWt.test(_.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",_=>_(e,Np(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof dt&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let _=Kse(e,e.state.doc,c.sel);if(_&&!_.eq(e.state.selection)){let k=e.state.tr.setSelection(_);o&&k.setMeta("composition",o),e.dispatch(k)}}return}e.state.selection.from<e.state.selection.to&&p.start==p.endB&&e.state.selection instanceof dt&&(p.start>e.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?p.start=e.state.selection.from:p.endA<e.state.selection.to&&p.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),xs&&sh<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)==" Â "&&(p.start--,p.endA--,p.endB--);let m=c.doc.resolveNoCache(p.start-c.from),g=c.doc.resolveNoCache(p.endB-c.from),v=u.resolve(p.start),b=m.sameParent(g)&&m.parent.inlineContent&&v.end()>=p.endA;if((Cb&&e.input.lastIOSEnter>Date.now()-225&&(!b||i.some(_=>_.nodeName=="DIV"||_.nodeName=="P"))||!b&&m.pos<c.doc.content.size&&(!m.sameParent(g)||!m.parent.inlineContent)&&m.pos<g.pos&&!/\S/.test(c.doc.textBetween(m.pos,g.pos,"","")))&&e.someProp("handleKeyDown",_=>_(e,Np(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&XWt(u,p.start,p.endA,m,g)&&e.someProp("handleKeyDown",_=>_(e,Np(8,"Backspace")))){td&&Zi&&e.domObserver.suppressSelectionUpdates();return}Zi&&p.endB==p.start&&(e.input.lastChromeDelete=Date.now()),td&&!b&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,g=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(_){return _(e,Np(13,"Enter"))})},20));let w=p.start,x=p.endA,E=_=>{let k=_||e.state.tr.replace(w,x,c.doc.slice(p.start-c.from,p.endB-c.from));if(c.sel){let C=Kse(e,k.doc,c.sel);C&&!(Zi&&e.composing&&C.empty&&(p.start!=p.endB||e.input.lastChromeDelete<Date.now()-100)&&(C.head==w||C.head==k.mapping.map(x)-1)||xs&&C.empty&&C.head==w)&&k.setSelection(C)}return o&&k.setMeta("composition",o),k.scrollIntoView()},S;if(b)if(m.pos==g.pos){xs&&sh<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>ud(e),20));let _=E(e.state.tr.delete(w,x)),k=u.resolve(p.start).marksAcross(u.resolve(p.endA));k&&_.ensureMarks(k),e.dispatch(_)}else if(p.endA==p.endB&&(S=YWt(m.parent.content.cut(m.parentOffset,g.parentOffset),v.parent.content.cut(v.parentOffset,p.endA-v.start())))){let _=E(e.state.tr);S.type=="add"?_.addMark(w,x,S.mark):_.removeMark(w,x,S.mark),e.dispatch(_)}else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let _=m.parent.textBetween(m.parentOffset,g.parentOffset),k=()=>E(e.state.tr.insertText(_,w,x));e.someProp("handleTextInput",C=>C(e,w,x,_,k))||e.dispatch(k())}else e.dispatch(E());else e.dispatch(E())}function Kse(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:V8(e,t.resolve(n.anchor),t.resolve(n.head))}function YWt(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,s,a,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<n.length;u++)o=n[u].removeFromSet(o);if(i.length==1&&o.length==0)a=i[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(i.length==0&&o.length==1)a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<t.childCount;u++)c.push(l(t.child(u)));if(de.from(c).eq(e))return{mark:a,type:s}}function XWt(e,t,n,r,i){if(n-t<=i.pos-r.pos||Z$(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!r.parent.isTextblock){let a=o.nodeAfter;return a!=null&&n==t+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=e.resolve(Z$(o,!0,!0));return!s.parent.isTextblock||s.pos>n||Z$(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Z$(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function ZWt(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(s,a));r-=s+l-o}if(s<o&&e.size<t.size){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<t.size&&qse(t.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}else if(a<o){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<e.size&&qse(e.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}function qse(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class FIe{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new hWt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Qse),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Xse(this),Yse(this),this.nodeViews=Zse(this),this.docView=Ase(this.state.doc,Gse(this),X$(this),this.dom,this),this.domObserver=new jWt(this,(r,i,o,s)=>GWt(this,r,i,o,s)),this.domObserver.start(),pWt(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&q4(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Qse),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,s=!1;t.storedMarks&&this.composing&&(IIe(this),s=!0),this.state=t;let a=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=Zse(this);JWt(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&q4(this),this.editable=Xse(this),Yse(this);let l=X$(this),c=Gse(this),u=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,c,l);(d||!t.selection.eq(i.selection))&&(s=!0);let f=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&A6t(this);if(s){this.domObserver.stop();let h=d&&(xs||Zi)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&QWt(i.selection,t.selection);if(d){let p=Zi?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=AWt(this)),(o||!this.docView.update(t.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Ase(t.doc,c,l,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Q6t(this))?ud(this,h):(bIe(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&O6t(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof rt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Ese(this,n.getBoundingClientRect(),t)}else Ese(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,t)}}updateDraggedNode(t,n){let r=t.node,i=-1;
vendor: 63,781 bytes, lines 1143-1186
1143if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&o<this.state.doc.content.size&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new MIe(t.slice,t.move,i<0?void 0:rt.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[t];if(a!=null&&(i=n?n(a):a))return i}let o=this.state.plugins;if(o)for(let s=0;s<o.length;s++){let a=o[s].props[t];if(a!=null&&(i=n?n(a):a))return i}}hasFocus(){if(xs){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&P6t(this.dom),ud(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return D6t(this,t)}coordsAtPos(t,n=1){return dIe(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return j6t(this,n||this.state,t)}pasteHTML(t,n){return L1(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return L1(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return W8(this,t)}destroy(){this.docView&&(mWt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],X$(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,y6t())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return vWt(this,t)}domSelectionRange(){let t=this.domSelection();return t?Eo&&this.root.nodeType===11&&S6t(this.dom.ownerDocument)==this.dom&&UWt(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}FIe.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function Gse(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[vo.node(0,e.state.doc.content.size,t)]}function Yse(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:vo.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Xse(e){return!e.someProp("editable",t=>t(e.state)===!1)}function QWt(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Zse(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function JWt(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function Qse(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Ah={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},uI={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},eHt=typeof navigator<"u"&&/Mac/.test(navigator.platform),tHt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Yi=0;Yi<10;Yi++)Ah[48+Yi]=Ah[96+Yi]=String(Yi);for(var Yi=1;Yi<=24;Yi++)Ah[Yi+111]="F"+Yi;for(var Yi=65;Yi<=90;Yi++)Ah[Yi]=String.fromCharCode(Yi+32),uI[Yi]=String.fromCharCode(Yi);for(var Q$ in Ah)uI.hasOwnProperty(Q$)||(uI[Q$]=Ah[Q$]);function nHt(e){var t=eHt&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||tHt&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?uI:Ah)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const rHt=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),iHt=typeof navigator<"u"&&/Win/.test(navigator.platform);function oHt(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<t.length-1;a++){let l=t[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))rHt?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function sHt(e){let t=Object.create(null);for(let n in e)t[oHt(n)]=e[n];return t}function J$(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function aHt(e){return new Fn({props:{handleKeyDown:X8(e)}})}function X8(e){let t=sHt(e);return function(n,r){let i=nHt(r),o,s=t[J$(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let a=t[J$(i,r,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(iHt&&r.ctrlKey&&r.altKey)&&(o=Ah[r.keyCode])&&o!=i){let a=t[J$(o,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}var lHt=Object.defineProperty,Z8=(e,t)=>{for(var n in t)lHt(e,n,{get:t[n],enumerable:!0})};function mD(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}var gD=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,o=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,(...c)=>{const u=a(...c)(o);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s=[],a=!!e,l=e||i.tr,c=()=>(!a&&t&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),s.every(d=>d===!0)),u={...Object.fromEntries(Object.entries(n).map(([d,f])=>[d,(...p)=>{const m=this.buildProps(l,t),g=f(...p)(m);return s.push(g),u}])),run:c};return u}createCan(e){const{rawCommands:t,state:n}=this,r=!1,i=e||n.tr,o=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...c)=>l(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s={tr:e,editor:r,view:o,state:mD({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([a,l])=>[a,(...c)=>l(...c)(s)]))}};return s}},sl={};Z8(sl,{blur:()=>cHt,clearContent:()=>uHt,clearNodes:()=>dHt,command:()=>fHt,createParagraphNear:()=>hHt,cut:()=>pHt,deleteCurrentNode:()=>mHt,deleteNode:()=>gHt,deleteRange:()=>vHt,deleteSelection:()=>yHt,enter:()=>bHt,exitCode:()=>wHt,extendMarkRange:()=>xHt,first:()=>EHt,focus:()=>_Ht,forEach:()=>kHt,insertContent:()=>CHt,insertContentAt:()=>OHt,joinBackward:()=>RHt,joinDown:()=>IHt,joinForward:()=>MHt,joinItemBackward:()=>NHt,joinItemForward:()=>DHt,joinTextblockBackward:()=>LHt,joinTextblockForward:()=>$Ht,joinUp:()=>PHt,keyboardShortcut:()=>BHt,lift:()=>jHt,liftEmptyBlock:()=>zHt,liftListItem:()=>UHt,newlineInCode:()=>VHt,resetAttributes:()=>WHt,scrollIntoView:()=>HHt,selectAll:()=>KHt,selectNodeBackward:()=>qHt,selectNodeForward:()=>GHt,selectParentNode:()=>YHt,selectTextblockEnd:()=>XHt,selectTextblockStart:()=>ZHt,setContent:()=>QHt,setMark:()=>b9t,setMeta:()=>w9t,setNode:()=>x9t,setNodeSelection:()=>E9t,setTextDirection:()=>S9t,setTextSelection:()=>_9t,sinkListItem:()=>k9t,splitBlock:()=>C9t,splitListItem:()=>T9t,toggleList:()=>O9t,toggleMark:()=>P9t,toggleNode:()=>I9t,toggleWrap:()=>R9t,undoInputRule:()=>M9t,unsetAllMarks:()=>N9t,unsetMark:()=>D9t,unsetTextDirection:()=>L9t,updateAttributes:()=>$9t,wrapIn:()=>F9t,wrapInList:()=>B9t});var cHt=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),uHt=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),dHt=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:s})=>{e.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),f=c.resolve(u.map(l+a.nodeSize)),h=d.blockRange(f);if(!h)return;const p=O0(h);if(a.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(h.start,m)}(p||p===0)&&t.lift(h,p)})}),!0},fHt=e=>t=>e(t),hHt=()=>({state:e,dispatch:t})=>eIe(e,t),pHt=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const s=r.mapping.map(t);return r.insert(s,o.content),r.setSelection(new dt(r.doc.resolve(Math.max(s-1,0)))),!0},mHt=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(t){const a=i.before(o),l=i.after(o);e.delete(a,l).scrollIntoView()}return!0}return!1};function ri(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var gHt=e=>({tr:t,state:n,dispatch:r})=>{const i=ri(e,n.schema),o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i){if(r){const l=o.before(s),c=o.after(s);t.delete(l,c).scrollIntoView()}return!0}return!1},vHt=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},yHt=()=>({state:e,dispatch:t})=>L8(e,t),bHt=()=>({commands:e})=>e.keyboardShortcut("Enter"),wHt=()=>({state:e,dispatch:t})=>r6t(e,t);function Q8(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function dI(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:Q8(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function BIe(e,t,n={}){return e.find(r=>r.type===t&&dI(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function Jse(e,t,n={}){return!!BIe(e,t,n)}function J8(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(c=>c.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(c=>c.type===t))return;if(!n){const c=r.node.marks.find(u=>u.type===t);c&&(n=c.attrs)}if(!BIe([...r.node.marks],t,n))return;let o=r.index,s=e.start()+r.offset,a=o+1,l=s+r.node.nodeSize;for(;o>0&&Jse([...e.parent.child(o-1).marks],t,n);)o-=1,s-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&Jse([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function Ld(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var xHt=(e,t)=>({tr:n,state:r,dispatch:i})=>{const o=Ld(e,r.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(i){const d=J8(l,o,t);if(d&&d.from<=c&&d.to>=u){const f=dt.create(s,d.from,d.to);n.setSelection(f)}}return!0},EHt=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function e7(e){return e instanceof dt}function nd(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function jIe(e,t=null){if(!t)return null;const n=ut.atStart(e),r=ut.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,o=r.to;return t==="all"?dt.create(e,nd(0,i,o),nd(e.content.size,i,o)):dt.create(e,nd(t,i,o),nd(t,i,o))}function G4(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function F1(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function SHt(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var _Ht=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{(F1()||G4())&&r.dom.focus(),SHt()&&!F1()&&!G4()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(o&&e===null&&!e7(n.state.selection))return s(),!0;const a=jIe(i.doc,e)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},kHt=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),CHt=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),zIe=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&zIe(r)}return e};function px(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return zIe(n)}function B1(e,t,n){if(e instanceof oh||e instanceof de)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return de.fromArray(e.map(a=>t.nodeFromJSON(a)));const s=t.nodeFromJSON(e);return n.errorOnInvalidContent&&s.check(),s}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),B1("",t,n)}if(i){if(n.errorOnInvalidContent){let s=!1,a="";const l=new CPe({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?ld.fromSchema(l).parseSlice(px(e),n.parseOptions):ld.fromSchema(l).parse(px(e),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const o=ld.fromSchema(t);return n.slice?o.parseSlice(px(e),n.parseOptions).content:o.parse(px(e),n.parseOptions)}return B1("",t,n)}function THt(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof Zr||i instanceof Pi))return;const o=e.mapping.maps[r];let s=0;o.forEach((a,l,c,u)=>{s===0&&(s=u)}),e.setSelection(ut.near(e.doc.resolve(s),n))}var AHt=e=>!("type"in e),OHt=(e,t,n)=>({tr:r,dispatch:i,editor:o})=>{var s;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=g=>{o.emit("contentError",{editor:o,error:g,disableCollaboration:()=>{"collaboration"in o.storage&&typeof o.storage.collaboration=="object"&&o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{B1(t,o.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(g){l(g)}try{a=B1(t,o.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:o.options.enableContentCheck})}catch(g){return l(g),!1}let{from:u,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},f=!0,h=!0;if((AHt(a)?a:[a]).forEach(g=>{g.check(),f=f?g.isText&&g.marks.length===0:!1,h=h?g.isBlock:!1}),u===d&&h){const{parent:g}=r.doc.resolve(u);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(u-=1,d+=1)}let m;if(f){if(Array.isArray(t))m=t.map(g=>g.text||"").join("");else if(t instanceof de){let g="";t.forEach(v=>{v.text&&(g+=v.text)}),m=g}else typeof t=="object"&&t&&t.text?m=t.text:m=t;r.insertText(m,u,d)}else{m=a;const g=r.doc.resolve(u),v=g.node(),b=g.parentOffset===0,w=v.isText||v.isTextblock,x=v.content.size>0;b&&w&&x&&h&&(u=Math.max(0,u-1)),r.replaceWith(u,d,m)}n.updateSelection&&THt(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:m}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:m})}return!0},PHt=()=>({state:e,dispatch:t})=>e6t(e,t),IHt=()=>({state:e,dispatch:t})=>t6t(e,t),RHt=()=>({state:e,dispatch:t})=>qPe(e,t),MHt=()=>({state:e,dispatch:t})=>ZPe(e,t),NHt=()=>({state:e,dispatch:t,tr:n})=>{try{const r=cD(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},DHt=()=>({state:e,dispatch:t,tr:n})=>{try{const r=cD(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},LHt=()=>({state:e,dispatch:t})=>QVt(e,t),$Ht=()=>({state:e,dispatch:t})=>JVt(e,t);function UIe(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function FHt(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<t.length-1;a+=1){const l=t[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))F1()||UIe()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}var BHt=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const o=FHt(e).split(/-(?!$)/),s=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function Oh(e,t,n={}){const{from:r,to:i,empty:o}=e.selection,s=t?ri(t,e.schema):null,a=[];e.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const h=Math.max(r,f),p=Math.min(i,f+d.nodeSize);a.push({node:d,from:h,to:p})});const l=i-r,c=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>dI(d.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((d,f)=>d+f.to-f.from,0)>=l}var jHt=(e,t={})=>({state:n,dispatch:r})=>{const i=ri(e,n.schema);return Oh(n,i,t)?n6t(n,r):!1},zHt=()=>({state:e,dispatch:t})=>tIe(e,t),UHt=e=>({state:t,dispatch:n})=>{const r=ri(e,t.schema);return p6t(r)(t,n)},VHt=()=>({state:e,dispatch:t})=>JPe(e,t);function vD(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function eae(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}var WHt=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null;const a=vD(typeof e=="string"?e:e.name,r.schema);if(!a)return!1;a==="node"&&(o=ri(e,r.schema)),a==="mark"&&(s=Ld(e,r.schema));let l=!1;return n.selection.ranges.forEach(c=>{r.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{o&&o===u.type&&(l=!0,i&&n.setNodeMarkup(d,void 0,eae(u.attrs,t))),s&&u.marks.length&&u.marks.forEach(f=>{s===f.type&&(l=!0,i&&n.addMark(d,d+u.nodeSize,s.create(eae(f.attrs,t))))})})}),l},HHt=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),KHt=()=>({tr:e,dispatch:t})=>{if(t){const n=new Ks(e.doc);e.setSelection(n)}return!0},qHt=()=>({state:e,dispatch:t})=>YPe(e,t),GHt=()=>({state:e,dispatch:t})=>QPe(e,t),YHt=()=>({state:e,dispatch:t})=>s6t(e,t),XHt=()=>({state:e,dispatch:t})=>c6t(e,t),ZHt=()=>({state:e,dispatch:t})=>l6t(e,t);function Y4(e,t,n={},r={}){return B1(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var QHt=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:o,dispatch:s,commands:a})=>{const{doc:l}=o;if(r.preserveWhitespace!=="full"){const c=Y4(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});return s&&o.replaceWith(0,l.content.size,c).setMeta("preventUpdate",!n),!0}return s&&o.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function VIe(e,t){const n=Ld(t,e.schema),{from:r,to:i,empty:o}=e.selection,s=[];o?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function WIe(e,t){const n=new UPe(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function JHt(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function e9t(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function t9t(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function yD(e){return t=>t9t(t.$from,e)}function Ge(e,t,n){return e.config[t]===void 0&&e.parent?Ge(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Ge(e.parent,t,n):null}):e.config[t]}function bD(e){return e.map(t=>{const n={name:t.name,options:t.options,storage:t.storage},r=Ge(t,"addExtensions",n);return r?[t,...bD(r())]:t}).flat(10)}function t7(e,t){const n=Ng.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function HIe(e){return typeof e=="function"}function ln(e,t=void 0,...n){return HIe(e)?t?e.bind(t)(...n):e(...n):e}function n9t(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Tb(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function KIe(e){const t=[],{nodeExtensions:n,markExtensions:r}=Tb(e),i=[...n,...r],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(c=>c.name!=="text").map(c=>c.name),a=r.map(c=>c.name),l=[...s,...a];return e.forEach(c=>{const u={name:c.name,options:c.options,storage:c.storage,extensions:i},d=Ge(c,"addGlobalAttributes",u);if(!d)return;d().forEach(h=>{let p;Array.isArray(h.types)?p=h.types:h.types==="*"?p=l:h.types==="nodes"?p=s:h.types==="marks"?p=a:p=[],p.forEach(m=>{Object.entries(h.attributes).forEach(([g,v])=>{t.push({type:m,name:g,attribute:{...o,...v}})})})})}),i.forEach(c=>{const u={name:c.name,options:c.options,storage:c.storage},d=Ge(c,"addAttributes",u);if(!d)return;const f=d();Object.entries(f).forEach(([h,p])=>{const m={...o,...p};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,t.push({type:c.name,name:h,attribute:m})})}),t}function r9t(e){const t=[];let n="",r=!1,i=!1,o=0;const s=e.length;for(let a=0;a<s;a+=1){const l=e[a];if(l==="'"&&!i){r=!r,n+=l;continue}if(l==='"'&&!r){i=!i,n+=l;continue}if(!r&&!i){if(l==="("){o+=1,n+=l;continue}if(l===")"&&o>0){o-=1,n+=l;continue}if(l===";"&&o===0){t.push(n),n="";continue}}n+=l}return n&&t.push(n),t}function tae(e){const t=[],n=r9t(e||""),r=n.length;for(let i=0;i<r;i+=1){const o=n[i],s=o.indexOf(":");if(s===-1)continue;const a=o.slice(0,s).trim(),l=o.slice(s+1).trim();a&&l&&t.push([a,l])}return t}function Ur(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const a=o?String(o).split(" "):[],l=r[i]?r[i].split(" "):[],c=a.filter(u=>!l.includes(u));r[i]=[...l,...c].join(" ")}else if(i==="style"){const a=new Map([...tae(r[i]),...tae(o)]);r[i]=Array.from(a.entries()).map(([l,c])=>`${l}: ${c}`).join("; ")}else r[i]=o}),r},{})}function Ab(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Ur(n,r),{})}function i9t(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function nae(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):i9t(n.getAttribute(s.name));return a==null?o:{...o,[s.name]:a}},{});return{...r,...i}}}}function rae(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&n9t(n)?!1:n!=null))}function iae(e){var t,n;const r={};return!((t=e==null?void 0:e.attribute)!=null&&t.isRequired)&&"default"in((e==null?void 0:e.attribute)||{})&&(r.default=e.attribute.default),((n=e==null?void 0:e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function qIe(e,t){var n;const r=KIe(e),{nodeExtensions:i,markExtensions:o}=Tb(e),s=(n=i.find(c=>Ge(c,"topNode")))==null?void 0:n.name,a=Object.fromEntries(i.map(c=>{const u=r.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:t},f=e.reduce((v,b)=>{const w=Ge(b,"extendNodeSchema",d);return{...v,...w?w(c):{}}},{}),h=rae({...f,content:ln(Ge(c,"content",d)),marks:ln(Ge(c,"marks",d)),group:ln(Ge(c,"group",d)),inline:ln(Ge(c,"inline",d)),atom:ln(Ge(c,"atom",d)),selectable:ln(Ge(c,"selectable",d)),draggable:ln(Ge(c,"draggable",d)),code:ln(Ge(c,"code",d)),whitespace:ln(Ge(c,"whitespace",d)),linebreakReplacement:ln(Ge(c,"linebreakReplacement",d)),defining:ln(Ge(c,"defining",d)),isolating:ln(Ge(c,"isolating",d)),attrs:Object.fromEntries(u.map(iae))}),p=ln(Ge(c,"parseHTML",d));p&&(h.parseDOM=p.map(v=>nae(v,u)));const m=Ge(c,"renderHTML",d);m&&(h.toDOM=v=>m({node:v,HTMLAttributes:Ab(v,u)}));const g=Ge(c,"renderText",d);return g&&(h.toText=g),[c.name,h]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(g=>g.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:t},f=e.reduce((g,v)=>{const b=Ge(v,"extendMarkSchema",d);return{...g,...b?b(c):{}}},{}),h=rae({...f,inclusive:ln(Ge(c,"inclusive",d)),excludes:ln(Ge(c,"excludes",d)),group:ln(Ge(c,"group",d)),spanning:ln(Ge(c,"spanning",d)),code:ln(Ge(c,"code",d)),attrs:Object.fromEntries(u.map(iae))}),p=ln(Ge(c,"parseHTML",d));p&&(h.parseDOM=p.map(g=>nae(g,u)));const m=Ge(c,"renderHTML",d);return m&&(h.toDOM=g=>m({mark:g,HTMLAttributes:Ab(g,u)})),[c.name,h]}));return new CPe({topNode:s,nodes:a,marks:l})}function o9t(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}function rE(e){return e.sort((n,r)=>{const i=Ge(n,"priority")||100,o=Ge(r,"priority")||100;return i>o?-1:i<o?1:0})}function n7(e){const t=rE(bD(e)),n=o9t(t.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),t}function s9t(e,t){const n=n7(e);return qIe(n,t)}function a9t(e,t){const n=s9t(t),r=px(e);return ld.fromSchema(n).parse(r).toJSON()}function GIe(e,t,n){const{from:r,to:i}=t,{blockSeparator:o=` 1144 1145`,textSerializers:s={}}=n||{};let a="";return e.nodesBetween(r,i,(l,c,u,d)=>{var f;l.isBlock&&c>r&&(a+=o);const h=s==null?void 0:s[l.type.name];if(h)return u&&(a+=h({node:l,pos:c,parent:u,index:d,range:t})),!1;l.isText&&(a+=(f=l==null?void 0:l.text)==null?void 0:f.slice(Math.max(r,c)-c,i-c))}),a}function YIe(e,t){const n={from:0,to:e.content.size};return GIe(e,n,t)}function r7(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}function l9t(e,t){const n=ri(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function XIe(e,t){const n=vD(typeof t=="string"?t:t.name,e.schema);return n==="node"?l9t(e,t):n==="mark"?VIe(e,t):{}}function c9t(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function u9t(e){const t=c9t(e);return t.length===1?t:t.filter((n,r)=>!t.filter((o,s)=>s!==r).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function ZIe(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,o)=>{const s=[];if(i.ranges.length)i.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[o];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=t.slice(o).map(a,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),f=t.invert().map(u);r.push({oldRange:{from:d,to:f},newRange:{from:c,to:u}})})}),u9t(r)}function i7(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const o=n.resolve(e),s=J8(o,i.type);s&&r.push({mark:i,...s})}):n.nodesBetween(e,t,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(s=>({from:o,to:o+i.nodeSize,mark:s})))}),r}var d9t=(e,t,n,r=20)=>{const i=e.doc.resolve(n);let o=r,s=null;for(;o>0&&s===null;){const a=i.node(o);(a==null?void 0:a.type.name)===t?s=a:o-=1}return[s,o]};function Rw(e,t){return t.nodes[e]||t.marks[e]||null}function XT(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(o=>o.type===t&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}var f9t=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,o,s,a)=>{var l,c;const u=((c=(l=i.type.spec).toText)==null?void 0:c.call(l,{node:i,pos:o,parent:s,index:a}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?u:u.slice(0,Math.max(0,r-o))}),n};function X4(e,t,n={}){const{empty:r,ranges:i}=e.selection,o=t?Ld(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>dI(d.attrs,n,{strict:!1}));let s=0;const a=[];if(i.forEach(({$from:d,$to:f})=>{const h=d.pos,p=f.pos;e.doc.nodesBetween(h,p,(m,g)=>{if(o&&m.inlineContent&&!m.type.allowsMarkType(o))return!1;if(!m.isText&&!m.marks.length)return;const v=Math.max(h,g),b=Math.min(p,g+m.nodeSize),w=b-v;s+=w,a.push(...m.marks.map(x=>({mark:x,from:v,to:b})))})}),s===0)return!1;const l=a.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>dI(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),c=a.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,f)=>d+f.to-f.from,0);return(l>0?l+c:l)>=s}function h9t(e,t,n={}){if(!t)return Oh(e,null,n)||X4(e,null,n);const r=vD(t,e.schema);return r==="node"?Oh(e,t,n):r==="mark"?X4(e,t,n):!1}var p9t=(e,t)=>{const{$from:n,$to:r,$anchor:i}=e.selection;if(t){const o=yD(a=>a.type.name===t)(e.selection);if(!o)return!1;const s=e.doc.resolve(o.pos+1);return i.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},m9t=e=>{const{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function oae(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function eF(e,t){const{nodeExtensions:n}=Tb(t),r=n.find(s=>s.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=ln(Ge(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function wD(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return!/\S/.test((r=e.text)!=null?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(o=>{i!==!1&&(wD(o,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function QIe(e){return e instanceof rt}var JIe=class eRe{constructor(t){this.position=t}static fromJSON(t){return new eRe(t.position)}toJSON(){return{position:this.position}}};function g9t(e,t){const n=t.mapping.mapResult(e.position);return{position:new JIe(n.pos),mapResult:n}}function v9t(e){return new JIe(e)}function tRe(e,t,n){const i=e.state.doc.content.size,o=nd(t,0,i),s=nd(n,0,i),a=e.coordsAtPos(o),l=e.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),f=Math.max(a.right,l.right),h=f-d,p=u-c,v={top:c,bottom:u,left:d,right:f,width:h,height:p,x:d,y:c};return{...v,toJSON:()=>v}}function y9t(e,t,n){var r;const{selection:i}=t;let o=null;if(e7(i)&&(o=i.$cursor),o){const a=(r=e.storedMarks)!=null?r:o.marks();return o.parent.type.allowsMarkType(n)&&(!!n.isInSet(a)||!a.some(c=>c.type.excludes(n)))}const{ranges:s}=i;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(a.pos,l.pos,(u,d,f)=>{if(c)return!1;if(u.isInline){const h=!f||f.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(m=>m.type.excludes(n));c=h&&p}return!c}),c})}var b9t=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:s,ranges:a}=o,l=Ld(e,r.schema);if(i)if(s){const c=VIe(r,l);n.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,h)=>{const p=Math.max(h,u),m=Math.min(h+f.nodeSize,d);f.marks.find(v=>v.type===l)?f.marks.forEach(v=>{l===v.type&&n.addMark(p,m,l.create({...v.attrs,...t}))}):n.addMark(p,m,l.create(t))})});return y9t(r,n,l)},w9t=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),x9t=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const o=ri(e,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),o.isTextblock?i().command(({commands:a})=>bse(o,{...s,...t})(n)?!0:a.clearNodes()).command(({state:a})=>bse(o,{...s,...t})(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},E9t=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=nd(e,0,r.content.size),o=rt.create(r,i);t.setSelection(o)}return!0},S9t=(e,t)=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=r;let s,a;return typeof t=="number"?(s=t,a=t):t&&"from"in t&&"to"in t?(s=t.from,a=t.to):(s=o.from,a=o.to),i&&n.doc.nodesBetween(s,a,(l,c)=>{l.isText||n.setNodeMarkup(c,void 0,{...l.attrs,dir:e})}),!0},_9t=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:o}=typeof e=="number"?{from:e,to:e}:e,s=dt.atStart(r).from,a=dt.atEnd(r).to,l=nd(i,s,a),c=nd(o,s,a),u=dt.create(r,l,c);t.setSelection(u)}return!0},k9t=e=>({state:t,dispatch:n})=>{const r=ri(e,t.schema);return v6t(r)(t,n)};function sae(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t==null?void 0:t.includes(i.type.name));e.tr.ensureMarks(r)}}var C9t=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,c=i.extensionManager.attributes,u=XT(c,a.node().type.name,a.node().attrs);if(o instanceof rt&&o.node.isBlock)return!a.parentOffset||!cd(s,a.pos)?!1:(r&&(e&&sae(n,i.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,f=a.depth===0?void 0:JHt(a.node(-1).contentMatchAt(a.indexAfter(-1)));let h=d&&f?[{type:f,attrs:u}]:void 0,p=cd(t.doc,t.mapping.map(a.pos),1,h);if(!h&&!p&&cd(t.doc,t.mapping.map(a.pos),1,f?[{type:f}]:void 0)&&(p=!0,h=f?[{type:f,attrs:u}]:void 0),r){if(p&&(o instanceof dt&&t.deleteSelection(),t.split(t.mapping.map(a.pos),1,h),f&&!d&&!a.parentOffset&&a.parent.type!==f)){const m=t.mapping.map(a.before()),g=t.doc.resolve(m);a.node(-1).canReplaceWith(g.index(),g.index()+1,f)&&t.setNodeMarkup(t.mapping.map(a.before()),f)}e&&sae(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return p},T9t=(e,t={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var s;const a=ri(e,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let v=de.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let k=l.depth-b;k>=l.depth-3;k-=1)v=de.from(l.node(k).copy(v));const w=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,x={...XT(f,l.node().type.name,l.node().attrs),...t},E=((s=a.contentMatch.defaultType)==null?void 0:s.createAndFill(x))||void 0;v=v.append(de.from(a.createAndFill(null,E)||void 0));const S=l.before(l.depth-(b-1));n.replace(S,l.after(-w),new Pe(v,4-b,0));let _=-1;n.doc.nodesBetween(S,n.doc.content.size,(k,C)=>{if(_>-1)return!1;k.isTextblock&&k.content.size===0&&(_=C+1)}),_>-1&&n.setSelection(dt.near(n.doc.resolve(_))),n.scrollIntoView()}return!0}const h=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...XT(f,d.type.name,d.attrs),...t},m={...XT(f,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,c.pos);const g=h?[{type:a,attrs:p},{type:h,attrs:m}]:[{type:a,attrs:p}];if(!cd(n.doc,l.pos,2))return!1;if(i){const{selection:v,storedMarks:b}=r,{splittableMarks:w}=o.extensionManager,x=b||v.$to.parentOffset&&v.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!x||!i)return!0;const E=x.filter(S=>w.includes(S.type.name));n.ensureMarks(E)}return!0},tF=(e,t)=>{const n=yD(s=>s.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&ep(e.doc,n.pos)&&e.join(n.pos),!0},nF=(e,t)=>{const n=yD(s=>s.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&ep(e.doc,r)&&e.join(r),!0};function A9t(e){const t=e.doc,n=t.firstChild;if(!n)return null;const r=t.resolve(1),i=t.resolve(n.nodeSize-1);return dt.between(r,i)}var O9t=(e,t,n,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,h=ri(e,s.schema),p=ri(t,s.schema),{selection:m,storedMarks:g}=s,{$from:v,$to:b}=m,w=v.blockRange(b),x=g||m.$to.parentOffset&&m.$from.marks();if(!w)return!1;const E=yD(R=>eF(R.type.name,d))(m),S=m.from===0&&m.to===s.doc.content.size,_=s.doc.content.content,k=_.length===1?_[0]:null,C=S&&k&&eF(k.type.name,d)?{node:k,pos:0}:null,T=E??C,A=!!E&&w.depth>=1&&w.depth-E.depth<=1,O=!!C;if((A||O)&&T){if(T.node.type===h)return S&&O?l().command(({tr:R,dispatch:I})=>{const F=A9t(R);return F?(R.setSelection(F),I&&I(R),!0):!1}).liftListItem(p).run():c.liftListItem(p);if(eF(T.node.type.name,d)&&h.validContent(T.node.content))return l().command(()=>(o.setNodeMarkup(T.pos,h),!0)).command(()=>tF(o,h)).command(()=>nF(o,h)).run()}return!n||!x||!a?l().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>tF(o,h)).command(()=>nF(o,h)).run():l().command(()=>{const R=u().wrapInList(h,r),I=x.filter(F=>f.includes(F.type.name));return o.ensureMarks(I),R?!0:c.clearNodes()}).wrapInList(h,r).command(()=>tF(o,h)).command(()=>nF(o,h)).run()},P9t=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,s=Ld(e,r.schema);return X4(r,s,t)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,t)},I9t=(e,t,n={})=>({state:r,commands:i})=>{const o=ri(e,r.schema),s=ri(t,r.schema),a=Oh(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?i.setNode(s,l):i.setNode(o,{...l,...n})},R9t=(e,t={})=>({state:n,commands:r})=>{const i=ri(e,n.schema);return Oh(n,i,t)?r.lift(i):r.wrapIn(i,t)},M9t=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let o;if(i.spec.isInputRules&&(o=i.getState(e))){if(t){const s=e.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},N9t=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},D9t=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=Ld(e,r.schema),{$from:c,empty:u,ranges:d}=a;if(!i)return!0;if(u&&s){let{from:f,to:h}=a;const p=(o=c.marks().find(g=>g.type===l))==null?void 0:o.attrs,m=J8(c,l,p);m&&(f=m.from,h=m.to),n.removeMark(f,h,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},L9t=e=>({tr:t,state:n,dispatch:r})=>{const{selection:i}=n;let o,s;return typeof e=="number"?(o=e,s=e):e&&"from"in e&&"to"in e?(o=e.from,s=e.to):(o=i.from,s=i.to),r&&t.doc.nodesBetween(o,s,(a,l)=>{if(a.isText)return;const c={...a.attrs};delete c.dir,t.setNodeMarkup(l,void 0,c)}),!0},$9t=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null;const a=vD(typeof e=="string"?e:e.name,r.schema);if(!a)return!1;a==="node"&&(o=ri(e,r.schema)),a==="mark"&&(s=Ld(e,r.schema));let l=!1;return n.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;let f,h,p,m;n.selection.empty?r.doc.nodesBetween(u,d,(g,v)=>{o&&o===g.type&&(l=!0,p=Math.max(v,u),m=Math.min(v+g.nodeSize,d),f=v,h=g)}):r.doc.nodesBetween(u,d,(g,v)=>{v<u&&o&&o===g.type&&(l=!0,p=Math.max(v,u),m=Math.min(v+g.nodeSize,d),f=v,h=g),v>=u&&v<=d&&(o&&o===g.type&&(l=!0,i&&n.setNodeMarkup(v,void 0,{...g.attrs,...t})),s&&g.marks.length&&g.marks.forEach(b=>{if(s===b.type&&(l=!0,i)){const w=Math.max(v,u),x=Math.min(v+g.nodeSize,d);n.addMark(w,x,s.create({...b.attrs,...t}))}}))}),h&&(f!==void 0&&i&&n.setNodeMarkup(f,void 0,{...h.attrs,...t}),s&&h.marks.length&&h.marks.forEach(g=>{s===g.type&&i&&n.addMark(p,m,s.create({...g.attrs,...t}))}))}),l},F9t=(e,t={})=>({state:n,dispatch:r})=>{const i=ri(e,n.schema);return u6t(i,t)(n,r)},B9t=(e,t={})=>({state:n,dispatch:r})=>{const i=ri(e,n.schema);return d6t(i,t)(n,r)},j9t=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},xD=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=(t=e.undoable)!=null?t:!0}},z9t=(e,t)=>{if(Q8(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function _C(e){var t;const{editor:n,from:r,to:i,text:o,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(t=c.nodeBefore||c.nodeAfter)!=null&&t.marks.find(f=>f.type.spec.code))return!1;let u=!1;const d=f9t(c)+o;return s.forEach(f=>{if(u)return;const h=z9t(d,f.find);if(!h)return;const p=l.state.tr,m=mD({state:l.state,transaction:p}),g={from:r-(h[0].length-o.length),to:i},{commands:v,chain:b,can:w}=new gD({editor:n,state:m});f.handler({state:m,range:g,match:h,commands:v,chain:b,can:w})===null||!p.steps.length||(f.undoable&&p.setMeta(a,{transform:p,from:r,to:i,text:o}),l.dispatch(p),u=!0)}),u}function U9t(e){const{editor:t,rules:n}=e,r=new Fn({state:{init(){return null},apply(i,o,s){const a=i.getMeta(r);if(a)return a;const l=i.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=t7(de.from(u),s.schema);const{from:d}=l,f=d+u.length;_C({editor:t,from:d,to:f,text:u,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,s,a){return _C({editor:t,from:o,to:s,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&_C({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:s}=i.state.selection;return s?_C({editor:t,from:s.pos,to:s.pos,text:` 1146`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function V9t(e){return Object.prototype.toString.call(e).slice(8,-1)}function kC(e){return V9t(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function nRe(e,t){const n={...e};return kC(e)&&kC(t)&&Object.keys(t).forEach(r=>{kC(t[r])&&kC(e[r])?n[r]=nRe(e[r],t[r]):n[r]=t[r]}),n}var o7=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...ln(Ge(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...ln(Ge(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>nRe(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},np=class rRe extends o7{constructor(){super(...arguments),this.type="mark"}static create(t={}){const n=typeof t=="function"?t():t;return new rRe(n)}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}};function W9t(e){return typeof e=="number"}var H9t=class{constructor(e){this.find=e.find,this.handler=e.handler}},K9t=(e,t,n)=>{if(Q8(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=e,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function q9t(e){const{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:c,can:u}=new gD({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(h,p)=>{var m,g,v,b,w;if((g=(m=h.type)==null?void 0:m.spec)!=null&&g.code||!(h.isText||h.isTextblock||h.isInline))return;const x=(w=(b=(v=h.content)==null?void 0:v.size)!=null?b:h.nodeSize)!=null?w:0,E=Math.max(r,p),S=Math.min(i,p+x);if(E>=S)return;const _=h.isText?h.text||"":h.textBetween(E-p,S-p,void 0,"");K9t(_,o.find,s).forEach(C=>{if(C.index===void 0)return;const T=E+C.index+1,A=T+C[0].length,O={from:n.tr.mapping.map(T),to:n.tr.mapping.map(A)},R=o.handler({state:n,range:O,match:C,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(R)})}),d.every(h=>h!==null)}var CC=null,G9t=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData("text/html",e),n};function Y9t(e){const{editor:t,rules:n}=e;let r=null,i=!1,o=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:f,rule:h,pasteEvt:p})=>{const m=u.tr,g=mD({state:u,transaction:m});if(!(!q9t({editor:t,state:g,from:Math.max(d-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:a})||!m.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(u=>new Fn({view(d){const f=p=>{var m;r=(m=d.dom.parentElement)!=null&&m.contains(p.target)?d.dom.parentElement:null,r&&(CC=t)},h=()=>{CC&&(CC=null)};return window.addEventListener("dragstart",f),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",f),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(d,f)=>{if(o=r===d.dom.parentElement,a=f,!o){const h=CC;h!=null&&h.isEditable&&setTimeout(()=>{const p=h.state.selection;p&&h.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(d,f)=>{var h;const p=(h=f.clipboardData)==null?void 0:h.getData("text/html");return s=f,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,h)=>{const p=d[0],m=p.getMeta("uiEvent")==="paste"&&!i,g=p.getMeta("uiEvent")==="drop"&&!o,v=p.getMeta("applyPasteRules"),b=!!v;if(!m&&!g&&!b)return;if(b){let{text:E}=v;typeof E=="string"?E=E:E=t7(de.from(E),h.schema);const{from:S}=v,_=S+E.length,k=G9t(E);return l({rule:u,state:h,from:S,to:{b:_},pasteEvt:k})}const w=f.doc.content.findDiffStart(h.doc.content),x=f.doc.content.findDiffEnd(h.doc.content);if(!(!W9t(w)||!x||w===x.b))return l({rule:u,state:h,from:w,to:x,pasteEvt:s})}}))}var ED=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=n7(e),this.schema=qIe(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Rw(t.name,this.schema)},r=Ge(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this;return rE([...this.extensions].reverse()).flatMap(r=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:Rw(r.name,this.schema)},o=[],s=Ge(r,"addKeyboardShortcuts",i);let a={};if(r.type==="mark"&&Ge(r,"exitable",i)&&(a.ArrowRight=()=>np.handleExit({editor:e,mark:r})),s){const f=Object.fromEntries(Object.entries(s()).map(([h,p])=>[h,()=>p({editor:e})]));a={...a,...f}}const l=aHt(a);o.push(l);const c=Ge(r,"addInputRules",i);if(oae(r,e.options.enableInputRules)&&c){const f=c();if(f&&f.length){const h=U9t({editor:e,rules:f}),p=Array.isArray(h)?h:[h];o.push(...p)}}const u=Ge(r,"addPasteRules",i);if(oae(r,e.options.enablePasteRules)&&u){const f=u();if(f&&f.length){const h=Y9t({editor:e,rules:f});o.push(...h)}}const d=Ge(r,"addProseMirrorPlugins",i);if(d){const f=d();o.push(...f)}return o})}get attributes(){return KIe(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Tb(this.extensions);return Object.fromEntries(t.filter(n=>!!Ge(n,"addNodeView")).map(n=>{const r=this.attributes.filter(l=>l.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:ri(n.name,this.schema)},o=Ge(n,"addNodeView",i);if(!o)return[];const s=o();if(!s)return[];const a=(l,c,u,d,f)=>{const h=Ab(l,r);return s({node:l,view:c,getPos:u,decorations:d,innerDecorations:f,editor:e,extension:n,HTMLAttributes:h})};return[n.name,a]}))}dispatchTransaction(e){const{editor:t}=this;return rE([...this.extensions].reverse()).reduceRight((r,i)=>{const o={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:t,type:Rw(i.name,this.schema)},s=Ge(i,"dispatchTransaction",o);return s?a=>{s.call(o,{transaction:a,next:r})}:r},e)}transformPastedHTML(e){const{editor:t}=this;return rE([...this.extensions]).reduce((r,i)=>{const o={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:t,type:Rw(i.name,this.schema)},s=Ge(i,"transformPastedHTML",o);return s?(a,l)=>{const c=r(a,l);return s.call(o,c)}:r},e||(r=>r))}get markViews(){const{editor:e}=this,{markExtensions:t}=Tb(this.extensions);return Object.fromEntries(t.filter(n=>!!Ge(n,"addMarkView")).map(n=>{const r=this.attributes.filter(a=>a.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:Ld(n.name,this.schema)},o=Ge(n,"addMarkView",i);if(!o)return[];const s=(a,l,c)=>{const u=Ab(a,r);return o()({mark:a,view:l,inline:c,editor:e,extension:n,HTMLAttributes:u,updateAttributes:d=>{h8t(a,e,d)}})};return[n.name,s]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(t=>[t.name,t.storage])),e.forEach(t=>{var n;const r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Rw(t.name,this.schema)};t.type==="mark"&&((n=ln(Ge(t,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(t.name);const i=Ge(t,"onBeforeCreate",r),o=Ge(t,"onCreate",r),s=Ge(t,"onUpdate",r),a=Ge(t,"onSelectionUpdate",r),l=Ge(t,"onTransaction",r),c=Ge(t,"onFocus",r),u=Ge(t,"onBlur",r),d=Ge(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}};ED.resolve=n7;ED.sort=rE;ED.flatten=bD;var X9t={};Z8(X9t,{ClipboardTextSerializer:()=>oRe,Commands:()=>sRe,Delete:()=>aRe,Drop:()=>lRe,Editable:()=>cRe,FocusEvents:()=>dRe,Keymap:()=>fRe,Paste:()=>hRe,Tabindex:()=>pRe,TextDirection:()=>mRe,focusEventsPluginKey:()=>uRe});var cr=class iRe extends o7{constructor(){super(...arguments),this.type="extension"}static create(t={}){const n=typeof t=="function"?t():t;return new iRe(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},oRe=cr.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Fn({key:new Bn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,s=Math.min(...o.map(u=>u.$from.pos)),a=Math.max(...o.map(u=>u.$to.pos)),l=r7(n);return GIe(r,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),sRe=cr.create({name:"commands",addCommands(){return{...sl}}}),aRe=cr.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,r,i;const o=()=>{var s,a,l,c;if((c=(l=(a=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:a.filterTransaction)==null?void 0:l.call(a,e))!=null?c:e.getMeta("y-sync$"))return;const u=WIe(e.before,[e,...t]);ZIe(u).forEach(h=>{u.mapping.mapResult(h.oldRange.from).deletedAfter&&u.mapping.mapResult(h.oldRange.to).deletedBefore&&u.before.nodesBetween(h.oldRange.from,h.oldRange.to,(p,m)=>{const g=m+p.nodeSize-2,v=h.oldRange.from<=m&&g<=h.oldRange.to;this.editor.emit("delete",{type:"node",node:p,from:m,to:g,newFrom:u.mapping.map(m),newTo:u.mapping.map(g),deletedRange:h.oldRange,newRange:h.newRange,partial:!v,editor:this.editor,transaction:e,combinedTransform:u})})});const f=u.mapping;u.steps.forEach((h,p)=>{var m,g;if(h instanceof kl){const v=f.slice(p).map(h.from,-1),b=f.slice(p).map(h.to),w=f.invert().map(v,-1),x=f.invert().map(b),E=v>0?(m=u.doc.nodeAt(v-1))==null?void 0:m.marks.some(_=>_.eq(h.mark)):!1,S=(g=u.doc.nodeAt(b))==null?void 0:g.marks.some(_=>_.eq(h.mark));this.editor.emit("delete",{type:"mark",mark:h.mark,from:h.from,to:h.to,deletedRange:{from:w,to:x},newRange:{from:v,to:b},partial:!!(S||E),editor:this.editor,transaction:e,combinedTransform:u})}})};(i=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||i?setTimeout(o,0):o()}}),lRe=cr.create({name:"drop",addProseMirrorPlugins(){return[new Fn({key:new Bn("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),cRe=cr.create({name:"editable",addProseMirrorPlugins(){return[new Fn({key:new Bn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),uRe=new Bn("focusEvents"),dRe=cr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Fn({key:uRe,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),fRe=cr.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:f,parent:h}=d,p=d.parent.isTextblock&&f>0?a.doc.resolve(f-1):d,m=p.parent.type.spec.isolating,g=d.pos-d.parentOffset,v=m&&p.parent.childCount===1?g===d.pos:ut.atStart(c).from===f;return!u||!h.type.isTextblock||h.textContent.length||!v||v&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return F1()||UIe()?o:i},addProseMirrorPlugins(){return[new Fn({key:new Bn("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(m=>m.getMeta("composition")))return;const r=e.some(m=>m.docChanged)&&!t.doc.eq(n.doc),i=e.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:s,to:a}=t.selection,l=ut.atStart(t.doc).from,c=ut.atEnd(t.doc).to;if(o||!(s===l&&a===c)||!wD(n.doc))return;const f=n.tr,h=mD({state:n,transaction:f}),{commands:p}=new gD({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),hRe=cr.create({name:"paste",addProseMirrorPlugins(){return[new Fn({key:new Bn("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),pRe=cr.create({name:"tabindex",addProseMirrorPlugins(){return[new Fn({key:new Bn("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),mRe=cr.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=Tb(this.extensions);return[{types:e.filter(t=>t.name!=="text").map(t=>t.name),attributes:{dir:{default:this.options.direction,parseHTML:t=>{const n=t.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:t=>t.dir?{dir:t.dir}:{}}}}]},addProseMirrorPlugins(){return[new Fn({key:new Bn("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),Z9t=class mx{constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!=null?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new mx(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new mx(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new mx(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,s=n.isInline,a=this.pos+r+(o?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!i&&!s&&l.depth<=this.depth)return;const c=new mx(l,this.editor,i,i||s?n:null);i&&(c.actualDepth=this.depth+1),t.push(c)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const o=i.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(o[l]!==n[l])break}}else r=i;i=i.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const o=Object.keys(n);return this.children.forEach(s=>{r&&i.length>0||(s.node.type.name===t&&o.every(l=>n[l]===s.node.attrs[l])&&i.push(s),!(r&&i.length>0)&&(i=i.concat(s.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}},Q9t=`.ProseMirror { 1147 position: relative; 1148} 1149 1150.ProseMirror { 1151 word-wrap: break-word; 1152 white-space: pre-wrap; 1153 white-space: break-spaces; 1154 -webkit-font-variant-ligatures: none; 1155 font-variant-ligatures: none; 1156 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 1157} 1158 1159.ProseMirror [contenteditable="false"] { 1160 white-space: normal; 1161} 1162 1163.ProseMirror [contenteditable="false"] [contenteditable="true"] { 1164 white-space: pre-wrap; 1165} 1166 1167.ProseMirror pre { 1168 white-space: pre-wrap; 1169} 1170 1171img.ProseMirror-separator { 1172 display: inline !important; 1173 border: none !important; 1174 margin: 0 !important; 1175 width: 0 !important; 1176 height: 0 !important; 1177} 1178 1179.ProseMirror-gapcursor { 1180 display: none; 1181 pointer-events: none; 1182 position: absolute; 1183 margin: 0; 1184} 1185 1186.ProseMirror-gapcursor:after {
1187 content: ""; 1188 display: block; 1189 position: absolute; 1190 top: -2px; 1191 width: 20px; 1192 border-top: 1px solid black; 1193 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 1194} 1195 1196@keyframes ProseMirror-cursor-blink { 1197 to { 1198 visibility: hidden; 1199 } 1200} 1201 1202.ProseMirror-hideselection *::selection { 1203 background: transparent; 1204} 1205 1206.ProseMirror-hideselection *::-moz-selection { 1207 background: transparent; 1208} 1209 1210.ProseMirror-hideselection * { 1211 caret-color: transparent; 1212} 1213 1214.ProseMirror-focused .ProseMirror-gapcursor { 1215 display: block; 1216}`;function J9t(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}var e8t=class extends j9t{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:g9t,createMappablePosition:v9t},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:i,moved:o})=>this.options.onDrop(r,i,o)),this.on("paste",({event:r,slice:i})=>this.options.onPaste(r,i)),this.on("delete",this.options.onDelete);const t=this.createDoc(),n=jIe(t,this.options.autofocus);this.editorState=Wv.create({doc:t,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e!=null&&e.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=J9t(Q9t,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}
vendor: 8,568 bytes, lines 1216-1218
1216),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t==="state")return this.editorState;if(t in e)return Reflect.get(e,t);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){const n=HIe(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(i=>{const o=typeof i=="string"?`${i}$`:i.key;n=n.filter(s=>!s.key.startsWith(o))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const r=[...this.options.enableCoreExtensions?[cRe,oRe.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:t.blockSeparator}),sRe,dRe,fRe,pRe,lRe,hRe,aRe,mRe.configure({direction:this.options.textDirection})].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new ED(r,this)}createCommandManager(){this.commandManager=new gD({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Y4(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),e=Y4(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,o=t.transformPastedHTML,s=this.extensionManager.transformPastedHTML(o);this.editorView=new FIe(e,{...t,attributes:{role:"textbox",...t==null?void 0:t.attributes},dispatchTransaction:i,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();const l=this.view.dom;l.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(c=>{var u;return(u=this.capturedTransaction)==null?void 0:u.step(c)});return}const{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),o=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const s=n.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),a=s==null?void 0:s.getMeta("focus"),l=s==null?void 0:s.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),!(e.getMeta("preventUpdate")||!n.some(c=>c.docChanged)||o.doc.eq(t.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return XIe(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return h9t(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return t7(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` 1217 1218`,textSerializers:n={}}=e||{};return YIe(this.state.doc,{blockSeparator:t,textSerializers:{...r7(this.schema),...n}})}get isEmpty(){return wD(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,t;return(t=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?t:!0}$node(e,t){var n;return((n=this.$doc)==null?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Z9t(t,this)}get $doc(){return this.$pos(0)}};function lg(e){return new xD({find:e.find,handler:({state:t,range:n,match:r})=>{const i=ln(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=t,s=r[r.length-1],a=r[0];if(s){const l=a.search(/\S/),c=n.from+a.indexOf(s),u=c+s.length;if(i7(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(m=>m===e.type&&m!==h.mark.type)).filter(h=>h.to>c).length)return null;u<n.to&&o.delete(u,n.to),c>n.from&&o.delete(n.from+l,c);const f=n.from+l+s.length;o.addMark(n.from+l,f,e.type.create(i||{})),o.removeStoredMark(e.type)}},undoable:e.undoable})}function t8t(e){return new xD({find:e.find,handler:({state:t,range:n,match:r})=>{const i=ln(e.getAttributes,void 0,r)||{},{tr:o}=t,s=n.from;let a=n.to;const l=e.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=s+c;u>a?u=a:a=u+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,s+r[0].length-1),o.replaceWith(u,a,l)}else if(r[0]){const c=e.type.isInline?s:s-1;o.insert(c,e.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a))}o.scrollIntoView()},undoable:e.undoable})}function Z4(e){return new xD({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),o=ln(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)},undoable:e.undoable})}function Ob(e){return new xD({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const o=ln(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&N8(l,e.type,o);if(!c)return null;if(s.wrap(l,c),e.keepMarks&&e.editor){const{selection:d,storedMarks:f}=t,{splittableMarks:h}=e.editor.extensionManager,p=f||d.$to.parentOffset&&d.$from.marks();if(p){const m=p.filter(g=>h.includes(g.type.name));s.ensureMarks(m)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,o).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&ep(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&s.join(n.from-1)},undoable:e.undoable})}function n8t(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof rt){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let i=r.depth;for(;i>=0;){const o=r.index(i);if(r.node(i).contentMatchAt(o).matchType(t))return!0;i-=1}return!1}function r8t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function aae(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function i8t(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var o8t={};Z8(o8t,{createAtomBlockMarkdownSpec:()=>s8t,createBlockMarkdownSpec:()=>a8t,createInlineMarkdownSpec:()=>u8t,parseAttributes:()=>s7,parseIndentedBlocks:()=>Q4,renderNestedMarkdownContent:()=>l7,serializeAttributes:()=>a7});function s7(e){if(!(e!=null&&e.trim()))return{};const t={},n=[],r=e.replace(/["']([^"']*)["']/g,c=>(n.push(c),`__QUOTED_${n.length-1}
1218__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(i){const c=i.map(u=>u.trim().slice(1));t.class=c.join(" ")}const o=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);o&&(t.id=o[1]);const s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,c,u])=>{var d;const f=parseInt(((d=u.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),h=n[f];h&&(t[c]=h.slice(1,-1))});const l=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(t[u]=!0)}),t}function a7(e){if(!e||Object.keys(e).length===0)return"";const t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(r=>t.push(`.${r}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?t.push(n):r!==!1&&r!=null&&t.push(`${n}="${String(r)}"`))}),t.join(" ")}function s8t(e){const{nodeName:t,name:n,parseAttributes:r=s7,serializeAttributes:i=a7,defaultAttributes:o={},requiredAttributes:s=[],allowedAttributes:a}=e,l=n||t,c=u=>{if(!a)return u;const d={};return a.forEach(f=>{f in u&&(d[f]=u[f])}),d};return{parseMarkdown:(u,d)=>{const f={...o,...u.attributes};return d.createNode(t,f,[])},markdownTokenizer:{name:t,level:"block",start(u){var d;const f=new RegExp(`^:::${l}(?:\\s|$)`,"m"),h=(d=u.match(f))==null?void 0:d.index;return h!==void 0?h:-1},tokenize(u,d,f){const h=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),p=u.match(h);if(!p)return;const m=p[1]||"",g=r(m);if(!s.find(b=>!(b in g)))return{type:t,raw:p[0],attributes:g}}},renderMarkdown:u=>{const d=c(u.attrs||{}),f=i(d),h=f?` {${f}}`:"";return`:::${l}${h} :::`}}}function a8t(e){const{nodeName:t,name:n,getContent:r,parseAttributes:i=s7,serializeAttributes:o=a7,defaultAttributes:s={},content:a="block",allowedAttributes:l}=e,c=n||t,u=d=>{if(!l)return d;const f={};return l.forEach(h=>{h in d&&(f[h]=d[h])}),f};return{parseMarkdown:(d,f)=>{let h;if(r){const m=r(d);h=typeof m=="string"?[{type:"text",text:m}]:m}else a==="block"?h=f.parseChildren(d.tokens||[]):h=f.parseInline(d.tokens||[]);const p={...s,...d.attributes};return f.createNode(t,p,h)},markdownTokenizer:{name:t,level:"block",start(d){var f;const h=new RegExp(`^:::${c}`,"m"),p=(f=d.match(h))==null?void 0:f.index;return p!==void 0?p:-1},tokenize(d,f,h){var p;const m=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),g=d.match(m);if(!g)return;const[v,b=""]=g,w=i(b);let x=1;const E=v.length;let S="";const _=/^:::([\w-]*)(\s.*)?/gm,k=d.slice(E);for(_.lastIndex=0;;){const C=_.exec(k);if(C===null)break;const T=C.index,A=C[1];if(!((p=C[2])!=null&&p.endsWith(":::"))){if(A)x+=1;else if(x-=1,x===0){const O=k.slice(0,T);S=O.trim();const R=d.slice(0,E+T+C[0].length);let I=[];if(S)if(a==="block")for(I=h.blockTokens(O),I.forEach(F=>{F.text&&(!F.tokens||F.tokens.length===0)&&(F.tokens=h.inlineTokens(F.text))});I.length>0;){const F=I[I.length-1];if(F.type==="paragraph"&&(!F.text||F.text.trim()===""))I.pop();else break}else I=h.inlineTokens(S);return{type:t,raw:R,attributes:w,content:S,tokens:I}}}}}},renderMarkdown:(d,f)=>{const h=u(d.attrs||{}),p=o(h),m=p?` {${p}}`:"",g=f.renderChildren(d.content||[],` 1219 1220`);return`:::${c}${m} 1221 1222${g} 1223 1224:::`}}}function l8t(e){if(!e.trim())return{};const t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(e);for(;r!==null;){const[,i,o,s]=r;t[i]=o||s,r=n.exec(e)}return t}function c8t(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}="${n}"`).join(" ")}function u8t(e){const{nodeName:t,name:n,getContent:r,parseAttributes:i=l8t,serializeAttributes:o=c8t,defaultAttributes:s={},selfClosing:a=!1,allowedAttributes:l}=e,c=n||t,u=f=>{if(!l)return f;const h={};return l.forEach(p=>{const m=typeof p=="string"?p:p.name,g=typeof p=="string"?void 0:p.skipIfDefault;if(m in f){const v=f[m];if(g!==void 0&&v===g)return;h[m]=v}}),h},d=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(f,h)=>{const p={...s,...f.attributes};if(a)return h.createNode(t,p);const m=r?r(f):f.content||"";return m?h.createNode(t,p,[h.createTextNode(m)]):h.createNode(t,p,[])},markdownTokenizer:{name:t,level:"inline",start(f){const h=a?new RegExp(`\\[${d}\\s*[^\\]]*\\]`):new RegExp(`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`),p=f.match(h),m=p==null?void 0:p.index;return m!==void 0?m:-1},tokenize(f,h,p){const m=a?new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`),g=f.match(m);if(!g)return;let v="",b="";if(a){const[,x]=g;b=x}else{const[,x,E]=g;b=x,v=E||""}const w=i(b.trim());return{type:t,raw:g[0],content:v.trim(),attributes:w}}},renderMarkdown:f=>{let h="";r?h=r(f):f.content&&f.content.length>0&&(h=f.content.filter(v=>v.type==="text").map(v=>v.text).join(""));const p=u(f.attrs||{}),m=o(p),g=m?` ${m}`:"";return a?`[${c}${g}]`:`[${c}${g}]${h}[/${c}]`}}}function Q4(e,t,n){var r,i,o,s;const a=e.split(` 1225`),l=[];let c="",u=0;const d=t.baseIndentSize||2;for(;u<a.length;){const f=a[u],h=f.match(t.itemPattern);if(!h){if(l.length>0)break;if(f.trim()===""){u+=1,c=`${c}${f} 1226`;continue}else return}const p=t.extractItemData(h),{indentLevel:m,mainContent:g}=p;c=`${c}${f} 1227`;const v=[g];for(u+=1;u<a.length;){const E=a[u];if(E.trim()===""){const _=a.slice(u+1).findIndex(T=>T.trim()!=="");if(_===-1)break;if((((i=(r=a[u+1+_].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:i.length)||0)>m){v.push(E),c=`${c}${E} 1228`,u+=1;continue}else break}if((((s=(o=E.match(/^(\s*)/))==null?void 0:o[1])==null?void 0:s.length)||0)>m)v.push(E),c=`${c}${E} 1229`,u+=1;else break}let b;const w=v.slice(1);if(w.length>0){const E=w.map(S=>S.slice(m+d)).join(` 1230`);E.trim()&&(t.customNestedParser?b=t.customNestedParser(E):b=n.blockTokens(E))}const x=t.createToken(p,b);l.push(x)}if(l.length!==0)return{items:l,raw:c}}function l7(e,t,n,r){if(!e||!Array.isArray(e.content))return"";const i=typeof n=="function"?n(r):n,[o,...s]=e.content,a=t.renderChildren([o]);let l=`${i}${a}`;return s&&s.length>
12300&&s.forEach((c,u)=>{var d,f;const h=(f=(d=t.renderChild)==null?void 0:d.call(t,c,u+1))!=null?f:t.renderChildren([c]);if(h!=null){const p=h.split(` 1231`).map(m=>m?t.indent(m):t.indent("")).join(` 1232`);l+=c.type==="paragraph"?` 1233 1234${p}`:` 1235${p}`}}),l}var fI=new WeakMap;function d8t(e,t){let n=fI.get(e);if(!n){const r={callbacks:new Set,rafId:null,handler:()=>{r.rafId!==null&&cancelAnimationFrame(r.rafId),r.rafId=requestAnimationFrame(()=>{r.rafId=null,r.callbacks.forEach(i=>i())})}};fI.set(e,r),e.on("update",r.handler),n=r}n.callbacks.add(t)}function f8t(e,t){const n=fI.get(e);n&&(n.callbacks.delete(t),n.callbacks.size===0&&(n.rafId!==null&&cancelAnimationFrame(n.rafId),e.off("update",n.handler),fI.delete(e)))}function h8t(e,t,n={}){const{state:r}=t,{doc:i,tr:o}=r,s=e;i.descendants((a,l)=>{const c=o.mapping.map(l),u=o.mapping.map(l)+a.nodeSize;let d=null;if(a.marks.forEach(h=>{if(h!==s)return!1;d=h}),!d)return;let f=!1;if(Object.keys(n).forEach(h=>{n[h]!==d.attrs[h]&&(f=!0)}),f){const h=e.type.create({...e.attrs,...n});o.removeMark(c,u,e.type),o.addMark(c,u,h)}}),o.docChanged&&t.view.dispatch(o)}var aa=class gRe extends o7{constructor(){super(...arguments),this.type="node"}static create(t={}){const n=typeof t=="function"?t():t;return new gRe(n)}configure(t){return super.configure(t)}extend(t){const n=typeof t=="function"?t():t;return super.extend(n)}},p8t=class{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.innerDecorations=t.innerDecorations,this.view=t.view,this.HTMLAttributes=t.HTMLAttributes,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,r,i,o,s,a;const{view:l}=this.editor,c=e.target,u=c.nodeType===3?(t=c.parentElement)==null?void 0:t.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(c)||!u)return;let d=0,f=0;if(this.dom!==u){const b=this.dom.getBoundingClientRect(),w=u.getBoundingClientRect(),x=(i=e.offsetX)!=null?i:(r=e.nativeEvent)==null?void 0:r.offsetX,E=(s=e.offsetY)!=null?s:(o=e.nativeEvent)==null?void 0:o.offsetY;d=w.x-b.x+x,f=w.y-b.y+E}const h=this.dom.cloneNode(!0);try{const b=this.dom.getBoundingClientRect();h.style.width=`${Math.round(b.width)}px`,h.style.height=`${Math.round(b.height)}px`,h.style.boxSizing="border-box",h.style.pointerEvents="none"}catch{}let p=null;try{p=document.createElement("div"),p.style.position="absolute",p.style.top="-9999px",p.style.left="-9999px",p.style.pointerEvents="none",p.appendChild(h),document.body.appendChild(p),(a=e.dataTransfer)==null||a.setDragImage(h,d,f)}finally{p&&setTimeout(()=>{try{p==null||p.remove()}catch{}},0)}const m=this.getPos();if(typeof m!="number")return;const g=rt.create(l.state.doc,m),v=l.state.tr.setSelection(g);l.dispatch(v)}stopEvent(e){var t;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const n=e.target;if(!(this.dom.contains(n)&&!((t=this.contentDOM)!=null&&t.contains(n))))return!1;const i=e.type.startsWith("drag"),o=e.type==="dragover"||e.type==="dragenter",s=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!s&&!i)return!0;const{isEditable:l}=this.editor,{isDragging:c}=this,u=!!this.node.type.spec.draggable,d=rt.isSelectable(this.node),f=e.type==="copy",h=e.type==="paste",p=e.type==="cut",m=e.type==="mousedown";if(!u&&d&&i&&e.target===this.dom&&e.preventDefault(),u&&i&&!c&&e.target===this.dom)return e.preventDefault(),!1;if(u&&l&&!c&&m){const g=n.closest("[data-drag-handle]");g&&(this.dom===g||this.dom.contains(g))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||o||s||f||h||p||m&&d)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(F1()||G4())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes
1235)].every(n=>n.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const n=this.getPos();return typeof n!="number"?!1:(t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}};function Ph(e){return new H9t({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const o=ln(e.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=t,a=r[r.length-1],l=r[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),f=d+a.length;if(i7(n.from,n.to,t.doc).filter(m=>m.mark.type.excluded.find(v=>v===e.type&&v!==m.mark.type)).filter(m=>m.to>d).length)return null;f<n.to&&s.delete(f,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,e.type.create(o||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||s.removeStoredMark(e.type)}}})}const{getOwnPropertyNames:m8t,getOwnPropertySymbols:g8t}=Object,{hasOwnProperty:v8t}=Object.prototype;function rF(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function TC(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,s=o.get(n),a=o.get(r);if(s&&a)return s===r&&a===n;o.set(n,r),o.set(r,n);const l=e(n,r,i);return o.delete(n),o.delete(r),l}}function y8t(e){return e!=null?e[Symbol.toStringTag]:void 0}function lae(e){return m8t(e).concat(g8t(e))}const b8t=Object.hasOwn||((e,t)=>v8t.call(e,t));function Dg(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const w8t="__v",x8t="__o",E8t="_owner",{getOwnPropertyDescriptor:cae,keys:uae}=Object;function S8t(e,t){return e.byteLength===t.byteLength&&hI(new Uint8Array(e),new Uint8Array(t))}function _8t(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function k8t(e,t){return e.byteLength===t.byteLength&&hI(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function C8t(e,t){return Dg(e.getTime(),t.getTime())}function T8t(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function A8t(e,t){return e===t}function dae(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let s,a,l=0;for(;(s=o.next())&&!s.done;){const c=t.entries();let u=!1,d=0;for(;(a=c.next())&&!a.done;){if(i[d]){d++;continue}const f=s.value,h=a.value;if(n.equals(f[0],h[0],l,d,e,t,n)&&n.equals(f[1],h[1],f[0],h[0],e,t,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}const O8t=Dg;function P8t(e,t,n){const r=uae(e);let i=r.length;if(uae(t).length!==i)return!1;for(;i-- >0;)if(!vRe(e,t,n,r[i]))return!1;return!0}function Mw(e,t,n){const r=lae(e);let i=r.length;if(lae(t).length!==i)return!1;let o,s,a;for(;i-- >0;)if(o=r[i],!vRe(e,t,n,o)||(s=cae(e,o),a=cae(t,o),(s||a)&&(!s||!a||s.configurable!==a.configurable||s.enumerable!==a.enumerable||s.writable!==a.writable)))return!1;return!0}function I8t(e,t){return Dg(e.valueOf(),t.valueOf())}function R8t(e,t){return e.source===t.source&&e.flags===t.flags}function fae(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let s,a;for(;(s=o.next())&&!s.done;){const l=t.values();let c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(s.value,a.value,s.value,a.value,e,t,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function hI(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function M8t(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function vRe(e,t,n,r){return(r===E8t||r===x8t||r===w8t)&&(e.$$typeof||t.$$typeof)?!0:b8t(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const N8t="[object ArrayBuffer]",D8t="[object Arguments]",L8t="[object Boolean]",$8t="[object DataView]",F8t="[object Date]",B8t="[object Error]",j8t="[object Map]",z8t="[object Number]",U8t="[object Object]",V8t="[object RegExp]",W8t="[object Set]",H8t="[object String]",K8t={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
1235]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},q8t="[object URL]",G8t=Object.prototype.toString;function Y8t({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:h,unknownTagComparators:p}){return function(g,v,b){if(g===v)return!0;if(g==null||v==null)return!1;const w=typeof g;if(w!==typeof v)return!1;if(w!=="object")return w==="number"?a(g,v,b):w==="function"?o(g,v,b):!1;const x=g.constructor;if(x!==v.constructor)return!1;if(x===Object)return l(g,v,b);if(Array.isArray(g))return t(g,v,b);if(x===Date)return r(g,v,b);if(x===RegExp)return u(g,v,b);if(x===Map)return s(g,v,b);if(x===Set)return d(g,v,b);const E=G8t.call(g);if(E===F8t)return r(g,v,b);if(E===V8t)return u(g,v,b);if(E===j8t)return s(g,v,b);if(E===W8t)return d(g,v,b);if(E===U8t)return typeof g.then!="function"&&typeof v.then!="function"&&l(g,v,b);if(E===q8t)return h(g,v,b);if(E===B8t)return i(g,v,b);if(E===D8t)return l(g,v,b);if(K8t[E])return f(g,v,b);if(E===N8t)return e(g,v,b);if(E===$8t)return n(g,v,b);if(E===L8t||E===z8t||E===H8t)return c(g,v,b);if(p){let S=p[E];if(!S){const _=y8t(g);_&&(S=p[_])}if(S)return S(g,v,b)}return!1}}function X8t({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:S8t,areArraysEqual:n?Mw:_8t,areDataViewsEqual:k8t,areDatesEqual:C8t,areErrorsEqual:T8t,areFunctionsEqual:A8t,areMapsEqual:n?rF(dae,Mw):dae,areNumbersEqual:O8t,areObjectsEqual:n?Mw:P8t,arePrimitiveWrappersEqual:I8t,areRegExpsEqual:R8t,areSetsEqual:n?rF(fae,Mw):fae,areTypedArraysEqual:n?rF(hI,Mw):hI,areUrlsEqual:M8t,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=TC(r.areArraysEqual),o=TC(r.areMapsEqual),s=TC(r.areObjectsEqual),a=TC(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:a})}return r}function Z8t(e){return function(t,n,r,i,o,s,a){return e(t,n,a)}}function Q8t({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:c=e?new WeakMap:void 0,meta:u}=n();return t(a,l,{cache:c,equals:r,meta:u,strict:i})};if(e)return function(a,l){return t(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(a,l){return t(a,l,o)}}const J8t=rp();rp({strict:!0});rp({circular:!0});rp({circular:!0,strict:!0});rp({createInternalComparator:()=>Dg});rp({strict:!0,createInternalComparator:()=>Dg});rp({circular:!0,createInternalComparator:()=>Dg});rp({circular:!0,createInternalComparator:()=>Dg,strict:!0});function rp(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=X8t(e),s=Y8t(o),a=n?n(s):Z8t(s);return Q8t({circular:t,comparator:s,createState:r,equals:a,strict:i})}var e7t=(...e)=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n&&(n.current=t)})},t7t=({contentComponent:e})=>{const t=EM.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return D.jsx(D.Fragment,{children:Object.values(t)})};function n7t(){const e=new Set;let t={};return{subscribe(n){return e.add(n),()=>{e.delete(n)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:Zv.createPortal(r.reactElement,r.element,n)},e.forEach(i=>i())},removeRenderer(n){const r={...t};delete r[n],t=r,e.forEach(i=>i())}}}var r7t=class extends $.Component{constructor(e){super(e),this.editorContentRef=$.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;const t=this.props.editor;if(t&&!t.isDestroyed&&((e=t.view.dom)!=null&&e.parentNode)){if(t.contentComponent)return;const n=this.editorContentRef.current;n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n}),t.contentComponent=n7t(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;const t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!((e=t.view.dom)!=null&&e.parentNode))return;const n=document.createElement("div");n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n})}catch{}}}render(){const{editor:e,innerRef:t,...n}=this.props;return D.jsxs(D.Fragment,{children:[D.jsx("div",{ref:e7t(t,this.editorContentRef),...n}),(e==null?void 0:e.contentComponent)&&D.jsx(t7t,{contentComponent:e.contentComponent})]})}},i7t=y.forwardRef((e,t)=>
1235{const n=$.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return $.createElement(r7t,{key:n,innerRef:t,...e})}),o7t=$.memo(i7t),s7t=typeof window<"u"?y.useLayoutEffect:y.useEffect,a7t=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",t),()=>{n.off("transaction",t)}}}};function l7t(e){var t;const[n]=y.useState(()=>new a7t(e.editor)),r=twe.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,(t=e.equalityFn)!=null?t:J8t);return s7t(()=>n.watch(e.editor),[e.editor,n]),y.useDebugValue(r),r}var c7t=!1,J4=typeof window>"u",u7t=J4||!!(typeof window<"u"&&window.next),d7t=class yRe{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?J4||u7t?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const t={...this.options.current,onBeforeCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onBeforeCreate)==null?void 0:o.call(i,...r)},onBlur:(...r)=>{var i,o;return(o=(i=this.options.current).onBlur)==null?void 0:o.call(i,...r)},onCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onCreate)==null?void 0:o.call(i,...r)},onDestroy:(...r)=>{var i,o;return(o=(i=this.options.current).onDestroy)==null?void 0:o.call(i,...r)},onFocus:(...r)=>{var i,o;return(o=(i=this.options.current).onFocus)==null?void 0:o.call(i,...r)},onSelectionUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onSelectionUpdate)==null?void 0:o.call(i,...r)},onTransaction:(...r)=>{var i,o;return(o=(i=this.options.current).onTransaction)==null?void 0:o.call(i,...r)},onUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onUpdate)==null?void 0:o.call(i,...r)},onContentError:(...r)=>{var i,o;return(o=(i=this.options.current).onContentError)==null?void 0:o.call(i,...r)},onDrop:(...r)=>{var i,o;return(o=(i=this.options.current).onDrop)==null?void 0:o.call(i,...r)},onPaste:(...r)=>{var i,o;return(o=(i=this.options.current).onPaste)==null?void 0:o.call(i,...r)},onDelete:(...r)=>{var i,o;return(o=(i=this.options.current).onDelete)==null?void 0:o.call(i,...r)}};return new e8t(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,n){return Object.keys(t).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&t.extensions&&n.extensions?t.extensions.length!==n.extensions.length?!1:t.extensions.every((i,o)=>{var s;return i===((s=n.extensions)==null?void 0:s[o])}):t[r]===n[r])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?yRe.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){
1235if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((r,i)=>r===t[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===t&&this.setEditor(null))},1)}};function _in(e={},t=[]){const n=y.useRef(e);n.current=e;const[r]=y.useState(()=>new d7t(n)),i=EM.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return y.useDebugValue(i),y.useEffect(r.onRender(t)),l7t({editor:i,selector:({transactionNumber:o})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&o===0?0:o+1}),i}var c7=y.createContext({editor:null});c7.Consumer;var bRe=()=>y.useContext(c7),wRe=y.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),f7t=()=>y.useContext(wRe),kin=$.forwardRef((e,t)=>{const{onDragStart:n}=f7t(),r=e.as||"div";return D.jsx(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});function hae(e){return!!(typeof e=="function"&&e.prototype&&e.prototype.isReactComponent)}function pae(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.forward_ref)"||e.$$typeof.description==="react.forward_ref"))}function h7t(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.memo)"||e.$$typeof.description==="react.memo"))}function p7t(e){if(hae(e)||pae(e))return!0;if(h7t(e)){const t=e.type;if(t)return hae(t)||pae(t)}return!1}function m7t(){try{if(y.version)return parseInt(y.version.split(".")[0],10)>=19}catch{}return!1}var g7t=class{constructor(e,{editor:t,props:n={},as:r="div",className:i=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isEditorContentInitialized?pr.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;const t=this.component,n=this.props,r=this.editor,i=m7t(),o=p7t(t),s={...n};s.ref&&!(i||o)&&delete s.ref,!s.ref&&(i||o)&&(s.ref=a=>{this.ref=a}),this.reactElement=D.jsx(t,{...s}),(e=r==null?void 0:r.contentComponent)==null||e.setRenderer(this.id,this)}updateProps(e={}){this.destroyed||(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0;const t=this.editor;(e=t==null?void 0:t.contentComponent)==null||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};$.createContext({markViewContentRef:()=>{}});var v7t=class extends p8t{constructor(e,t,n){if(super(e,t,n),this.selectionRafId=null,this.positionCheckCallback=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const r=this.dom.querySelector("[data-node-view-content]");if(!r)return;r.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const e=this.editor,t=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(t,{get(n,r,i){var o;return r==="storage"?(o=e.storage[t.name])!=null?o:{}:Reflect.get(n,r,i)}})}return this.cachedExtensionWithSyncedStorage}mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:y.createRef()};if(!this.component.displayName){const l=c=>c.charAt(0).toUpperCase()+c.substring(1);this.component.displayName=l(this.extension.name)}const r={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},i=this.component,o=y.memo(l=>D.jsx(wRe.Provider,{value:r,children:y.createElement(i,l)}));o.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:a=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new g7t(o,{editor:this.editor,props:e,as:s,className:`node-${this.node.type.n
1235ame} ${a}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes(),this.currentPos=this.getPos(),this.positionCheckCallback=()=>{const l=this.getPos();typeof l!="number"||l===this.currentPos||(this.currentPos=l,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs=="function"&&this.updateElementAttributes())},d8t(this.editor,this.positionCheckCallback)}get dom(){var e;if(this.renderer.element.firstElementChild&&!((e=this.renderer.element.firstElementChild)!=null&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const{from:e,to:t}=this.editor.state.selection,n=this.currentPos;if(typeof n=="number")if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,n){const r=o=>{this.renderer.updateProps(o),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const o=this.node,s=this.decorations,a=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.currentPos=this.getPos(),this.options.update({oldNode:o,oldDecorations:s,newNode:e,newDecorations:t,oldInnerDecorations:a,innerDecorations:n,updateProps:()=>r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}const i=this.getPos();return e===this.node&&this.decorations===t&&this.innerDecorations===n?(i===this.currentPos||(this.currentPos=i,r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage,getPos:()=>this.getPos()})),!0):(this.node=e,this.decorations=t,this.innerDecorations=n,this.currentPos=i,r({node:e,decorations:t,innerDecorations:n,extension:this.extensionWithSyncedStorage}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.positionCheckCallback&&(f8t(this.editor,this.positionCheckCallback),this.positionCheckCallback=null),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const t=this.editor.extensionManager.attributes,n=Ab(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function Cin(e,t){return n=>n.editor.contentComponent?new v7t(e,n,t):{}}var u7=y.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});u7.displayName="TiptapContext";var y7t=()=>y.useContext(u7);function xRe({editor:e,instance:t,children:n}){const r=e??t;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const i=y.useMemo(()=>({editor:r}),[r]),o=y.useMemo(()=>({editor:r}),[r]);return D.jsx(c7.Provider,{value:o,children:D.jsx(u7.Provider,{value:i,children:n})})}xRe.displayName="Tiptap";function ERe({...e}){const{editor:t}=y7t();return D.jsx(o7t,{editor:t,...e})}ERe.displayName="Tiptap.Content";Object.assign(xRe,{Content:ERe});let eU,tU;if(typeof WeakMap<"u"){let e=new WeakMap;eU=t=>e.get(t),tU=(t,n)=>(e.set(t,n),n)}else{const e=[];let n=0;eU=r=>{for(let i=0;i<e.length;i+=2)if(e[i]==r)return e[i+1]},tU=(r,i)=>(n==10&&(n=0),e[n++]=r,e[n++]=i)}var Bu=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,i=t/this.width|0;let o=r+1,s=i+1;for(let a=1;o<this.width&&this.map[t+a]==n;a++)o++;for(let a=1;s<this.height&&this.map[t+this.width*a]==n;a++)s++;return{left:r,top:i,right:o,bottom:s}}throw new RangeError(`No cell with offset ${e}
1235 found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:i,top:o,bottom:s}=this.findCell(e);return t=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){const{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){const o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,!(i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s)&&t.push(s))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==e){let s=t+e*this.width;const a=(e+1)*this.width;for(;s<a&&this.map[s]<i;)s++;return s==a?o-1:this.map[s]}i=o}}static get(e){return eU(e)||tU(e,b7t(e))}};function b7t(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=w7t(e),n=e.childCount,r=[];let i=0,o=null;const s=[];for(let c=0,u=t*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const d=e.child(c);u++;for(let p=0;;p++){for(;i<r.length&&r[i]!=0;)i++;if(p==d.childCount)break;const m=d.child(p),{colspan:g,rowspan:v,colwidth:b}=m.attrs;for(let w=0;w<v;w++){if(w+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:v-w});break}const x=i+w*t;for(let E=0;E<g;E++){r[x+E]==0?r[x+E]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:g-E});const S=b&&b[E];if(S){const _=(x+E)%t*2,k=s[_];k==null||k!=S&&s[_+1]==1?(s[_]=S,s[_+1]=1):k==S&&s[_+1]++}}}i+=g,u+=m.nodeSize}const f=(c+1)*t;let h=0;for(;i<f;)r[i++]==0&&h++;h&&(o||(o=[])).push({type:"missing",row:c,n:h}),u++}(t===0||n===0)&&(o||(o=[])).push({type:"zero_sized"});const a=new Bu(t,n,r,o);let l=!1;for(let c=0;!l&&c<s.length;c+=2)s[c]!=null&&s[c+1]<n&&(l=!0);return l&&x7t(a,s,e),a}function w7t(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const i=e.child(r);let o=0;if(n)for(let s=0;s<r;s++){const a=e.child(s);for(let l=0;l<a.childCount;l++){const c=a.child(l);s+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let s=0;s<i.childCount;s++){const a=i.child(s);o+=a.attrs.colspan,a.attrs.rowspan>1&&(n=!0)}t==-1?t=o:t!=o&&(t=Math.max(t,o))}return t}function x7t(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i<e.map.length;i++){const o=e.map[i];if(r[o])continue;r[o]=!0;const s=n.nodeAt(o);if(!s)throw new RangeError(`No cell with offset ${o} found`);let a=null;const l=s.attrs;for(let c=0;c<l.colspan;c++){const u=t[(i+c)%e.width*2];u!=null&&(!l.colwidth||l.colwidth[c]!=u)&&((a||(a=E7t(l)))[c]=u)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}function E7t(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function d7(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new Bn("selectingCells");function S7t(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function SRe(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function _7t(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=S7t(t.$head)||k7t(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function k7t(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function mae(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function _Re(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function kRe(e,t,n){const r=e.node(-1),i=Bu.get(r),o=e.start(-1),s=i.nextCell(e.pos-o,t,n);return s==null?null:e.node(0).resolve(o+s)}function gae(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}
vendor: 4,970 bytes, line 1235
1235var Wc=class Au extends ut{constructor(t,n=t){const r=t.node(-1),i=Bu.get(r),o=t.start(-1),s=i.rectBetween(t.pos-o,n.pos-o),a=t.node(0),l=i.cellsInRect(s).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const d=r.nodeAt(u);if(!d)throw new RangeError(`No cell with offset ${u} found`);const f=o+u+1;return new VPe(a.resolve(f),a.resolve(f+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=n}map(t,n){const r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(mae(r)&&mae(i)&&_Re(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?Au.rowSelection(r,i):o&&this.isColSelection()?Au.colSelection(r,i):new Au(r,i)}return dt.between(r,i)}content(){const t=this.$anchorCell.node(-1),n=Bu.get(t),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},s=[];for(let l=i.top;l<i.bottom;l++){const c=[];for(let u=l*n.width+i.left,d=i.left;d<i.right;d++,u++){const f=n.map[u];if(o[f])continue;o[f]=!0;const h=n.findCell(f);let p=t.nodeAt(f);if(!p)throw new RangeError(`No cell with offset ${f} found`);const m=i.left-h.left,g=h.right-i.right;if(m>0||g>0){let v=p.attrs;if(m>0&&(v=gae(v,0,m)),g>0&&(v=gae(v,v.colspan-g,g)),h.left<i.left){if(p=p.type.createAndFill(v),!p)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(v)}`)}else p=p.type.create(v,p.content)}if(h.top<i.top||h.bottom>i.bottom){const v={...p.attrs,rowspan:Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top)};h.top<i.top?p=p.type.createAndFill(v):p=p.type.create(v,p.content)}c.push(p)}s.push(t.child(l).copy(de.from(c)))}const a=this.isColSelection()&&this.isRowSelection()?t:s;return new Pe(de.from(a),1,1)}replace(t,n=Pe.empty){const r=t.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){const{$from:a,$to:l}=i[s],c=t.mapping.slice(r);t.replace(c.map(a.pos),c.map(l.pos),s?Pe.empty:n)}const o=ut.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);o&&t.setSelection(o)}replaceWith(t,n){this.replace(t,new Pe(de.from(n),0,0))}forEachCell(t){const n=this.$anchorCell.node(-1),r=Bu.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let s=0;s<o.length;s++)t(n.nodeAt(o[s]),i+o[s])}isColSelection(){const t=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(t,n)>0)return!1;const r=t+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const r=t.node(-1),i=Bu.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new Au(t,n)}isRowSelection(){const t=this.$anchorCell.node(-1),n=Bu.get(t),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;const s=i+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==n.width}eq(t){return t instanceof Au&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),i=Bu.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(t=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new Au(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new Au(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new Au(t.resolve(n),t.resolve(r))}getBookmark(){return new C7t(this.$anchorCell.pos,this.$headCell.pos)}};Wc.prototype.visible=!1;ut.jsonID("cell",Wc);var C7t=class CRe{constructor(t,n){this.anchor=t,this.head=n}map(t){return new CRe(t.map(this.anchor),t.map(this.head))}resolve(t){const n=t.resolve(this.anchor),r=t.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&_Re(n,r)?new Wc(n,r):ut.near(r,1)}};new Bn("fix-tables");function TRe(e){const t=e.selection,n=_7t(e),r=n.node(-1),i=n.start(-1),o=Bu.get(r);return{...t instanceof Wc?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function T7t(e){return function(t,n){if(!SRe(t))return!1;if(n){const r=d7(t.schema),i=TRe(t),o=t.tr,s=i.map.cellsInRect(e=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(l=>i.table.nodeAt(l));for(let l=0;l<s.length;
1235l++)a[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[l],r.cell,a[l].attrs);if(o.steps.length===0)for(let l=0;l<s.length;l++)o.setNodeMarkup(i.tableStart+s[l],r.header_cell,a[l].attrs);n(o)}return!0}}function vae(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let i=0;i<r.length;i++){const o=t.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function f7(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?T7t(e):function(n,r){if(!SRe(n))return!1;if(r){const i=d7(n.schema),o=TRe(n),s=n.tr,a=vae("row",o,i),l=vae("column",o,i),c=(e==="column"?a:e==="row"&&l)?1:0,u=e=="column"?{left:0,top:c,right:1,bottom:o.map.height}:e=="row"?{left:c,top:0,right:o.map.width,bottom:1}:o,d=e=="column"?l?i.cell:i.header_cell:e=="row"?a?i.cell:i.header_cell:i.cell;o.map.cellsInRect(u).forEach(f=>{const h=f+o.tableStart,p=s.doc.nodeAt(h);p&&s.setNodeMarkup(h,d,p.attrs)}),r(s)}return!0}}f7("row",{useDeprecatedLogic:!0});f7("column",{useDeprecatedLogic:!0});f7("cell",{useDeprecatedLogic:!0});function AC(e,t){const n=e.selection;if(!(n instanceof Wc))return!1;if(t){const r=e.tr,i=d7(e.schema).cell.createAndFill().content;n.forEachCell((o,s)=>{o.content.eq(i)||r.replace(r.mapping.map(s+1),r.mapping.map(s+o.nodeSize-1),new Pe(i,0,0))}),r.docChanged&&t(r)}return!0}X8({ArrowLeft:OC("horiz",-1),ArrowRight:OC("horiz",1),ArrowUp:OC("vert",-1),ArrowDown:OC("vert",1),"Shift-ArrowLeft":PC("horiz",-1),"Shift-ArrowRight":PC("horiz",1),"Shift-ArrowUp":PC("vert",-1),"Shift-ArrowDown":PC("vert",1),Backspace:AC,"Mod-Backspace":AC,Delete:AC,"Mod-Delete":AC});function ZT(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function OC(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Wc)return ZT(n,r,ut.near(o.$headCell,t));if(e!="horiz"&&!o.empty)return!1;const s=ARe(i,e,t);if(s==null)return!1;if(e=="horiz")return ZT(n,r,ut.near(n.doc.resolve(o.head+t),t));{const a=n.doc.resolve(s),l=kRe(a,e,t);let c;return l?c=ut.near(l,1):t<0?c=ut.near(n.doc.resolve(a.before(-1)),-1):c=ut.near(n.doc.resolve(a.after(-1)),1),ZT(n,r,c)}}}function PC(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let s;if(o instanceof Wc)s=o;else{const l=ARe(i,e,t);if(l==null)return!1;s=new Wc(n.doc.resolve(l))}const a=kRe(s.$headCell,e,t);return a?ZT(n,r,new Wc(s.$anchorCell,a)):!1}}function ARe(e,t,n){if(!(e.state.selection instanceof dt))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const s=r.before(i),a=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}new Bn("tableColumnResizing");function A7t(e,t){const n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left),s=Math.max(e.right,t.right)-i,a=r-n,l=i,c=n;return new DOMRect(l,c,s,a)}var O7t=class{constructor({editor:e,element:t,view:n,pluginKey:r="bubbleMenu",updateDelay:i=250,resizeDelay:o=60,shouldShow:s,appendTo:a,getReferencedVirtualElement:l,options:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:d,state:f,from:h,to:p})=>{const{doc:m,selection:g}=f,{empty:v}=g,b=!m.textBetween(h,p).length&&e7(f.selection),w=this.element.contains(document.activeElement);return!(!(d.hasFocus()||w)||v||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:d})=>{var f;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}d!=null&&d.relatedTarget&&((f=this.element.parentNode)!=null&&f.contains(d.relatedTarget))||(d==null?void 0:d.relatedTarget)!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(d,f)=>{const h=!(f!=null&&f.selection.eq(d.state.selection)),p=!(f!=null&&f.doc.eq(
1235d.state.doc));!h&&!p||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(d,h,p,f)},this.updateDelay))},this.updateHandler=(d,f,h,p)=>{const{composing:m}=d;if(m||!f&&!h)return;if(!this.getShouldShow(p)){this.hide();return}this.show(),this.updatePosition()},this.transactionHandler=({transaction:d})=>{const f=d.getMeta(this.pluginKey);f==="updatePosition"?this.updatePosition():f&&typeof f=="object"&&f.type==="updateOptions"?this.updateOptions(f.options):f==="hide"?this.hide():f==="show"&&(this.updatePosition(),this.show())};var u;this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=o,this.appendTo=a,this.scrollTarget=(u=c==null?void 0:c.scrollTarget)!=null?u:window,this.getReferencedVirtualElement=l,this.floatingUIOptions={...this.floatingUIOptions,...c},this.element.tabIndex=0,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}get middlewares(){const e=[];return this.floatingUIOptions.flip&&e.push(qV(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push(KV(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push(HV(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push(hO(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(GV(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push(bge(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push(YV(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push(wge(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),e}get virtualElement(){var e,t,n;const{selection:r}=this.editor.state,i=(e=this.getReferencedVirtualElement)==null?void 0:e.call(this);if(i)return i;if(!((n=(t=this.view)==null?void 0:t.dom)!=null&&n.parentNode))return;const o=tRe(this.view,r.from,r.to);let s={getBoundingClientRect:()=>o,getClientRects:()=>[o]};if(r instanceof rt){let a=this.view.nodeDOM(r.from);const l=a.dataset.nodeViewWrapper?a:a.querySelector("[data-node-view-wrapper]");l&&(a=l),a&&(s={getBoundingClientRect:()=>a.getBoundingClientRect(),getClientRects:()=>[a.getBoundingClientRect()]})}if(r instanceof Wc){const{$anchorCell:a,$headCell:l}=r,c=a?a.pos:l.pos,u=l?l.pos:a.pos,d=this.view.nodeDOM(c),f=this.view.nodeDOM(u);if(!d||!f)return;const h=d===f?d.getBoundingClientRect():A7t(d.getBoundingClientRect(),f.getBoundingClientRect());s={getBoundingClientRect:()=>h,getClientRects:()=>[h]}}return s}updatePosition(){if(!this.isVisible)return;const e=this.virtualElement;e&&XV(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:t,y:n,strategy:r,middlewareData:i})=>{var o,s;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if((o=i.hide)!=null&&o.referenceHidden||(s=i.hide)!=null&&s.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${t}px`,this.element.style.top=`${n}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(e,t){const{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),o=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,o,t)}getShouldShow(e){var t;const{state:n}=this.view,{selection:r}=n,{ranges:i}=r,o=Math.min(...i.map(l=>l.$from.pos)),s=Math.max(...i.map(l=>l.$to.pos));return((t=this.shouldShow)==null?void 0:t.call(this,{editor:this.editor,element:this.element,view:this.view,state:n,oldState:e,from:o,to:s}))||!1}show(){var e;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const t=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(e=t??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(e){var t;if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){const n=(t=e.options.scrollTarget)!=null?t:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},ORe=e=>new Fn({key:typeof e.pluginKey=="string"?new Bn(e.pluginKey):e.pluginKey,view:t=>new O7t({view:t,...e})});cr.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[ORe({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var P7t=class{constructor({editor:e,element:t,view:n,pluginKey:r="floatingMenu",updateDelay:i=250,resizeDelay:o=60,options:s,appendTo:a,shouldShow:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:d})=>{const{selection:f}=d,{$anchor:h,empty:p}=f,m=h.depth===1,g=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!p||!m||!g||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,d,f,h)=>{const{composing:p}=u;if(p||!d&&!f)return;if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var d;if(this.preventHide){this.preventHide=!1;return}u!=null&&u.relatedTarget&&((d=this.element.parentNode)!=null&&d.contains(u.relatedTarget))||(u==null?void 0:u.relatedTarget)!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const d=u.getMeta(this.pluginKey);d==="updatePosition"?this.updatePosition():d&&typeof d=="object"&&d.type==="updateOptions"?this.updateOptions(d.options):d==="hide"?this.hide():d==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)};var c;this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=o,this.appendTo=a,this.scrollTarget=(c=s==null?void 0:s.scrollTarget)!=null?c:window,this.floatingUIOptions={...this.floatingUIOptions,...s},this.element.tabIndex=0,l&&(this.shouldShow=l),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(n,n.state),this.get
1235ShouldShow()&&(this.show(),this.updatePosition())}getTextContent(e){return YIe(e,{textSerializers:r7(this.editor.schema)})}get middlewares(){const e=[];return this.floatingUIOptions.flip&&e.push(qV(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push(KV(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push(HV(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push(hO(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(GV(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push(bge(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push(YV(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push(wge(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),e}getShouldShow(e){var t;const{state:n}=this.view,{selection:r}=n,{ranges:i}=r,o=Math.min(...i.map(l=>l.$from.pos)),s=Math.max(...i.map(l=>l.$to.pos));return(t=this.shouldShow)==null?void 0:t.call(this,{editor:this.editor,view:this.view,state:n,oldState:e,from:o,to:s})}updateOptions(e){var t;if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){const n=(t=e.options.scrollTarget)!=null?t:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){const{selection:e}=this.editor.state,t=tRe(this.view,e.from,e.to);XV({getBoundingClientRect:()=>t,getClientRects:()=>[t]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:r,y:i,strategy:o,middlewareData:s})=>{var a,l;if((a=s.hide)!=null&&a.referenceHidden||(l=s.hide)!=null&&l.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=o,this.element.style.left=`${r}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(e,t){const n=!(t!=null&&t.selection.eq(e.state.selection)),r=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,n,r,t)}show(){var e;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const t=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(e=t??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},PRe=e=>new Fn({key:typeof e.pluginKey=="string"?new Bn(e.pluginKey):e.pluginKey,view:t=>new P7t({view:t,...e})});cr.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:e,dispatch:t})=>(t&&e.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[PRe({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function IRe(e,t){return e??new Bn(t)}var I7t=typeof window<"u"?y.useLayoutEffect:y.useEffect,RRe=new Set(["left","opacity","position","top","visibility","width"]),R7t=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","o
1235pacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),M7t=new Set(["children","className","style"]),N7t=new Set(["tabIndex"]),D7t=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),L7t={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function nU(e,t){return/^on[A-Z]/.test(e)&&typeof t=="function"}function $7t(e){return e.startsWith("aria-")||e.startsWith("data-"),e}function F7t(e){return e.startsWith("aria-")||e.startsWith("data-")||D7t.has(e)}function MRe(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function B7t(e){var t;const n=e.endsWith("Capture"),i=(n?e.slice(0,-7):e).slice(2);return{eventName:(t=L7t[i])!=null?t:i.toLowerCase(),options:n?{capture:!0}:void 0}}function j7t(e,t){let n=t.defaultPrevented,r=!1;const i=Object.create(t);return Object.defineProperties(i,{nativeEvent:{value:t},currentTarget:{value:e},target:{value:t.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>n},isPropagationStopped:{value:()=>r},preventDefault:{value:()=>{n=!0,t.preventDefault()}},stopPropagation:{value:()=>{r=!0,t.stopPropagation()}}}),i}function iF(e){return N7t.has(e)}function yae(e,t,n){if(t==="tabIndex"){e.tabIndex=Number(n);return}e[t]=n}function z7t(e,t){if(t==="tabIndex"){e.removeAttribute("tabindex");return}const n=e[t];if(typeof n=="boolean"){e[t]=!1;return}if(typeof n=="number"){e[t]=0;return}e[t]=""}function U7t(e,t){return typeof t!="number"||t===0||e.startsWith("--")||R7t.has(e)?String(t):`${t}px`}function V7t(e,t){RRe.has(t)||e.style.removeProperty(MRe(t))}function W7t(e,t,n){RRe.has(t)||e.style.setProperty(MRe(t),U7t(t,n))}function H7t(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(i=>{if(M7t.has(i)||!F7t(i)||nU(i,t[i])||nU(i,n[i]))return;const o=t[i],s=n[i];if(o===s)return;const a=$7t(i);if(s==null||s===!1){iF(i)&&z7t(e,i),e.removeAttribute(a);return}if(s===!0){iF(i)&&yae(e,i,!0),e.setAttribute(a,"");return}if(iF(i)){yae(e,i,s);return}e.setAttribute(a,String(s))})}function K7t(e,t,n){if(t!==n){if(n){e.className=n;return}e.removeAttribute("class")}}function q7t(e,t,n){const r=t??{},i=n??{};new Set([...Object.keys(r),...Object.keys(i)]).forEach(s=>{const a=r[s],l=i[s];if(a!==l){if(l==null){V7t(e,s);return}W7t(e,s,l)}})}function G7t(e,t,n){t.forEach(({eventName:i,listener:o,options:s})=>{e.removeEventListener(i,o,s)});const r=[];return Object.entries(n).forEach(([i,o])=>{if(!nU(i,o))return;const{eventName:s,options:a}=B7t(i),l=c=>{o(j7t(e,c))};e.addEventListener(s,l,a),r.push({eventName:s,listener:l,options:a})}),r}function NRe(e,t){const n=y.useRef({}),r=y.useRef([]);I7t(()=>{const i=n.current;return K7t(e,i.className,t.className),q7t(e,i.style,t.style),H7t(e,i,t),r.current=G7t(e,r.current,t),n.current=t,()=>{r.current.forEach(({eventName:o,listener:s,options:a})=>{e.removeEventListener(o,s,a)}),r.current=[]}},[e,t])}var Tin=$.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:o=null,getReferencedVirtualElement:s,options:a,children:l,...c},u)=>{const d=y.useRef(document.createElement("div")),f=y.useRef(IRe(e,"bubbleMenu")).current;NRe(d.current,c),typeof u=="function"?u(d.current):u&&(u.current=d.current);const{editor:h}=bRe(),p=t||h,m={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:f,shouldShow:o,getReferencedVirtualElement:s,options:a},g=y.useRef(m);g.current=m;const[v,b]=y.useState(!1),w=y.useRef(!0);return y.useEffect(()=>{if(p!=null&&p.isDestroyed)return;if(!p){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const x=d.current;x.style.visibility="hidden",x.style.position="absolute";const E=ORe({...g.current,editor:p,element:x});p.registerPlugin(E);const S=g.current.pluginKey;return w.current=!0,b(!0),()=>{b(!1),p.unregisterPlugin(S),window.requestAnimationFrame(()=>{x.parentNode&&x.parentNode.removeChild(x)})}},[p]),y.useEffect(()=>{if(!(!v||!p||p.isDestroyed)){if(w.current){w.current=!1;return}p.view.dispatch(p.state.tr.setMeta(f,{type:"updateOptions",options:g.current}))}},[v,p,n,r,o,a,i,s,f]),pr.createPortal(l,d.current)});$.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:o=null,options:s,children:a,...l},c)=>{const u=y.useRef(document.createElement("div")),d=y.useRef(IRe(e,"floatingMenu")).current;NRe(u.current,l),typeof c=="function"?c(u.current):c&&(c.current=u.current);const{editor:f}=bRe(),h=t||f,p={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:d,shouldShow:o,options:s},m=y.useRef(p);m.current=p;const[g,v]=y.useState(!1),b=y.useRef(!0);return y.useEffect(()=>{if(h!=null&&h.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=u.current;
vendor: 10,804 bytes, lines 1235-1260
1235w.style.visibility="hidden",w.style.position="absolute";const x=PRe({...m.current,editor:h,element:w});h.registerPlugin(x);const E=m.current.pluginKey;return b.current=!0,v(!0),()=>{v(!1),h.unregisterPlugin(E),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[h]),y.useEffect(()=>{if(!(!g||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(d,{type:"updateOptions",options:m.current}))}},[g,h,n,r,o,s,i,d]),pr.createPortal(a,u.current)});var pI=(e,t)=>{if(e==="slot")return 0;if(e instanceof Function)return e(t);const{children:n,...r}=t??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]},Y7t=/^\s*>\s$/,X7t=aa.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return pI("blockquote",{...Ur(this.options.HTMLAttributes,e),children:pI("slot",{})})},parseMarkdown:(e,t)=>{var n;const r=(n=t.parseBlockChildren)!=null?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";const n=">",r=[];return e.content.forEach((i,o)=>{var s,a;const u=((a=(s=t.renderChild)==null?void 0:s.call(t,i,o))!=null?a:t.renderChildren([i])).split(` 1236`).map(d=>d.trim()===""?n:`${n} ${d}`);r.push(u.join(` 1237`))}),r.join(` 1238${n} 1239`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ob({find:Y7t,type:this.type})]}}),Z7t=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Q7t=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,J7t=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,eKt=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,tKt=np.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return pI("strong",{...Ur(this.options.HTMLAttributes,e),children:pI("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[lg({find:Z7t,type:this.type}),lg({find:J7t,type:this.type})]},addPasteRules(){return[Ph({find:Q7t,type:this.type}),Ph({find:eKt,type:this.type})]}}),nKt=/(^|[^`])`([^`]+)`(?!`)$/,rKt=/(^|[^`])`([^`]+)`(?!`)/g,iKt=np.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Ur(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[lg({find:nKt,type:this.type})]},addPasteRules(){return[Ph({find:rKt,type:this.type})]}}),oF=4,oKt=/^```([a-z]+)?[\s\n]$/,sKt=/^~~~([a-z]+)?[\s\n]$/,aKt=aa.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:oF,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;if(!n)return null;const o=[...((t=e.firstElementChild)==null?void 0:t.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Ur(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n,r;return((n=e.raw)==null?void 0:n.startsWith("```"))===!1&&((r=e.raw)==null?void 0:r.startsWith("~~~"))===!1&&e.codeBlockStyle!=="indented"?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r="";const i=((n=e.attrs)==null?void 0:n.language)||"";return e.content?r=[`\`\`\`${i}`,t.renderChildren(e.content),"```"].join(` 1240`):r=`\`\`\`${i} 1241 1242\`\`\``,r},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=(t=this.options.tabSize)!=null?t:oF,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;if(o.parent.type!==this.type)return!1;const a=" ".repeat(n);return s?e.commands.insertContent(a):e.commands.command(({tr:l})=>{const{from:c,to:u}=i,h=r.doc.textBetween(c,u,` 1243`,` 1244`).split(` 1245`).map(p=>a+p).join(` 1246`);return l.replaceWith(c,u,r.schema.text(h)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=(t=this.options.tabSize)!=null?t:oF,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;return o.parent.type!==this.type?!1:s?e.commands.command(({tr:a})=>{var l;const{pos:c}=o,u=o.start(),d=o.end(),h=r.doc.textBetween(u,d,` 1247`,` 1248`).split(` 1249`);let p=0,m=0;const g=c-u;for(let S=0;S<h.length;S+=1){if(m+h[S].length>=g){p=S;break}m+=h[S].length+1}const b=((l=h[p].match(/^ */))==null?void 0:l[0])||"",w=Math.min(b.length,n);if(w===0)return!0;let x=u;for(let S=0;S<p;S+=1)x+=h[S].length+1;return a.delete(x,x+w),c-x<=w&&a.setSelection(dt.create(a.doc,x)),!0}):e.commands.command(({tr:a})=>{const{from:l,to:c}=i,f=r.doc.textBetween(l,c,` 1250`,` 1251`).split(` 1252`).map(h=>{var p;const m=((p=h.match(/^ */))==null?void 0:p[0])||"",g=Math.min(m.length,n);return h.slice(g)}).join(` 1253`);return a.replaceWith(l,c,r.schema.text(f)),!0})},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(` 1254 1255`);return!o||!s?!1:e.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const a=i.after();return a===void 0?!1:r.nodeAt(a)?e.commands.command(({tr:c})=>(c.setSelection(ut.near(r.resolve(a))),!0)):e.commands.exitCode()}}},addInputRules(){return[Z4({find:oKt,type:this.type,getAttributes:e=>({language:e[1]})}),Z4({find:sKt,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Fn({key:new Bn("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!n||!o)return!1;const{tr:s,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,` 1256`));return s.replaceSelectionWith(this.type.create({language:o},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(dt.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),lKt=aa.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1257 1258`):""}),cKt=aa.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Ur(this.options.HTMLAttributes,e)]},renderText(){return` 1259`},renderMarkdown:()=>` 1260`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(f=>a.includes(f.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),uKt=aa.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Ur(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;const r=(n=e.attrs)!=null&&n.level?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>Z4({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
1260)\\s$`),type:this.type,getAttributes:{level:e}}))}}),dKt=aa.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Ur(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!n8t(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$to:r}=n,i=e();return QIe(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:o,tr:s,dispatch:a})=>{if(a){const{$to:l}=s.selection,c=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?s.setSelection(dt.create(s.doc,l.pos+1)):l.nodeAfter.isBlock?s.setSelection(rt.create(s.doc,l.pos)):s.setSelection(dt.create(s.doc,l.pos));else{const u=o.schema.nodes[this.options.nextNodeType]||l.parent.type.contentMatch.defaultType,d=u==null?void 0:u.create();d&&(s.insert(c,d),s.setSelection(dt.create(s.doc,c+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[t8t({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
vendor: 4,520 bytes, line 1260
1260ype})]}}),fKt=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,hKt=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,pKt=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,mKt=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,gKt=np.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",Ur(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[lg({find:fKt,type:this.type}),lg({find:pKt,type:this.type})]},addPasteRules(){return[Ph({find:hKt,type:this.type}),Ph({find:mKt,type:this.type})]}});const vKt="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
1260ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",yKt="ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
1260ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5را٠ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5٠غرب5٠ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2٠اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ 3٠صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4Ù٠راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å «å¦2å ¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å 2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2",rU="numeric",iU="ascii",oU="alpha",iE="asciinumeric",gx="alphanumeric",sU="domain",DRe="emoji",bKt="scheme",wKt="slashscheme",sF="whitespace";function xKt(e,t){return e in t||(t[e]=[]),t[e]}function Xp(e,t,n){t[rU]&&(t[iE]=!0,t[gx]=!0),t[iU]&&(t[iE]=!0,t[oU]=!0),t[iE]&&(t[gx]=!0),t[oU]&&(t[gx]=!0),t[gx]&&(t[sU]=!0),t[DRe]&&(t[sU]=!0);for(const r in t){const i=xKt(r,n);i.indexOf(e)<0&&i.push(e)}}function EKt(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function as(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}as.groups={};as.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],o=t.jr[r][1];if(o&&i.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||as.groups;let i;return t&&t.j?i=t:(i=new as(t),n&&r&&Xp(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const o=e.length;if(!o)return i;for(let s=0;s<o-1;s++)i=i.tt(e[s]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){r=r||as.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const o=t;let s,a=i.go(e);if(a?(s=new as,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new as,o){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(EKt(s.t,r),n);Xp(o,l,r)}else n&&Xp(o,n,r);s.t=o}return i.j[e]=s,s}};const Ot=(e,t,n,r,i)=>e.ta(t,n,r,i),xr=(e,t,n,r,i)=>e.tr(t,n,r,i),bae=(e,t,n,r,i)=>e.ts(t,n,r,i),ve=(e,t,n,r,i)=>e.tt(t,n,r,i),Ou="WORD",aU="UWORD",LRe="ASCIINUMERICAL",$Re="ALPHANUMERICAL",j1="LOCALHOST",lU="TLD",cU="UTLD",QT="SCHEME",wv="SLASH_SCHEME",h7="NUM",uU="WS",p7="NL",oE="OPENBRACE",sE="CLOSEBRACE",mI="OPENBRACKET",gI="CLOSEBRACKET",vI="OPENPAREN",yI="CLOSEPAREN",bI="OPENANGLEBRACKET",wI="CLOSEANGLEBRACKET",xI="FULLWIDTHLEFTPAREN",EI="FULLWIDTHRIGHTPAREN",SI="LEFTCORNERBRACKET",_I="RIGHTCORNERBRACKET",kI="LEFTWHITECORNERBRACKET",CI="RIGHTWHITECORNERBRACKET",TI="FULLWIDTHLESSTHAN",AI="FULLWIDTHGREATERTHAN",OI="AMPERSAND",PI="APOSTROPHE",II="ASTERISK",df="AT",RI="BACKSLASH",MI="BACKTICK",NI="CARET",yf="COLON",m7="COMMA",DI="DOLLAR",uc="DOT",LI="EQUALS",g7="EXCLAMATION",pa="HYPHEN",aE="PERCENT",$I="PIPE",FI="PLUS",BI="POUND",lE="QUERY",v7="QUOTE",FRe="FULLWIDTHMIDDLEDOT",y7="SEMI",dc="SLASH",cE="TILDE",jI="UNDERSCORE",BRe="EMOJI",zI="SYM";var jRe=Object.freeze({__proto__:null,ALPHANUMERICAL:$Re,AMPERSAND:OI,APOSTROPHE:PI,ASCIINUMERICAL:LRe,ASTERISK:II,AT:df,BACKSLASH:RI,BACKTICK:MI,CARET:NI,CLOSEANGLEBRACKET:wI,CLOSEBRACE:sE,CLOSEBRACKET:gI,CLOSEPAREN:yI,COLON:yf,COMMA:m7,DOLLAR:DI,DOT:uc,EMOJI:BRe,EQUALS:LI,EXCLAMATION:g7,FULLWIDTHGREATERTHAN:AI,FULLWIDTHLEFTPAREN:xI,FULLWIDTHLESSTHAN:TI,FULLWIDTHMIDDLEDOT:FRe,FULLWIDTHRIGHTPAREN:EI,HYPHEN:pa,LEFTCORNERBRACKET:SI,LEFTWHITECORNERBRACKET:kI,LOCALHOST:j1,NL:p7,NUM:h7,OPENANGLEBRACKET:bI,OPENBRACE:oE,OPENBRACKET:mI,OPENPAREN:vI,PERCENT:aE,PIPE:$I,PLUS:FI,POUND:BI,QUERY:lE,QUOTE:v7,RIGHTCORNERBRACKET:_I,RIGHTWHITECORNERBRACKET:CI,SCHEME:QT,SEMI:y7,SLASH:dc,SLASH_SCHEME:wv,SYM:zI,TILDE:cE,TLD:lU,UNDERSCORE:jI,UTLD:cU,UWORD:aU,WORD:Ou,WS:uU});const wu=/[a-z]/,Nw=new RegExp("\\p{L}","u"),aF=new RegExp("\\p{Emoji}","u"),xu=/\d/,lF=/\s/,wae="\r",cF=` 1261`,SKt="ï¸",_Kt="â",uF="";let IC=null,RC=null;function kKt(e=[]){const t={};as.groups=t;const n=new as;IC==null&&(IC=xae(vKt)),RC==null&&(RC=xae(yKt)),ve(n,"'",PI),ve(n,"{",oE),ve(n,"}
1261",sE),ve(n,"[",mI),ve(n,"]",gI),ve(n,"(",vI),ve(n,")",yI),ve(n,"<",bI),ve(n,">",wI),ve(n,"ï¼",xI),ve(n,"ï¼",EI),ve(n,"ã",SI),ve(n,"ã",_I),ve(n,"ã",kI),ve(n,"ã",CI),ve(n,"ï¼",TI),ve(n,"ï¼",AI),ve(n,"&",OI),ve(n,"*",II),ve(n,"@",df),ve(n,"`",MI),ve(n,"^",NI),ve(n,":",yf),ve(n,",",m7),ve(n,"$",DI),ve(n,".",uc),ve(n,"=",LI),ve(n,"!",g7),ve(n,"-",pa),ve(n,"%",aE),ve(n,"|",$I),ve(n,"+",FI),ve(n,"#",BI),ve(n,"?",lE),ve(n,'"',v7),ve(n,"/",dc),ve(n,";",y7),ve(n,"~",cE),ve(n,"_",jI),ve(n,"\\",RI),ve(n,"ã»",FRe);const r=xr(n,xu,h7,{[rU]:!0});xr(r,xu,r);const i=xr(r,wu,LRe,{[iE]:!0}),o=xr(r,Nw,$Re,{[gx]:!0}),s=xr(n,wu,Ou,{[iU]:!0});xr(s,xu,i),xr(s,wu,s),xr(i,xu,i),xr(i,wu,i);const a=xr(n,Nw,aU,{[oU]:!0});xr(a,wu),xr(a,xu,o),xr(a,Nw,a),xr(o,xu,o),xr(o,wu),xr(o,Nw,o);const l=ve(n,cF,p7,{[sF]:!0}),c=ve(n,wae,uU,{[sF]:!0}),u=xr(n,lF,uU,{[sF]:!0});ve(n,uF,u),ve(c,cF,l),ve(c,uF,u),xr(c,lF,u),ve(u,wae),ve(u,cF),xr(u,lF,u),ve(u,uF,u);const d=xr(n,aF,BRe,{[DRe]:!0});ve(d,"#"),xr(d,aF,d),ve(d,SKt,d);const f=ve(d,_Kt);ve(f,"#"),xr(f,aF,d);const h=[[wu,s],[xu,i]],p=[[wu,null],[Nw,a],[xu,o]];for(let m=0;m<IC.length;m++)Gd(n,IC[m],lU,Ou,h);for(let m=0;m<RC.length;m++)Gd(n,RC[m],cU,aU,p);Xp(lU,{tld:!0,ascii:!0},t),Xp(cU,{utld:!0,alpha:!0},t),Gd(n,"file",QT,Ou,h),Gd(n,"mailto",QT,Ou,h),Gd(n,"http",wv,Ou,h),Gd(n,"https",wv,Ou,h),Gd(n,"ftp",wv,Ou,h),Gd(n,"ftps",wv,Ou,h),Xp(QT,{scheme:!0,ascii:!0},t),Xp(wv,{slashscheme:!0,ascii:!0},t),e=e.sort((m,g)=>m[0]>g[0]?1:-1);for(let m=0;m<e.length;m++){const g=e[m][0],b=e[m][1]?{[bKt]:!0}:{[wKt]:!0};g.indexOf("-")>=0?b[sU]=!0:wu.test(g)?xu.test(g)?b[iE]=!0:b[iU]=!0:b[rU]=!0,bae(n,g,g,b)}return bae(n,"localhost",j1,{ascii:!0}),n.jd=new as(zI),{start:n,tokens:Object.assign({groups:t},jRe)}}function zRe(e,t){const n=CKt(t.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,i=[];let o=0,s=0;for(;s<r;){let a=e,l=null,c=0,u=null,d=-1,f=-1;for(;s<r&&(l=a.go(n[s]));
vendor: 26,300 bytes, lines 1261-1273
1261)a=l,a.accepts()?(d=0,f=0,u=a):d>=0&&(d+=n[s].length,f++),c+=n[s].length,o+=n[s].length,s++;o-=d,s-=f,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function CKt(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),o,s=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function Gd(e,t,n,r,i){let o;const s=t.length;for(let a=0;a<s-1;a++){const l=t[a];e.j[l]?o=e.j[l]:(o=new as(r),o.jr=i.slice(),e.j[l]=o),e=o}return o=new as(n),o.jr=i.slice(),e.j[t[s-1]]=o,o}function xae(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let o=0;for(;i.indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let s=parseInt(e.substring(r,r+o),10);s>0;s--)n.pop();r+=o}else n.push(e[r]),r++}return t}const z1={defaultProtocol:"http",events:null,format:Eae,formatHref:Eae,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function b7(e,t=null){let n=Object.assign({},z1);e&&(n=Object.assign(n,e instanceof b7?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}b7.prototype={o:z1,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:z1[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Eae(e){return e}function URe(e,t){this.t="token",this.v=e,this.tk=t}URe.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=z1.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return s.href=r,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:i,attributes:s,content:o,eventListeners:d}}};function SD(e,t){class n extends URe{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const Sae=SD("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),_ae=SD("text"),TKt=SD("nl"),MC=SD("url",{isLink:!0,toHref(e=z1.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==j1&&e[1].t===yf}}),da=e=>new as(e);function AKt({groups:e}){const t=e.domain.concat([OI,II,df,RI,MI,NI,DI,LI,pa,h7,aE,$I,FI,BI,dc,zI,cE,jI]),n=[PI,yf,m7,uc,g7,aE,lE,v7,y7,bI,wI,oE,sE,gI,mI,vI,yI,xI,EI,SI,_I,kI,CI,TI,AI],r=[OI,PI,II,RI,MI,NI,DI,LI,pa,oE,sE,aE,$I,FI,BI,lE,dc,zI,cE,jI],i=da(),o=ve(i,cE);Ot(o,r,o),Ot(o,e.domain,o);const s=da(),a=da(),l=da();Ot(i,e.domain,s),Ot(i,e.scheme,a),Ot(i,e.slashscheme,l),Ot(s,r,o),Ot(s,e.domain,s);const c=ve(s,df);ve(o,df,c),ve(a,df,c),ve(l,df,c);const u=ve(o,uc);Ot(u,r,o),Ot(u,e.domain,o);const d=da();Ot(c,e.domain,d),Ot(d,e.domain,d);const f=ve(d,uc);Ot(f,e.domain,d);const h=da(Sae);Ot(f,e.tld,h),Ot(f,e.utld,h),ve(c,j1,h);const p=ve(d,pa);ve(p,pa,p),Ot(p,e.domain,d),Ot(h,e.domain,d),ve(h,uc,f),ve(h,pa,p);const m=ve(h,yf);Ot(m,e.numeric,Sae);const g=ve(s,pa),v=ve(s,uc);ve(g,pa,g),Ot(g,e.domain,s),Ot(v,r,o),Ot(v,e.domain,s);const b=da(MC);Ot(v,e.tld,b),Ot(v,e.utld,b),Ot(b,e.domain,s),Ot(b,r,o),ve(b,uc,v),ve(b,pa,g),ve(b,df,c);const w=ve(b,yf),x=da(MC);Ot(w,e.numeric,x);const E=da(MC),S=da();Ot(E,t,E),Ot(E,n,S),Ot(S,t,E),Ot(S,n,S),ve(b,dc,E),ve(x,dc,E);const _=ve(a,yf),k=ve(l,yf),C=ve(k,dc),T=ve(C,dc);Ot(a,e.domain,s),ve(a,uc,v),ve(a,pa,g),Ot(l,e.domain,s),ve(l,uc,v),ve(l,pa,g),Ot(_,e.domain,E),ve(_,dc,E),ve(_,lE,E),Ot(T,e.domain,E),Ot(T,t,E),ve(T,dc,E);const A=[[oE,sE],[mI,gI],[vI,yI],[bI,wI],[xI,EI],[SI,_I],[kI,CI],[TI,AI]];for(let O=0;O<A.length;O++){const[R,I]=A[O],F=ve(E,R);ve(S,R,F),ve(F,I,E);const N=da(MC);Ot(F,t,N);const B=da();Ot(F,n),Ot(N,t,N),Ot(N,n,B),Ot(B,t,N),Ot(B,n,B),ve(N,I,E),ve(B,I,E)}return ve(i,j1,b),ve(i,p7,TKt),{start:i,tokens:jRe}}function OKt(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,l=null,c=null,u=0,d=null,f=-1;for(;i<r&&!(l=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(c=l||a.go(n[i].t));)l=null,a=c,a.accepts()?(f=0,d=a):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(dF(_ae,t,s)),s=[]),i-=f,u-=f;const h=d.t,p=n.slice(i-u,i);o.push(dF(h,t,p))}}return s.length>0&&o.push(dF(_ae,t,s)),o}function dF(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const PKt=typeof console<"u"&&console&&console.warn||(()=>{}),IKt="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Vn={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function RKt(){return as.groups={},Vn.scanner=null,Vn.parser=null,Vn.tokenQueue=[],Vn.pluginQueue=[],Vn.customSchemes=[],Vn.initialized=!1,Vn}function kae(e,t=!1){if(Vn.initialized&&PKt(`linkifyjs: already initialized - will not register custom scheme "${e}" ${IKt}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. 12621. Must only contain digits, lowercase ASCII letters or "-" 12632. Cannot start or end with "-" 12643. "-" cannot repeat`);Vn.customSchemes.push([e,t])}function MKt(){Vn.scanner=kKt(Vn.customSchemes);for(let e=0;e<Vn.tokenQueue.length;e++)Vn.tokenQueue[e][1]({scanner:Vn.scanner});Vn.parser=AKt(Vn.scanner.tokens);for(let e=0;e<Vn.pluginQueue.length;e++)Vn.pluginQueue[e][1]({scanner:Vn.scanner,parser:Vn.parser});return Vn.initialized=!0,Vn}function w7(e){return Vn.initialized||MKt(),OKt(Vn.parser.start,e,zRe(Vn.scanner.start,e))}w7.scan=zRe;function VRe(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new b7(n),i=w7(e),o=[];for(let s=0;s<i.length;s++){const a=i[s];a.isLink&&(!t||a.t===t)&&r.check(a)&&o.push(a.toFormattedObject(r))}return o}var x7="[\0-  áá â-\u2029âã]",NKt=new RegExp(x7),DKt=new RegExp(`${x7}$`),LKt=new RegExp(x7,"g");function $Kt(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function FKt(e){return new Fn({key:new Bn("autolink"),appendTransaction:(t,n,r)=>{const i=t.some(c=>c.docChanged)&&!n.doc.eq(r.doc),o=t.some(c=>c.getMeta("preventAutolink"));if(!i||o)return;const{tr:s}=r,a=WIe(n.doc,[...t]);if(ZIe(a).forEach(({newRange:c})=>{const u=e9t(r.doc,c,h=>h.isTextblock);let d,f;if(u.length>1)d=u[0],f=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const h=r.doc.textBetween(c.from,c.to," "," ");if(!DKt.test(h))return;d=u[0],f=r.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&f){const h=f.split(NKt).filter(Boolean);if(h.length<=0)return!1;const p=h[h.length-1],m=d.pos+f.lastIndexOf(p);if(!p)return!1;const g=w7(p).map(v=>v.toObject(e.defaultProtocol));if(!$Kt(g))return!1;g.filter(v=>v.isLink).map(v=>({...v,from:m+v.start+1,to:m+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>e.validate(v.value)).filter(v=>e.shouldAutoLink(v.value)).forEach(v=>{i7(v.from,v.to,r.doc).some(b=>b.mark.type===e.type)||s.addMark(v.from,v.to,e.type.create({href:v.href}))})}}),!!s.steps.length)return s}})}function BKt(e){return new Fn({key:new Bn("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,o;if(r.button!==0||!t.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{const l=r.target;if(!l)return!1;const c=e.editor.view.dom;s=l.closest("a"),s&&!c.contains(s)&&(s=null)}if(!s)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){const l=XIe(t.state,e.type.name),c=(i=s.href)!=null?i:l.href,u=(o=s.target)!=null?o:l.target;c&&(window.open(c,u),a=!0)}return a}}})}function jKt(e){return new Fn({key:new Bn("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{shouldAutoLink:i}=e,{state:o}=t,{selection:s}=o,{empty:a}=s;if(a)return!1;let l="";r.content.forEach(u=>{l+=u.textContent});const c=VRe(l,{defaultProtocol:e.defaultProtocol}).find(u=>u.isLink&&u.value===l);return!l||!c||i!==void 0&&!i(c.value)?!1:e.editor.commands.setMark(e.type,{href:c.href})}}})}function bp(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(LKt,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var WRe=np.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){kae(e);return}kae(e.scheme,e.optionalSlashes)})},onDestroy(){RKt()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!bp(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{const t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;const i=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(i)||!/\./.test(i))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!bp(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!bp(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ur(this.options.HTMLAttributes,e),0]:["a",Ur(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n,r,i,o;const s=(r=(n=e.attrs)==null?void 0:n.href)!=null?r:"",a=(o=(i=e.attrs)==null?void 0:i.title)!=null?o:"",l=t.renderChildren(e);return a?`[${l}](${s} "${a}")`:`[${l}](${s})`},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!bp(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!bp(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Ph({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,i=VRe(e).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:s=>!!bp(s,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(o=>{this.options.shouldAutoLink(o.value)&&t.push({text:o.value,data:{href:o.href},index:o.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)==null?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(FKt({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!bp(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(BKt({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(jKt({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),Ain=WRe,zKt=Object.defineProperty,UKt=(e,t)=>{for(var n in t)zKt(e,n,{get:t[n],enumerable:!0})},VKt="listItem",Cae="textStyle",Tae=/^\s*([-+*])\s$/,HRe=aa.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Ur(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>e.type!=="list"||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1265`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(VKt,this.editor.getAttributes(Cae)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=Ob({find:Tae,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Ob({find:Tae,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Cae),editor:this.editor})),[e]}}),KRe=aa.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Ur(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if(e.type!=="list_item")return[];const r=(n=t.parseBlockChildren)!=null?n:t.parseChildren;let i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(s=>s.type==="paragraph"))i=r(e.tokens);else{const s=e.tokens[0];if(s&&s.type==="text"&&s.tokens&&s.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(s.tokens)}],e.tokens.length>1){const l=e.tokens.slice(1),c=r(l);i.push(...c)}}else i=r(e.tokens)}return i.length===0&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,n)=>l7(e,t,r=>{var i,o;return r.parentType==="bulletList"?"- ":r.parentType==="orderedList"?`${(((o=(i=r.meta)==null?void 0:i.parentAttrs)==null?void 0:o.start)||1)+r.index}. `:"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),WKt={};UKt(WKt,{findListItemPos:()=>C_,getNextListDepth:()=>E7,handleBackspace:()=>dU,handleDelete:()=>fU,hasListBefore:()=>qRe,hasListItemAfter:()=>HKt,hasListItemBefore:()=>GRe,listItemHasSubList:()=>YRe,nextListIsDeeper:()=>XRe,nextListIsHigher:()=>ZRe});var C_=(e,t)=>{const{$from:n}=t.selection,r=ri(e,t.schema);let i=null,o=n.depth,s=n.pos,a=null;for(;o>0&&a===null;)i=n.node(o),i.type===r?a=o:(o-=1,s-=1);return a===null?null:{$pos:t.doc.resolve(s),depth:a}},E7=(e,t)=>{const n=C_(e,t);if(!n)return!1;const[,r]=d9t(t,e,n.$pos.pos+4);return r},qRe=(e,t,n)=>{const{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!(!o||!n.includes(o.type.name))},GRe=(e,t)=>{var n;const{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return!(i.index()===0||((n=i.nodeBefore)==null?void 0:n.type.name)!==e)},YRe=(e,t,n)=>{if(!n)return!1;const r=ri(e,t.schema);let i=!1;return n.descendants(o=>{o.type===r&&(i=!0)}),i},dU=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!Oh(e.state,t)&&qRe(e.state,t,n)){const{$anchor:a}=e.state.selection,l=e.state.doc.resolve(a.before()-1),c=[];l.node().descendants((f,h)=>{f.type.name===t&&c.push({node:f,pos:h})});const u=c.at(-1);if(!u)return!1;const d=e.state.doc.resolve(l.start()+u.pos+1);return e.chain().cut({from:a.start()-1,to:a.end()+1},d.end()).joinForward().run()}if(!Oh(e.state,t)||!m9t(e.state))return!1;const r=C_(t,e.state);if(!r)return!1;const o=e.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=YRe(t,e.state,o);return GRe(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},XRe=(e,t)=>{const n=E7(e,t),r=C_(e,t);return!r||!n?!1:n>r.depth},ZRe=(e,t)=>{const n=E7(e,t),r=C_(e,t);return!r||!n?!1:n<r.depth},fU=(e,t)=>{if(!Oh(e.state,t)||!p9t(e.state,t))return!1;const{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:XRe(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():ZRe(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},HKt=(e,t)=>{var n;const{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-r.parentOffset-2);return!(i.index()===i.parent.childCount-1||((n=i.nodeAfter)==null?void 0:n.type.name)!==e)},QRe=cr.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&fU(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&fU(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&dU(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&dU(e,n,r)&&(t=!0)}),t}}}}),Aae=/^(\s*)(\d+)\.\s+(.*)$/,KKt=/^\s/;function qKt(e){const t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function GKt(e){const t=[],n=[];let r=!1;return e.forEach(i=>{if(r){n.push(i);return}if(i.trim()===""){r=!0,n.push(i);return}if(t.length>0&&qKt(i)){r=!0,n.push(i);return}t.push(i)}),{paragraphLines:t,blockLines:n}}function YKt(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n],o=i.match(Aae);if(!o)break;const[,s,a,l]=o,c=s.length,u=[l];let d=n+1;const f=[i];let h=!1;for(;d<e.length;){const p=e[d];if(p.match(Aae))break;if(p.trim()==="")f.push(p),u.push(""),h=!0,d+=1;else if(p.match(KKt))f.push(p),u.push(p.slice(c+2)),d+=1;else{if(h)break;f.push(p),u.push(p),d+=1}}t.push({indent:c,number:parseInt(a,10),content:u.join(` 1266`).trim(),contentLines:u,raw:f.join(` 1267`)}),r=d,n=d}return[t,r]}function JRe(e,t,n){const r=[];let i=0;for(;i<e.length;){const o=e[i];if(o.indent===t){const{paragraphLines:s,blockLines:a}=GKt(o.contentLines),l=s.join(` 1268`).trim(),c=[];l&&c.push({type:"paragraph",raw:l,tokens:n.inlineTokens(l)});const u=a.join(` 1269`).trim();if(u){const h=n.blockTokens(u);c.push(...h)}let d=i+1;const f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){const h=Math.min(...f.map(m=>m.indent)),p=JRe(f,h,n);c.push({type:"list",ordered:!0,start:f[0].number,items:p,raw:f.map(m=>m.raw).join(` 1270`)})}r.push({type:"list_item",raw:o.raw,tokens:c}),i=d}else i+=1}return r}function XKt(e,t){return e.map(n=>{if(n.type!=="list_item")return t.parseChildren([n])[0];const r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(i=>{if(i.type==="paragraph"||i.type==="list"||i.type==="blockquote"||i.type==="code")r.push(...t.parseChildren([i]));else if(i.type==="text"&&i.tokens){const o=t.parseChildren([i]);r.push({type:"paragraph",content:o})}else{const o=t.parseChildren([i]);o.length>0&&r.push(...o)}}),{type:"listItem",content:r}})}var ZKt="listItem",Oae="textStyle",Pae=/^(\d+)\.\s$/,eMe=aa.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",Ur(this.options.HTMLAttributes,n),0]:["ol",Ur(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if(e.type!=="list"||!e.ordered)return[];const n=e.start||1,r=e.items?XKt(e.items,t):[];return n!==1?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1271`):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{const t=e.match(/^(\s*)(\d+)\.\s+/),n=t==null?void 0:t.index;return n!==void 0?n:-1},tokenize:(e,t,n)=>{var r;const i=e.split(` 1272`),[o,s]=YKt(i);if(o.length===0)return;const a=JRe(o,0,n);return a.length===0?void 0:{type:"list",ordered:!0,start:((r=o[0])==null?void 0:r.number)||1,items:a,raw:i.slice(0,s).join(` 1273`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ZKt,this.editor.getAttributes(Oae)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=Ob({find:Pae,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Ob({find:Pae,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(Oae)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),QKt=/^\s*(\[([( |x])?\])\s$/,JKt=aa.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",Ur(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;const i=`- [${(n=e.attrs)!=null&&n.checked?"x":" "}] `;return l7(e,t,i)},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{const i=document.createElement("li"),o=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),c=d=>{var f,h;a.ariaLabel=((h=(f=this.options.a11y)==null?void 0:f.checkboxLabel)==null?void 0:h.call(f,d,a.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};c(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",d=>d.preventDefault()),a.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:f}=d.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:h})=>{const p=n();if(typeof p!="number")return!1;const m=h.doc.nodeAt(p);return h.setNodeMarkup(p,void 0,{...m==null?void 0:m.attrs,checked:f}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,f)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,f])=>{i.setAttribute(d,f)}),i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,s),i.append(o,l),Object.entries(t).forEach(([d,f])=>{i.setAttribute(d,f)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:l,update:d=>{if(d.type!==this.type)return!1;i.dataset.checked=d.attrs.checked,a.checked=d.attrs.checked,c(d);const f=r.extensionManager.attributes,h=Ab(d,f),p=new Set(Object.keys(h)),m=this.options.HTMLAttributes;return u.forEach(g=>{p.has(g)||(g in m?i.setAttribute(g,m[g]):i.removeAttribute(g))}
vendor: 9,720 bytes, lines 1273-1274
1273),Object.entries(h).forEach(([g,v])=>{v==null?g in m?i.setAttribute(g,m[g]):i.removeAttribute(g):i.setAttribute(g,v)}),u=p,!0}}}},addInputRules(){return[Ob({find:QKt,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),eqt=aa.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",Ur(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 1274`):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const n=(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:t.index;return n!==void 0?n:-1},tokenize(e,t,n){const r=o=>{const s=Q4(o,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(o)},i=Q4(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:o=>({indentLevel:o[1].length,mainContent:o[4],checked:o[3].toLowerCase()==="x"}),createToken:(o,s)=>({type:"taskItem",raw:"",mainContent:o.mainContent,indentLevel:o.indentLevel,checked:o.checked,text:o.mainContent,tokens:n.inlineTokens(o.mainContent),nestedTokens:s}),customNestedParser:r},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});cr.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(HRe.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(KRe.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(QRe.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(eMe.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(JKt.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(eqt.configure(this.options.taskList)),e}});var NC=" ",fF="Â ",tqt=aa.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Ur(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const n=e.tokens||[];if(n.length===1&&n[0].type==="image")return t.parseChildren([n[0]]);const r=t.parseInline(n);return n.length===1&&n[0].type==="text"&&(n[0].raw===NC||n[0].text===NC||n[0].raw===fF||n[0].text===fF)&&r.length===1&&r[0].type==="text"&&(r[0].text===NC||r[0].text===fF)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t,n)=>{var r,i;if(!e)return"";const o=Array.isArray(e.content)?e.content:[];if(o.length===0){const s=Array.isArray((r=n==null?void 0:n.previousNode)==null?void 0:r.content)?n.previousNode.content:[];return((i=n==null?void 0:n.previousNode)==null?void 0:i.type)==="paragraph"&&s.length===0?NC:""}return t.renderChildren(o)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),nqt=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,rqt=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,iqt=np.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",Ur(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[lg({find:nqt,type:this.type})]},addPasteRules(){return[Ph({find:rqt,type:this.type})]}}),oqt=aa.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),tMe=np.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",Ur(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:"underline",level:"inline",start(e){return e.indexOf("++")},tokenize(e,t,n){const i=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!i)return;const o=i[2].trim();return{type:"underline",raw:i[0],text:o,tokens:n.inlineTokens(o)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Oin=tMe;function sqt(e={}){return new Fn({view(t){return new aqt(t,e)}})}class aqt{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=s=>{this[i](s)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,i=this.editorView.dom,o=i.getBoundingClientRect(),s=o.width/i.offsetWidth,a=o.height/i.offsetHeight;if(n){let d=t.nodeBefore,f=t.nodeAfter;if(d||f){let h=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(h){let p=h.getBoundingClientRect(),m=d?p.bottom:p.top;d&&f&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*a;r={left:p.left,right:p.right,top:m-g,bottom:m+g}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*s;r={left:d.left-f,right:d.left+f,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,u;if(!l||l==document.body&&getComputedStyle(l).position=="static")c=-pageXOffset,u=-pageYOffset;else{let d=l.getBoundingClientRect(),f=d.width/l.offsetWidth,h=d.height/l.offsetHeight;c=d.left-l.scrollLeft*f,u=d.top-l.scrollTop*h}this.element.style.left=(r.left-c)/s+"px",this.element.style.top=(r.top-u)/a+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=$Pe(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}class Pr extends ut{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Pr.valid(r)?new Pr(r):ut.near(r)}content(){return Pe.empty}eq(t){return t instanceof Pr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Pr(t.resolve(n.pos))}getBookmark(){return new S7(this.anchor)}static valid(t){let n=t.parent;if(n.inlineContent||!lqt(t)||!cqt(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Pr.valid(t))return t;let i=t.pos,o=null;for(let s=t.depth;;s--){let a=t.node(s);if(n>0?t.indexAfter(s)<a.childCount:t.index(s)>0){o=a.child(n>0?t.indexAfter(s):t.index(s)-1);break}else if(s==0)return null;i+=n;let l=t.doc.resolve(i);if(Pr.valid(l))return l}for(;;){let s=n>0?o.firstChild:o.lastChild;
vendor: 19,099 bytes, line 1274
1274if(!s){if(o.isAtom&&!o.isText&&!rt.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=s,i+=n;let a=t.doc.resolve(i);if(Pr.valid(a))return a}return null}}}Pr.prototype.visible=!1;Pr.findFrom=Pr.findGapCursorFrom;ut.jsonID("gapcursor",Pr);class S7{constructor(t){this.pos=t}map(t){return new S7(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Pr.valid(n)?new Pr(n):ut.near(n)}}function nMe(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function lqt(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||nMe(i.type))return!0;if(i.inlineContent)return!1}}return!0}function cqt(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||nMe(i.type))return!0;if(i.inlineContent)return!1}}return!0}function uqt(){return new Fn({props:{decorations:pqt,createSelectionBetween(e,t,n){return t.pos==n.pos&&Pr.valid(n)?new Pr(n):null},handleClick:fqt,handleKeyDown:dqt,handleDOMEvents:{beforeinput:hqt}}})}const dqt=X8({ArrowLeft:DC("horiz",-1),ArrowRight:DC("horiz",1),ArrowUp:DC("vert",-1),ArrowDown:DC("vert",1)});function DC(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let s=r.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof dt){if(!o.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(t>0?a.after():a.before())}let c=Pr.findGapCursorFrom(a,t,l);return c?(i&&i(r.tr.setSelection(new Pr(c))),!0):!1}}function fqt(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Pr.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&rt.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Pr(r))),!0)}function hqt(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Pr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=de.empty;for(let s=r.length-1;s>=0;s--)i=de.from(r[s].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new Pe(i,0,0));return o.setSelection(dt.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function pqt(e){if(!(e.selection instanceof Pr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",sr.create(e.doc,[vo.widget(e.selection.head,t,{key:"gapcursor"})])}var UI=200,Ii=function(){};Ii.prototype.append=function(t){return t.length?(t=Ii.from(t),!this.length&&t||t.length<UI&&this.leafAppend(t)||this.length<UI&&t.leafPrepend(this)||this.appendInner(t)):this};Ii.prototype.prepend=function(t){return t.length?Ii.from(t).append(this):this};Ii.prototype.appendInner=function(t){return new mqt(this,t)};Ii.prototype.slice=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=this.length),t>=n?Ii.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Ii.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Ii.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Ii.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,s){return i.push(t(o,s))},n,r),i};Ii.from=function(t){return t instanceof Ii?t:t&&t.length?new rMe(t):Ii.empty};var rMe=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,s,a){for(var l=o;l<s;l++)if(i(this.values[l],a+l)===!1)return!1},t.prototype.forEachInvertedInner=function(i,o,s,a){for(var l=o-1;l>=s;l--)if(i(this.values[l],a+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=UI)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=UI)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Ii);Ii.empty=new rMe([]);var mqt=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},t.prototype.forEachInner=function(r,i,o,s){var a=this.left.length;if(i<a&&this.left.forEachInner(r,i,Math.min(o,a),s)===!1||o>a&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,o)-a,s+a)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,s){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(o,a)-a,s+a)===!1||o<a&&this.left.forEachInvertedInner(r,Math.min(i,a),o,s)===!1)return!1},t.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var o=this.left.length;return i<=o?this.left.slice(r,i):r>=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Ii);const gqt=500;class wl{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let s=t.tr,a,l,c=[],u=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),o=i.maps.length),o--,u.push(d);return}if(i){u.push(new Yd(d.map));let h=d.step.map(i.slice(o)),p;h&&s.maybeStep(h).doc&&(p=s.mapping.maps[s.mapping.maps.length-1],c.push(new Yd(p,void 0,void 0,c.length+u.length))),o--,p&&i.appendMap(p,o)}else s.maybeStep(d.step);if(d.selection)return a=i?d.selection.map(i.slice(o)):d.selection,l=new wl(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(t,n,r,i){let o=[],s=this.eventCount,a=this.items,l=!i&&a.length?a.get(a.length-1):null;for(let u=0;u<t.steps.length;u++){let d=t.steps[u].invert(t.docs[u]),f=new Yd(t.mapping.maps[u],d,n),h;(h=l&&l.merge(f))&&(f=h,u?o.pop():a=a.slice(0,a.length-1)),o.push(f),n&&(s++,n=void 0),i||(l=f)}let c=s-r.depth;return c>yqt&&(a=vqt(a,c),s-=c),new wl(a.append(o),s)}remapping(t,n){let r=new M1;return this.items.forEach((i,o)=>{let s=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},t,n),r}addMaps(t){return this.eventCount==0?this:new wl(this.items.append(t.map(n=>new Yd(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,s=t.steps.length,a=this.eventCount;this.items.forEach(f=>{f.selection&&a--},i);let l=n;this.items.forEach(f=>{let h=o.getMirror(--l);if(h==null)return;s=Math.min(s,h);let p=o.maps[h];if(f.step){let m=t.steps[h].invert(t.docs[h]),g=f.selection&&f.selection.map(o.slice(l+1,h));g&&a++,r.push(new Yd(p,m,g))}else r.push(new Yd(p))},i);let c=[];for(let f=n;f<s;f++)c.push(new Yd(o.maps[f]));let u=this.items.slice(0,i).append(c).append(r),d=new wl(u,a);return d.emptyItemCount()>gqt&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((s,a)=>{if(a>=t)i.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=s.selection&&s.selection.map(n.slice(r));u&&o++;let d=new Yd(c.invert(),l,u),f,h=i.length-1;(f=i.length&&i[h].merge(d))?i[h]=f:i.push(d)}}else s.map&&r--},this.items.length,0),new wl(Ii.from(i.reverse()),o)}}wl.empty=new wl(Ii.empty,0);function vqt(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}let Yd=class iMe{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new iMe(n.getMap().invert(),n,this.selection)}}};class ff{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const yqt=20;function bqt(e,t,n,r){let i=n.getMeta(_m),o;if(i)return i.historyState;n.getMeta(Eqt)&&(e=new ff(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(s&&s.getMeta(_m))return s.getMeta(_m).redo?new ff(e.done.addTransform(n,void 0,r,JT(t)),e.undone,Iae(n.mapping.maps),e.prevTime,e.prevComposition):new ff(e.done,e.undone.addTransform(n,void 0,r,JT(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=e.prevTime==0||!s&&e.prevComposition!=a&&(e.prevTime<(n.time||0)-r.newGroupDelay||!wqt(n,e.prevRanges)),c=s?hF(e.prevRanges,n.mapping):Iae(n.mapping.maps);return new ff(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,JT(t)),wl.empty,c,n.time,a??e.prevComposition)}else return(o=n.getMeta("rebased"))?new ff(e.done.rebased(n,o),e.undone.rebased(n,o),hF(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new ff(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),hF(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function wqt(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o<t.length;o+=2)r<=t[o+1]&&i>=t[o]&&(n=!0)}),n}function Iae(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,i,o,s)=>t.push(o,s));return t}function hF(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}function xqt(e,t,n){let r=JT(t),i=_m.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new ff(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(_m,{redo:n,historyState:l})}let pF=!1,Rae=null;function JT(e){let t=e.plugins;if(Rae!=t){pF=!1,Rae=t;for(let n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){pF=!0;break}}return pF}const _m=new Bn("history"),Eqt=new Bn("closeHistory");function Sqt(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Fn({key:_m,state:{init(){return new ff(wl.empty,wl.empty,null,0,-1)},apply(t,n,r){return bqt(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(t,n){let r=n.inputType,i=r=="historyUndo"?sMe:r=="historyRedo"?aMe:null;return!i||!t.editable?!1:(n.preventDefault(),i(t.state,t.dispatch))}}}})}function oMe(e,t){return(n,r)=>{let i=_m.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let o=xqt(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}const sMe=oMe(!1,!0),aMe=oMe(!0,!0);cr.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc;if(((e==null?void 0:e.mode)||this.options.mode)==="textSize"){const r=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(r)}return t.nodeSize},this.storage.words=e=>{const t=(e==null?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Fn({key:new Bn("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const i=this.options.limit;if(i==null||i===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>i){const s=o-i,a=0,l=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const c=r.tr.deleteRange(a,l);return e=!0,c}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||i>r&&o>r&&o<=i)return!0;if(i>r&&o>r&&o>i||!t.getMeta("paste"))return!1;const a=t.selection.$head.pos,l=o-r,c=a-l,u=a;return t.deleteRange(c,u),!(this.storage.characters({node:t.doc})>r)}})]}});var _qt=cr.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[sqt(this.options)]}});cr.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Fn({key:new Bn("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,o=[];if(!n||!r)return sr.create(e,[]);let s=0;this.options.mode==="deepest"&&e.descendants((l,c)=>{if(l.isText)return;if(!(i>=c&&i<=c+l.nodeSize-1))return!1;s+=1});let a=0;return e.descendants((l,c)=>{if(l.isText||!(i>=c&&i<=c+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&s-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";o.push(vo.node(c,c+l.nodeSize,{class:this.options.className}))}),sr.create(e,o)}}})]}});var kqt=cr.create({name:"gapCursor",addProseMirrorPlugins(){return[uqt()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=ln(Ge(e,"allowGapCursor",n)))!=null?t:null}}}),Mae="placeholder";function Cqt(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var Tqt=cr.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Mae,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const e=this.options.dataAttribute?`data-${Cqt(this.options.dataAttribute)}`:`data-${Mae}`;return[new Fn({key:new Bn("placeholder"),props:{decorations:({doc:t,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=n,o=[];if(!r)return null;const s=this.editor.isEmpty;return t.descendants((a,l)=>{const c=i>=l&&i<=l+a.nodeSize,u=!a.isLeaf&&wD(a);if(!a.type.isTextblock)return this.options.includeChildren;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const f=vo.node(l,l+a.nodeSize,{class:d.join(" "),[e]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:c}):this.options.placeholder});o.push(f)}return this.options.includeChildren}),sr.create(t,o)}}})]}});cr.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new Fn({key:new Bn("selection"),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||QIe(n.selection)||e.view.dragging?null:sr.create(n.doc,[vo.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});var Aqt="skipTrailingNode";function Nae({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(t==null?void 0:t.type)===e}var Oqt=cr.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const t=new Bn(this.name),n=this.options.node||((e=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,i])=>i).filter(i=>(this.options.notAfter||[]).concat(n).includes(i.name));return[new Fn({key:t,appendTransaction:(i,o,s)=>{const{doc:a,tr:l,schema:c}=s,u=t.getState(s),d=a.content.size,f=c.nodes[n];if(!i.some(h=>h.getMeta(Aqt))&&u)return l.insert(d,f.create())},state:{init:(i,o)=>{const s=o.tr.doc.lastChild;return!Nae({node:s,types:r})},apply:(i,o)=>{if(!i.docChanged||i.getMeta("__uniqueIDTransaction"))return o;const s=i.doc.lastChild;return!Nae({node:s,types:r})}}})]}}),Pqt=cr.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>sMe(e,t),redo:()=>({state:e,dispatch:t})=>aMe(e,t)}},addProseMirrorPlugins(){return[Sqt(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),Iqt=cr.create({name:"starterKit",addExtensions(){var e,t,n,r;const i=[];return this.options.bold!==!1&&i.push(tKt.configure(this.options.bold)),this.options.blockquote!==!1&&i.push(X7t.configure(this.options.blockquote)),this.options.bulletList!==!1&&i.push(HRe.configure(this.options.bulletList)),this.options.code!==!1&&i.push(iKt.configure(this.options.code)),this.options.codeBlock!==!1&&i.push(aKt.configure(this.options.codeBlock)),this.options.document!==!1&&i.push(lKt.configure(this.options.document)),this.options.dropcursor!==!1&&i.push(_qt.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&i.push(kqt.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&i.push(cKt.configure(this.options.hardBreak)),this.options.heading!==!1&&i.push(uKt.configure(this.options.heading)),this.options.undoRedo!==!1&&i.push(Pqt.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&i.push(dKt.configure(this.options.horizontalRule)),this.options.italic!==!1&&i.push(gKt.configure(this.options.italic)),this.options.listItem!==!1&&i.push(KRe.configure(this.options.listItem)),this.options.listKeymap!==!1&&i.push(QRe.configure((e=this.options)==null?void 0:e.listKeymap)),this.options.link!==!1&&i.push(WRe.configure((t=this.options)==null?void 0:t.link)),this.options.orderedList!==!1&&i.push(eMe.configure(this.options.orderedList)),this.options.paragraph!==!1&&i.push(tqt.configure(this.options.paragraph)),this.options.strike!==!1&&i.push(iqt.configure(this.options.strike)),this.options.text!==!1&&i.push(oqt.configure(this.options.text)),this.options.underline!==!1&&i.push(tMe.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&i.push(Oqt.configure((r=this.options)==null?void 0:r.trailingNode)),i}}
vendor: 5,923 bytes, line 1274
1274),Pin=Iqt,Iin=Tqt,Rqt=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Mqt=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Nqt=np.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",Ur(this.options.HTMLAttributes,e),0]},renderMarkdown:(e,t)=>`==${t.renderChildren(e)}==`,parseMarkdown:(e,t)=>t.applyMark("highlight",t.parseInline(e.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:e=>e.indexOf("=="),tokenize(e,t,n){const i=/^(==)([^=]+)(==)/.exec(e);if(i){const o=i[2].trim(),s=n.inlineTokens(o);return{type:"highlight",raw:i[0],text:o,tokens:s}}}},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[lg({find:Rqt,type:this.type})]},addPasteRules(){return[Ph({find:Mqt,type:this.type})]}}),Rin=Nqt;function _7(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lg=_7();function lMe(e){Lg=e}var Dp={exec:()=>null};function Ht(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Bo.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var Dqt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Bo={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Lqt=/^(?:[ \t]*(?:\n|$))+/,$qt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Fqt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,T_=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Bqt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,k7=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,cMe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uMe=Ht(cMe).replace(/bull/g,k7).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),jqt=Ht(cMe).replace(/bull/g,k7).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),C7=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zqt=/^[^\n]+/,T7=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Uqt=Ht(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",T7).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Vqt=Ht(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,k7).getRegex(),_D="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A7=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Wqt=Ht("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
1274)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",A7).replace("tag",_D).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dMe=Ht(C7).replace("hr",T_).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_D).getRegex(),Hqt=Ht(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dMe).getRegex(),O7={blockquote:Hqt,code:$qt,def:Uqt,fences:Fqt,heading:Bqt,hr:T_,html:Wqt,lheading:uMe,list:Vqt,newline:Lqt,paragraph:dMe,table:Dp,text:zqt},Dae=Ht("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",T_).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_D).getRegex(),Kqt={...O7,lheading:jqt,table:Dae,paragraph:Ht(C7).replace("hr",T_).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dae).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_D).getRegex()},qqt={...O7,html:Ht(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",A7).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dp,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ht(C7).replace("hr",T_).replace("heading",` *#{1,6} *[^ 1275]`).replace("lheading",uMe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Gqt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Yqt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fMe=/^( {2,}|\\)\n(?!\s*$)/,Xqt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,P0=/[\p{P}\p{S}]/u,kD=/[\s\p{P}\p{S}]/u,P7=/[^\s\p{P}\p{S}]/u,Zqt=Ht(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kD).getRegex(),hMe=/(?!~)[\p{P}\p{S}]/u,Qqt=/(?!~)[\s\p{P}\p{S}]/u,Jqt=/(?:[^\s\p{P}\p{S}
vendor: 17,924 bytes, lines 1275-1299
1275]|~)/u,eGt=Ht(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Dqt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pMe=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,tGt=Ht(pMe,"u").replace(/punct/g,P0).getRegex(),nGt=Ht(pMe,"u").replace(/punct/g,hMe).getRegex(),mMe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rGt=Ht(mMe,"gu").replace(/notPunctSpace/g,P7).replace(/punctSpace/g,kD).replace(/punct/g,P0).getRegex(),iGt=Ht(mMe,"gu").replace(/notPunctSpace/g,Jqt).replace(/punctSpace/g,Qqt).replace(/punct/g,hMe).getRegex(),oGt=Ht("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,P7).replace(/punctSpace/g,kD).replace(/punct/g,P0).getRegex(),sGt=Ht(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,P0).getRegex(),aGt="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",lGt=Ht(aGt,"gu").replace(/notPunctSpace/g,P7).replace(/punctSpace/g,kD).replace(/punct/g,P0).getRegex(),cGt=Ht(/\\(punct)/,"gu").replace(/punct/g,P0).getRegex(),uGt=Ht(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),dGt=Ht(A7).replace("(?:-->|$)","-->").getRegex(),fGt=Ht("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",dGt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),VI=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,hGt=Ht(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",VI).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gMe=Ht(/^!?\[(label)\]\[(ref)\]/).replace("label",VI).replace("ref",T7).getRegex(),vMe=Ht(/^!?\[(ref)\](?:\[\])?/).replace("ref",T7).getRegex(),pGt=Ht("reflink|nolink(?!\\()","g").replace("reflink",gMe).replace("nolink",vMe).getRegex(),Lae=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,I7={_backpedal:Dp,anyPunctuation:cGt,autolink:uGt,blockSkip:eGt,br:fMe,code:Yqt,del:Dp,delLDelim:Dp,delRDelim:Dp,emStrongLDelim:tGt,emStrongRDelimAst:rGt,emStrongRDelimUnd:oGt,escape:Gqt,link:hGt,nolink:vMe,punctuation:Zqt,reflink:gMe,reflinkSearch:pGt,tag:fGt,text:Xqt,url:Dp},mGt={...I7,link:Ht(/^!?\[(label)\]\((.*?)\)/).replace("label",VI).getRegex(),reflink:Ht(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",VI).getRegex()},hU={...I7,emStrongRDelimAst:iGt,emStrongLDelim:nGt,delLDelim:sGt,delRDelim:lGt,url:Ht(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Lae).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ht(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Lae).getRegex()},gGt={...hU,br:Ht(fMe).replace("{2,}","*").getRegex(),text:Ht(hU.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},LC={normal:O7,gfm:Kqt,pedantic:qqt},Dw={normal:I7,gfm:hU,breaks:gGt,pedantic:mGt},vGt={"&":"&","<":"<",">":">",'"':""","'":"'"},$ae=e=>vGt[e];function sc(e,t){if(t){if(Bo.escapeTest.test(e))return e.replace(Bo.escapeReplace,$ae)}else if(Bo.escapeTestNoEncode.test(e))return e.replace(Bo.escapeReplaceNoEncode,$ae);return e}function Fae(e){try{e=encodeURI(e).replace(Bo.percentDecode,"%")}catch{return null}return e}function Bae(e,t){var o;let n=e.replace(Bo.findPipe,(s,a,l)=>{let c=!1,u=a;for(;--u>=0&&l[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Bo.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((o=r.at(-1))!=null&&o.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Bo.slashPipe,"|");return r}function Lw(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function yGt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function bGt(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}function jae(e,t,n,r,i){let o=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function wGt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` 1276`).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=i.length?o.slice(i.length):o}).join(` 1277`)}var WI=class{constructor(e){Nt(this,"options");Nt(this,"rules");Nt(this,"lexer");this.options=e||Lg}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Lw(n,` 1278`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=wGt(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Lw(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Lw(t[0],` 1279`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Lw(t[0],` 1280`).split(` 1281`),r="",i="",o=[];for(;n.length>0;){let s=!1,a=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))a.push(n[l]),s=!0;else if(!s)a.push(n[l]);else break;n=n.slice(l);let c=a.join(` 1282`),u=c.replace(this.rules.other.blockquoteSetextReplace,` 1283 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r} 1284${c}`:c,i=i?`${i} 1285${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=d,n.length===0)break;let f=o.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let h=f,p=h.raw+` 1286`+n.join(` 1287`),m=this.blockquote(p);o[o.length-1]=m,r=r.substring(0,r.length-h.raw.length)+m.raw,i=i.substring(0,i.length-h.text.length)+m.text;break}else if((f==null?void 0:f.type)==="list"){let h=f,p=h.raw+` 1288`+n.join(` 1289`),m=this.list(p);o[o.length-1]=m,r=r.substring(0,r.length-f.raw.length)+m.raw,i=i.substring(0,i.length-h.raw.length)+m.raw,n=p.substring(o.at(-1).raw.length).split(` 1290`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),o=i.length>1,s={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let a=this.rules.other.listItemRegex(i),l=!1;for(;e;){let u=!1,d="",f="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let h=bGt(t[2].split(` 1291`,1)[0],t[1].length),p=e.split(` 1292`,1)[0],m=!h.trim(),g=0;if(this.options.pedantic?(g=2,f=h.trimStart()):m?g=t[1].length+1:(g=h.search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=h.slice(g),g+=t[1].length),m&&this.rules.other.blankLine.test(p)&&(d+=p+` 1293`,e=e.substring(p.length+1),u=!0),!u){let v=this.rules.other.nextBulletRegex(g),b=this.rules.other.hrRegex(g),w=this.rules.other.fencesBeginRegex(g),x=this.rules.other.headingBeginRegex(g),E=this.rules.other.htmlBeginRegex(g),S=this.rules.other.blockquoteBeginRegex(g);for(;e;){let _=e.split(` 1294`,1)[0],k;if(p=_,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),k=p):k=p.replace(this.rules.other.tabCharGlobal," "),w.test(p)||x.test(p)||E.test(p)||S.test(p)||v.test(p)||b.test(p))break;if(k.search(this.rules.other.nonSpaceChar)>=g||!p.trim())f+=` 1295`+k.slice(g);else{if(m||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(h)||x.test(h)||b.test(h))break;f+=` 1296`+p}m=!p.trim(),d+=_+` 1297`,e=e.substring(_.length+1),h=k.slice(g)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),s.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),s.raw+=d}let c=s.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let u of s.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((n=u.tokens[0])==null?void 0:n.type)==="text"||((r=u.tokens[0])==null?void 0:r.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(u.raw);if(d){let f={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};u.checked=f.checked,s.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=f.raw+u.tokens[0].raw,u.tokens[0].text=f.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(f)):u.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):u.tokens.unshift(f)}}if(!s.loose){let d=u.tokens.filter(h=>h.type==="space"),f=d.length>0&&d.some(h=>this.rules.other.anyLine.test(h.raw));s.loose=f}}if(s.loose)for(let u of s.items){u.loose=!0;for(let d of u.tokens)d.type==="text"&&(d.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Bae(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 1298`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<n.length;a++)o.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:o.align[a]});for(let a of i)o.rows.push(Bae(a,o.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[c]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===` 1299`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=Lw(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=yGt(t[2],"()");if(o===-2)return;if(o>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),jae(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return jae(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,s,a=i,l=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);(r=c.exec(t))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(s=[...o].length,r[3]||r[4]){a+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){l+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a+l);let u=[...r[0]][0].length,d=e.slice(0,i+r.index+u+s);if(Math.min(i,s)%2){let h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,s,a=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(s=[...o].length,s!==i))continue;if(r[3]||r[4]){a+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a);let c=[...r[0]][0].length,u=e.slice(0,i+r.index+c+s),d=u.slice(i,-i);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let o;do o=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(o!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},pl=class pU{constructor(t){Nt(this,"tokens");Nt(this,"options");Nt(this,"state");Nt(this,"inlineQueue");Nt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Lg,this.options.tokenizer=this.options.tokenizer||new WI,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Bo,block:LC.normal,inline:Dw.normal};this.options.pedantic?(n.block=LC.pedantic,n.inline=Dw.pedantic):this.options.gfm&&(n.block=LC.gfm,this.options.breaks?n.inline=Dw.breaks:n.inline=Dw.gfm),this.tokenizer.rules=n}
vendor: 12,133 bytes, lines 1299-1331
1299static get rules(){return{block:LC,inline:Dw}}static lex(t,n){return new pU(n).lex(t)}static lexInline(t,n){return new pU(n).inlineTokens(t)}lex(t){t=t.replace(Bo.carriageReturn,` 1300`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,o,s;for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Bo.tabCharGlobal," ").replace(Bo.spaceLine,""));t;){let a;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(c=>(a=c.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let c=n.at(-1);a.raw.length===1&&c!==void 0?c.raw+=` 1301`:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(` 1302`)?"":` 1303`)+a.raw,c.text+=` 1304`+a.text,this.inlineQueue.at(-1).src=c.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(` 1305`)?"":` 1306`)+a.raw,c.text+=` 1307`+a.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},n.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let c=1/0,u=t.slice(1),d;this.options.extensions.startBlock.forEach(f=>{d=f.call({lexer:this},u),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(a=this.tokenizer.paragraph(l))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(` 1308`)?"":` 1309`)+a.raw,c.text+=` 1310`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(a),r=l.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(` 1311`)?"":` 1312`)+a.raw,c.text+=` 1313`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(a);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var l,c,u,d,f;this.tokenizer.lexer=this;let r=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)o=i[2]?i[2].length:0,r=r.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let s=!1,a="";for(;t;){s||(a=""),s=!1;let h;if((d=(u=this.options.extensions)==null?void 0:u.inline)!=null&&d.some(m=>(h=m.call({lexer:this},t,n))?(t=t.substring(h.raw.length),n.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let m=n.at(-1);h.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=h.raw,m.text+=h.text):n.push(h);continue}if(h=this.tokenizer.emStrong(t,r,a)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.del(t,r,a)){t=t.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),n.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),n.push(h);continue}let p=t;if((f=this.options.extensions)!=null&&f.startInline){let m=1/0,g=t.slice(1),v;this.options.extensions.startInline.forEach(b=>{v=b.call({lexer:this},g),typeof v=="number"&&v>=0&&(m=Math.min(m,v))}),m<1/0&&m>=0&&(p=t.substring(0,m+1))}if(h=this.tokenizer.inlineText(p)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(a=h.raw.slice(-1)),s=!0;let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=h.raw,m.text+=h.text):n.push(h);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},HI=class{constructor(e){Nt(this,"options");Nt(this,"parser");this.options=e||Lg}space(e){return""}code({text:e,lang:t,escaped:n}){var o;let r=(o=(t||"").match(Bo.notSpaceStart))==null?void 0:o[0],i=e.replace(Bo.endingNewline,"")+` 1314`;return r?'<pre><code class="language-'+sc(r)+'">'+(n?i:sc(i,!0))+`</code></pre> 1315`:"<pre><code>"+(n?i:sc(i,!0))+`</code></pre> 1316`}blockquote({tokens:e}){return`<blockquote> 1317${this.parser.parse(e)}</blockquote> 1318`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 1319`}hr(e){return`<hr> 1320`}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let a=e.items[s];r+=this.listitem(a)}let i=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+i+o+`> 1321`+r+"</"+i+`> 1322`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 1323`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 1324`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let o=e.rows[i];n="";for(let s=0;s<o.length;s++)n+=this.tablecell(o[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 1325<thead> 1326`+t+`</thead> 1327`+r+`</table> 1328`}tablerow({text:e}){return`<tr> 1329${e}</tr> 1330`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 1331`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${sc(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Fae(e);if(i===null)return r;e=i;let o='<a href="'+e+'"';return t&&(o+=' title="'+sc(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Fae(e);if(i===null)return sc(n);e=i;let o=`<img src="${e}" alt="${sc(n)}"`;return t&&(o+=` title="${sc(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:sc(e.text)}},R7=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ml=class mU{constructor(t){Nt(this,"options");Nt(this,"renderer");Nt(this,"textRenderer");this.options=t||Lg,this.options.renderer=this.options.renderer||new HI,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new R7}static parse(t,n){return new mU(n).parse(t)}static parseInline(t,n){return new mU(n).parseInline(t)}parse(t){var r,i;this.renderer.parser=this;let n="";for(let o=0;o<t.length;o++){let s=t[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[s.type]){let l=s,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=c||"";continue}}let a=s;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,n=this.renderer){var i,o;this.renderer.parser=this;let r="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=c||"";continue}}let l=a;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"checkbox":{r+=n.checkbox(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},WC,vx=(WC=class{constructor(e){Nt(this,"options");Nt(this,"block");this.options=e||Lg}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pl.lex:pl.lexInline}provideParser(e=this.block){return e?ml.parse:ml.parseInline}},Nt(WC,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Nt(WC,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),WC),xGt=class{constructor(...e){Nt(this,"defaults",_7());Nt(this,"options",this.setOptions);Nt(this,"parse",this.parseMarkdown(!0));Nt(this,"parseInline",this.parseMarkdown(!1));Nt(this,"Parser",ml);Nt(this,"Renderer",HI);Nt(this,"TextRenderer",R7);Nt(this,"Lexer",pl);Nt(this,"Tokenizer",WI);Nt(this,"Hooks",vx);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(let o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{let s=o;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of s.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let s=o;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=o;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let l=s[a].flat(1/0);n=n.concat(this.walkTokens(l,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>
vendor: 4,567 bytes, lines 1331-1334
1331{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=t.renderers[i.name];o?t.renderers[i.name]=function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=o.apply(this,s)),a}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new HI(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,a=n.renderer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new WI(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,a=n.tokenizer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new vx;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,a=n.hooks[s],l=i[s];vx.passThroughHooks.has(o)?i[s]=c=>{if(this.defaults.async&&vx.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await a.call(i,c);return l.call(i,d)})();let u=a.call(i,c);return l.call(i,u)}:i[s]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await a.apply(i,c);return d===!1&&(d=await l.apply(i,c)),d})();let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(s){let a=[];return a.push(o.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pl.lex(e,t??this.defaults)}parser(e,t){return ml.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,a=await(i.hooks?await i.hooks.provideLexer(e):e?pl.lex:pl.lexInline)(s,i),l=i.hooks?await i.hooks.processAllTokens(a):a;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser(e):e?ml.parse:ml.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer(e):e?pl.lex:pl.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let a=(i.hooks?i.hooks.provideParser(e):e?ml.parse:ml.parseInline)(s,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(s){return o(s)}}}onError(e,t){return n=>{if(n.message+=` 1332Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+sc(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},cg=new xGt;function mn(e,t){return cg.parse(e,t)}mn.options=mn.setOptions=function(e){return cg.setOptions(e),mn.defaults=cg.defaults,lMe(mn.defaults),mn};mn.getDefaults=_7;mn.defaults=Lg;mn.use=function(...e){return cg.use(...e),mn.defaults=cg.defaults,lMe(mn.defaults),mn};mn.walkTokens=function(e,t){return cg.walkTokens(e,t)};mn.parseInline=cg.parseInline;mn.Parser=ml;mn.parser=ml.parse;mn.Renderer=HI;mn.TextRenderer=R7;mn.Lexer=pl;mn.lexer=pl.lex;mn.Tokenizer=WI;mn.Hooks=vx;mn.parse=mn;mn.options;mn.setOptions;mn.use;mn.walkTokens;mn.parseInline;ml.parse;pl.lex;function EGt(e,t){const r=t.split(` 1333`).flatMap(i=>[i,""]).map(i=>`${e}${i}`).join(` 1334`);return r.slice(0,r.length-1)}function SGt(e,t){const n=[];
1334return Array.from(e.keys()).forEach(r=>{(!t||!t.marks||!t.marks.map(i=>i.type).includes(r))&&n.push(r)}),n}function _Gt(e,t){const n=[];return Array.from(t.entries()).forEach(([r,i])=>{e.has(r)||n.push({type:r,mark:i})}),n}function kGt(e,t,n,r){const i=!n,o=n&&n.type==="text"&&(!n.marks||n.marks.length===0),s=n&&n.type==="text"&&n.marks&&!r(t,new Map(n.marks.map(l=>[l.type,l]))),a=[];if(i||o||s)if(n&&n.type==="text"&&n.marks){const l=new Map(n.marks.map(c=>[c.type,c]));Array.from(e.keys()).reverse().forEach(c=>{l.has(c)||a.push(c)})}else(i||o)&&a.push(...Array.from(e.keys()).reverse());return a}function CGt(e,t){let n="";return Array.from(e.keys()).reverse().forEach(r=>{const i=e.get(r),o=t(r,i);o&&(n=o+n)}),e.clear(),n}function TGt(e,t,n){let r="";return Array.from(e.entries()).forEach(([i,o])=>{const s=n(i,o);s&&(r+=s),t.set(i,o)}),r}function mF(e){const n=(e.raw||e.text||"").match(/^(\s*)[-+*]\s+\[([ xX])\]\s+/);return n?{isTask:!0,checked:n[2].toLowerCase()==="x",indentLevel:n[1].length}:{isTask:!1,indentLevel:0}}function $C(e,t){return typeof e!="string"?"json":t}var AGt=class{constructor(e){this.activeParseLexer=null,this.baseExtensions=[],this.extensions=[],this.codeTypes=new Set,this.lastParseResult=null;var t,n,r,i,o;this.markedInstance=(t=e==null?void 0:e.marked)!=null?t:mn,this.indentStyle=(r=(n=e==null?void 0:e.indentation)==null?void 0:n.style)!=null?r:"space",this.indentSize=(o=(i=e==null?void 0:e.indentation)==null?void 0:i.size)!=null?o:2,this.baseExtensions=(e==null?void 0:e.extensions)||[],e!=null&&e.markedOptions&&typeof this.markedInstance.setOptions=="function"&&this.markedInstance.setOptions(e.markedOptions),this.registry=new Map,this.nodeTypeRegistry=new Map,e!=null&&e.extensions&&(this.baseExtensions=e.extensions,bD(e.extensions).forEac
1334h(a=>this.registerExtension(a)))}get instance(){return this.markedInstance}get indentCharacter(){return this.indentStyle==="space"?" ":" "}get indentString(){return this.indentCharacter.repeat(this.indentSize)}hasMarked(){return!!this.markedInstance}registerExtension(e){var t,n;this.extensions.push(e);const r=ln(Ge(e,"code")),i=e.name;r&&this.codeTypes.add(i);const o=Ge(e,"markdownTokenName")||i,s=Ge(e,"parseMarkdown"),a=Ge(e,"renderMarkdown"),l=Ge(e,"markdownTokenizer"),c=(t=Ge(e,"markdownOptions"))!=null?t:null,u=(n=c==null?void 0:c.indentsContent)!=null?n:!1,d=c==null?void 0:c.htmlReopen,f={tokenName:o,nodeName:i,parseMarkdown:s,renderMarkdown:a,isIndenting:u,htmlReopen:d,tokenizer:l};if(o&&s){const h=this.registry.get(o)||[];h.push(f),this.registry.set(o,h)}if(a){const h=this.nodeTypeRegistry.get(i)||[];h.push(f),this.nodeTypeRegistry.set(i,h)}l&&this.hasMarked()&&this.registerTokenizer(l)}createLexer(){return new this.markedInstance.Lexer}createTokenizerHelpers(e){return{inlineTokens:t=>e.inlineTokens(t),blockTokens:t=>e.blockTokens(t)}}tokenizeInline(e){var t;return((t=this.activeParseLexer)!=null?t:this.createLexer()).inlineTokens(e)}registerTokenizer(e){if(!this.hasMarked())return;const{name:t,start:n,level:r="inline",tokenize:i}=e,o=this.createTokenizerHelpers.bind(this),s=this.createLexer.bind(this);let a;n?a=typeof n=="function"?n:c=>c.indexOf(n):a=c=>{const u=i(c,[],this.createTokenizerHelpers(this.createLexer()));return u&&u.raw?c.indexOf(u.raw):-1};const l={name:t,level:r,start:a,tokenizer(c,u){const d=this.lexer?o(this.lexer):o(s()),f=i(c,u,d);if(f&&f.type)return{...f,type:f.type||t,raw:f.raw||"",tokens:f.tokens||[]}},childTokens:[]};this.markedInstance.use({extensions:[l]})}getHandlersForToken(e){try{return this.registry.get(e)||[]}catch{return[]}}getHandlerForToken(e){const t=this.getHandlersForToken(e);if(t.length>0)return t[0];const n=this.getHandlersForNodeType(e);return n.length>0?n[0]:void 0}getHandlersForNodeType(e){try{return this.nodeTypeRegistry.get(e)||[]}catch{return[]}}serialize(e){if(!e)return"";const t=this.renderNodes(e,e);return this.isEmptyOutput(t)?"":t}isEmptyOutput(e){return!e||e.trim()===""?!0:e.replace(/ /g,"").replace(/\u00A0/g,"").trim()===""}parse(e){if(!this.hasMarked())throw new Error("No marked instance available for parsing");const t=this.activeParseLexer,n=this.createLexer();this.activeParseLexer=n;try{const r=n.lex(e);return{type:"doc",content:this.parseTokens(r,!0)}}finally{this.activeParseLexer=t}}parseTokens(e,t=!1){const n=e.reduce((o,s,a)=>(s.type!=="space"&&o.push(a),o),[]);let r=-1,i=0;return e.flatMap((o,s)=>{for(var a;i<n.length&&n[i]<s;)r=n[i],i+=1;if(t&&o.type==="space"){const c=(a=n[i])!=null?a:-1;return this.createImplicitEmptyParagraphsFromSpace(o,r,c)}const l=this.parseToken(o,t);return l===null?[]:Array.isArray(l)?l:[l]})}createImplicitEmptyParagraphsFromSpace(e,t,n){const r=this.countParagraphSeparators(e.raw||"");if(r===0)return[];const o=Math.max(r-(t===-1||n===-1?0:1),0);return Array.from({length:o},()=>({type:"paragraph",content:[]}))}countParagraphSeparators(e){return(e.replace(/\r\n/g,` 1335`).match(/\n\n/g)||[]).length}parseToken(e,t=!1){if(!e.type)return null;if(e.type==="list")return this.parseListToken(e);const n=this.getHandlersForToken(e.type),r=this.createParseHelpers();if(n.find(o=>{if(!o.parseMarkdown)return!1;const s=o.parseMarkdown(e,r),a=this.normalizeParseResult(s);return a&&(!Array.isArray(a)||a.length>0)?(this.lastParseResult=a,!0):!1})&&this.lastParseResult){const o=this.lastParseResult;return this.lastParseResult=null,o}return this.parseFallbackToken(e,t)}parseListToken(e){if(!e.items||e.items.length===0)return this.parseTokenWithHandlers(e);const t=e.items.some(a=>mF(a).isTask),n=e.items.some(a=>!mF(a).isTask);if(!t||!n||this.getHandlersForToken("taskList").length===0)return this.parseTokenWithHandlers(e);const r=[];let i=[],o=null;for(let a=0;a<e.items.length;a+=1){const l=e.items[a],{isTask:c,checked:u,indentLevel:d}=mF(l);let f=l;if(c){const m=(l.raw||l.text||"").split(` 1336`),g=m[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/),v=g?g[2]:"";let b=[];if(m.length>1&&m.slice(1).join(` 1337`).trim()){const x=m.slice(1),E=x.filter(S=>S.trim());if(E.length>0){const S=Math.min(...E.map(C=>C.length-C.trimStart().length)),k=x.map(C=>C.trim()?C.slice(S):"").join(` 1338`).trim();k&&(b=this.markedInstance.lexer(`${k} 1339`))}}f={type:"taskItem",raw:"",mainContent:v,indentLevel:d,checked:u??!1,text:v,tokens:this.tokenizeInline(v),nestedTokens:b}}const h=c?"taskList":"list";o!==h?(i.length>0&&r.push({type:o,items:i}),i=[f],o=h):i.push(f)}i.length>0&&r.push({type:o,items:i});const s=[];for(let a=0;a<r.length;a+=1){const l=r[a],c={...e,type:l.type,items:l.items},u=this.parseToken(c);u&&(Array.isArray(u)?s.push(...u):s.push(u))}return s.length>0?s:null}parseTokenWithHandlers(e){if(!e.type)return null;const t=this.getHandlersForToken(e.type),n=this.createParseHelpers();if(t.find(i=>{if(!i.parseMarkdown)return!1;const o=i.parseMarkdown(e,n),s=this.normalizeParseResult(o);return s&&(!Array.isArray(s)||s.length>0)?(this.lastParseResult=s,!0):!1})&&this.lastParseResult){const i=this.lastParseResult;return this.lastParseResult=null,i}return this.parseFallbackToken(e)}createParseHelpers(){return{parseInline:e=>this.parseInlineTokens(e),parseChildren:e=>this.parseTokens(e),parseBlockChildren:e=>this.parseTokens(e,!0),createTextNode:(e,t)=>({type:"text",text:e,marks:t||void 0}),createNode:(e,t,n)=>{const r={type:e,attrs:t||void 0,content:n||void 0};return(!t||Object.keys(t).length===0)&&delete r.attrs,r},applyMark:(e,t,n)=>({mark:e,content:t,attrs:n&&Object.keys(n).length>0?n:void 0})}}escapeRegex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}parseInlineTokens(e){var t,n,r,i;const o=[];for(let s=0;s<e.length;s+=1){const a=e[s];if(a.type==="text")o.push({type:"text",text:aae(a.text||"")});else if(a.type==="html"){const l=((n=(t=a.raw)!=null?t:a.text)!=null?n:"").toString(),c=/^<\/[\s]*[\w-]+/i.test(l),u=l.match(/^<[\s]
1339*([\w-]+)(\s|>|\/|$)/i);if(!c&&u&&!/\/>$/.test(l)){const f=u[1],h=this.escapeRegex(f),p=new RegExp(`^<\\/\\s*${h}\\b`,"i");let m=-1;const g=[l];for(let v=s+1;v<e.length;v+=1){const b=e[v],w=((i=(r=b.raw)!=null?r:b.text)!=null?i:"").toString();if(g.push(w),b.type==="html"&&p.test(w)){m=v;break}}if(m!==-1){const v=g.join(""),b={type:"html",raw:v,text:v,block:!1},w=this.parseHTMLToken(b);if(w){const x=this.normalizeParseResult(w);Array.isArray(x)?o.push(...x):x&&o.push(x)}s=m;continue}}const d=this.parseHTMLToken(a);if(d){const f=this.normalizeParseResult(d);Array.isArray(f)?o.push(...f):f&&o.push(f)}}else if(a.type){const l=this.getHandlerForToken(a.type);if(l&&l.parseMarkdown){const c=this.createParseHelpers(),u=l.parseMarkdown(a,c);if(this.isMarkResult(u)){const d=this.applyMarkToContent(u.mark,u.content,u.attrs);o.push(...d)}else{const d=this.normalizeParseResult(u);Array.isArray(d)?o.push(...d):d&&o.push(d)}}else a.tokens&&o.push(...this.parseInlineTokens(a.tokens))}}return o}applyMarkToContent(e,t,n){return t.map(r=>{if(r.type==="text"){const i=r.marks||[],o=n?{type:e,attrs:n}:{type:e};return{...r,marks:[...i,o]}}return{...r,content:r.content?this.applyMarkToContent(e,r.content,n):void 0}})}isMarkResult(e){return e&&typeof e=="object"&&"mark"in e}normalizeParseResult(e){return e?this.isMarkResult(e)?e.content:e:null}parseFallbackToken(e,t=!1){switch(e.type){case"paragraph":return{type:"paragraph",content:e.tokens?this.parseInlineTokens(e.tokens):[]};case"heading":return{type:"heading",attrs:{level:e.depth||1},content:e.tokens?this.parseInlineTokens(e.tokens):[]};case"text":return{type:"text",text:aae(e.text||"")};case"html":return this.parseHTMLToken(e);case"space":return null;default:return e.tokens?this.parseTokens(e.tokens,t):null}}parseHTMLToken(e){const t=e.text||e.raw||"";if(!t.trim())return null;if(typeof window>"u")return e.block?{type:"paragraph",content:[{type:"text",text:t}]}:{type:"text",text:t};try{const n=a9t(t,this.baseExtensions);return n.type==="doc"&&n.content?e.block?n.content:n.content.length===1&&n.content[0].type==="paragraph"&&n.content[0].content?n.content[0].content:n.content:n}catch(n){throw new Error(`Failed to parse HTML in markdown: ${n}`)}}encodeTextForMarkdown(e,t,n){return(n==null?void 0:n.type)!=null&&this.codeTypes.has(n.type)||(t.marks||[]).some(i=>this.codeTypes.has(typeof i=="string"?i:i.type))?e:i8t(e)}renderNodeToMarkdown(e,t,n=0,r=0,i={}){var o;if(e.type==="text")return this.encodeTextForMarkdown(e.text||"",e,t);if(!e.type)return"";const s=this.getHandlerForToken(e.type);if(!s)return"";const a=Array.isArray(t==null?void 0:t.content)&&n>0?t.content[n-1]:void 0,l={renderChildren:(d,f)=>{const h=s.isIndenting?r+1:r;return!Array.isArray(d)&&d.content?this.renderNodes(d.content,e,f||"",n,h):this.renderNodes(d,e,f||"",n,h)},renderChild:(d,f)=>{const h=s.isIndenting?r+1:r;return this.renderNodeToMarkdown(d,e,f,h)},indent:d=>this.indentString+d,wrapInBlock:EGt},c={index:n,level:r,parentType:t==null?void 0:t.type,previousNode:a,meta:{parentAttrs:t==null?void 0:t.attrs,...i}};return((o=s.renderMarkdown)==null?void 0:o.call(s,e,l,c))||""}renderNodes(e,t,n="",r=0,i=0){return Array.isArray(e)?this.renderNodesWithMarkBoundaries(e,t,n,i):e.type?this.renderNodeToMarkdown(e,t,r,i):""}renderNodesWithMarkBoundaries(e,t,n="",r=0){const i=[],o=new Map,s=new Set,a=new Map;return e.forEach((l,c)=>{const u=c<e.length-1?e[c+1]:null;if(l.type)if(l.type==="text"){let d=this.encodeTextForMarkdown(l.text||"",l,t);const f=new Map((l.marks||[]).map(E=>[E.type,E])),h=_Gt(o,f),p=SGt(f,u),m=p.filter(E=>o.has(E)),g=m.length>0&&h.length>0;let v="";if(p.length>0&&!g){const E=d.match(/(\s+)$/);E&&(v=E[1],d=d.slice(0,-v.length))}g||p.forEach(E=>{if(!o.has(E))return;const S=f.get(E),_=this.getMarkClosing(E,S,a.get(E));_&&(d+=_),o.has(E)&&(o.delete(E),a.delete(E))});let b="";if(h.length>0){const E=d.match(/^(\s+)/);E&&(b=E[1],d=d.slice(b.length))}
1339h.forEach(({type:E,mark:S})=>{const _=s.has(E)?"html":"markdown",k=this.getMarkOpening(E,S,_);k&&(d=k+d),a.set(E,_),s.delete(E)}),g||h.slice().reverse().forEach(({type:E,mark:S})=>{o.set(E,S)}),d=b+d;let w;if(g){const E=new Set(((u==null?void 0:u.marks)||[]).map(S=>S.type));h.forEach(({type:S})=>{E.has(S)&&this.getHtmlReopenTags(S)&&s.add(S)}),w=[...h.map(S=>S.type),...m]}else w=kGt(o,f,u,this.markSetsEqual.bind(this));let x="";if(w.length>0){const E=d.match(/(\s+)$/);E&&(x=E[1],d=d.slice(0,-x.length))}w.forEach(E=>{var S;const _=(S=o.get(E))!=null?S:f.get(E),k=this.getMarkClosing(E,_,a.get(E));k&&(d+=k),o.delete(E),a.delete(E)}),d+=x,d+=v,i.push(d)}else{const d=new Map(o),f=new Map(a),h=CGt(o,(g,v)=>this.getMarkClosing(g,v,a.get(g)));a.clear();const p=this.renderNodeToMarkdown(l,t,c,r),m=l.type==="hardBreak"?"":TGt(d,o,(g,v)=>{var b;const w=(b=f.get(g))!=null?b:"markdown";return a.set(g,w),this.getMarkOpening(g,v,w)});i.push(h+p+m)}}),i.join(n)}getMarkOpening(e,t,n="markdown"){var r;if(n==="html")return((r=this.getHtmlReopenTags(e))==null?void 0:r.open)||"";const i=this.getHandlersForNodeType(e),o=i.length>0?i[0]:void 0;if(!o||!o.renderMarkdown)return"";const s="î__TIPTAP_MARKDOWN_PLACEHOLDER__î",a={type:e,attrs:t.attrs||{},content:[{type:"text",text:s}]};try{const l=o.renderMarkdown(a,{renderChildren:()=>s,renderChild:()=>s,indent:u=>u,wrapInBlock:(u,d)=>u+d},{index:0,level:0,parentType:"text",meta:{}}),c=l.indexOf(s);return c>=0?l.substring(0,c):""}catch(l){throw new Error(`Failed to get mark opening for ${e}: ${l}`)}}getMarkClosing(e,t,n="markdown"){var r;if(n==="html")return((r=this.getHtmlReopenTags(e))==null?void 0:r.close)||"";const i=this.getHandlersForNodeType(e),o=i.length>0?i[0]:void 0;if(!o||!o.renderMarkdown)return"";const s="î__TIPTAP_MARKDOWN_PLACEHOLDER__î",a={type:e,attrs:t.attrs||{},content:[{type:"text",text:s}]};try{const l=o.renderMarkdown(a,{renderChildren:()=>s,renderChild:()=>s,indent:d=>d,wrapInBlock:(d,f)=>d+f},{index:0,level:0,parentType:"text",meta:{}}),c=l.indexOf(s),u=c+s.length;return c>=0?l.substring(u):""}catch(l){throw new Error(`Failed to get mark closing for ${e}: ${l}`)}}getHtmlReopenTags(e){const t=this.getHandlersForNodeType(e),n=t.length>0?t[0]:void 0;return n==null?void 0:n.htmlReopen}markSetsEqual(e,t){return e.size!==t.size?!1:Array.from(e.keys()).every(n=>t.has(n))}},zae=AGt,Min=cr.create({name:"markdown",addOptions(){return{indentation:{style:"space",size:2},marked:void 0,markedOptions:{}}},addCommands(){return{setContent:(e,t)=>{if(!(t!=null&&t.contentType)||$C(e,t==null?void 0:t.contentType)!=="markdown"||!this.editor.markdown)return sl.setContent(e,t);const r=this.editor.markdown.parse(e);return sl.setContent(r,t)},insertContent:(e,t)=>{if(!(t!=null&&t.contentType)||$C(e,t==null?void 0:t.contentType)!=="markdown"||!this.editor.markdown)return sl.insertContent(e,t);const r=this.editor.markdown.parse(e);return sl.insertContent(r,t)},insertContentAt:(e,t,n)=>{if(!(n!=null&&n.contentType)||$C(t,n==null?void 0:n.contentType)!=="markdown"||!this.editor.markdown)return sl.insertContentAt(e,t,n);const i=this.editor.markdown.parse(t);return sl.insertContentAt(e,i,n)}}},addStorage(){return{manager:new zae({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:[]})}},onBeforeCreate(){if(this.editor.markdown){console.error("[tiptap][markdown]: There is already a `markdown` property on the editor instance. This might lead to unexpected behavior.");return}if(this.storage.manager=new zae({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:this.editor.extensionManager.baseExtensions}),this.editor.markdown=this.storage.manager,this.editor.getMarkdown=()=>this.storage.manager.serialize(this.editor.getJSON()),!this.editor.options.contentType||$C(this.editor.options.content,this.editor.options.contentType)!=="markdown")return;if(!this.editor.markdown)throw new Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the Markdown extension is not added to the editor. Please add the Markdown extension to use this feature.');if(this.editor.options.content===void 0||typeof this.editor.options.content!="string")throw new Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the initial content is not a string. Please provide the initial content as a markdown string.');const t=this.editor.markdown.parse(this.editor.options.content);this.editor.options.content=t}});function OGt(e){var t;const{char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:s,$position:a}=e,l=r&&!i,c=r8t(n),u=new RegExp(`\\s${c}$`),d=s?"^":"",f=i?"":c,h=l?new RegExp(`${d}${c}.*?(?=\\s${f}|$)`,"gm"):new RegExp(`${d}(?:^)?${c}[^\\s${f}]*`,"gm"),p=((t=a.nodeBefore)==null?void 0:t.isText)&&a.nodeBefore.text;if(!p)return null;const m=a.pos-p.length,g=Array.from(p.matchAll(h)).pop();if(!g||g.input===void 0||g.index===void 0)return null;const v=g.input.slice(Math.max(0,g.index-1),g.index),b=new RegExp(`^[${o==null?void 0:o.join("")}\0]?$`).test(v);
1339if(o!==null&&!b)return null;const w=m+g.index;let x=w+g[0].length;return l&&u.test(p.slice(x-1,x+1))&&(g[0]+=" ",x+=1),w<a.pos&&x>=a.pos?{range:{from:w,to:x},query:g[0].slice(n.length),text:g[0]}:null}function PGt(e){return e.docChanged?e.steps.some(t=>{const n=t.slice;if(!(n!=null&&n.content))return!1;const r=n.content.textBetween(0,n.content.size,` 1340`);return/\s/.test(r)}):!1}var IGt=new Bn("suggestion");function RGt({pluginKey:e=IGt,editor:t,char:n="@",allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:o=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:u="is-empty",command:d=()=>null,items:f=()=>[],render:h=()=>({}),allow:p=()=>!0,findSuggestionMatch:m=OGt,shouldShow:g,shouldResetDismissed:v}){let b;const w=h==null?void 0:h(),x=r&&!i,E=()=>{const T=t.state.selection.$anchor.pos,A=t.view.coordsAtPos(T),{top:O,right:R,bottom:I,left:F}=A;try{return new DOMRect(F,O,R-F,I-O)}catch{return null}},S=(T,A)=>A?()=>{const O=e.getState(t.state),R=O==null?void 0:O.decorationId,I=T.dom.querySelector(`[data-decoration-id="${R}"]`);return(I==null?void 0:I.getBoundingClientRect())||null}:E,_=({match:T,dismissedRange:A,state:O,transaction:R})=>v!=null&&v({editor:t,state:O,range:A,match:T,transaction:R,allowSpaces:x})?!1:x?T.range.from===A.from:T.range.from===A.from&&!PGt(R);function k(T,A){var O;try{const I=e.getState(T.state),F=I!=null&&I.decorationId?T.dom.querySelector(`[data-decoration-id="${I.decorationId}"]`):null,N={editor:t,range:(I==null?void 0:I.range)||{from:0,to:0},query:(I==null?void 0:I.query)||null,text:(I==null?void 0:I.text)||null,items:[],command:B=>d({editor:t,range:(I==null?void 0:I.range)||{from:0,to:0},props:B}),decorationNode:F,clientRect:S(T,F)};(O=w==null?void 0:w.onExit)==null||O.call(w,N)}catch{}const R=T.state.tr.setMeta(A,{exit:!0});T.dispatch(R)}const C=new Fn({key:e,view(){return{update:async(T,A)=>{var O,R,I,F,N,B,M;const L=(O=this.key)==null?void 0:O.getState(A),P=(R=this.key)==null?void 0:R.getState(T.state),G=L.active&&P.active&&L.range.from!==P.range.from,Z=!L.active&&P.active,z=L.active&&!P.active,oe=!Z&&!z&&L.query!==P.query,le=Z||G&&oe,se=oe||G,ue=z||G&&oe;if(!le&&!se&&!ue)return;const ce=ue&&!le?L:P,Q=T.dom.querySelector(`[data-decoration-id="${ce.decorationId}"]`);b={editor:t,range:ce.range,query:ce.query,text:ce.text,items:[],command:K=>d({editor:t,range:ce.range,props:K}),decorationNode:Q,clientRect:S(T,Q)},le&&((I=w==null?void 0:w.onBeforeStart)==null||I.call(w,b)),se&&((F=w==null?void 0:w.onBeforeUpdate)==null||F.call(w,b)),(se||le)&&(b.items=await f({editor:t,query:ce.query})),ue&&((N=w==null?void 0:w.onExit)==null||N.call(w,b)),se&&((B=w==null?void 0:w.onUpdate)==null||B.call(w,b)),le&&((M=w==null?void 0:w.onStart)==null||M.call(w,b))},destroy:()=>{var T;b&&((T=w==null?void 0:w.onExit)==null||T.call(w,b))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply(T,A,O,R){const{isEditable:I}=t,{composing:F}=t.view,{selection:N}=T,{empty:B,from:M}=N,L={...A},P=T.getMeta(e);if(P&&P.exit)return L.active=!1,L.decorationId=null,L.range={from:0,to:0},L.query=null,L.text=null,L.dismissedRange=A.active?{...A.range}:A.dismissedRange,L;if(L.composing=F,T.docChanged&&L.dismissedRange!==null&&(L.dismissedRange={from:T.mapping.map(L.dismissedRange.from),to:T.mapping.map(L.dismissedRange.to)}),I&&(B||t.view.composing)){(M<A.range.from||M>A.range.to)&&!F&&!A.composing&&(L.active=!1);const G=m({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:s,$position:N.$from}),Z=`id_${Math.floor(Math.random()*4294967295)}`;G&&p({editor:t,state:R,range:G.range,isActive:A.active})&&(!g||g({editor:t,range:G.range,query:G.query,text:G.text,transaction:T}))?(L.dismissedRange!==null&&!_({match:G,dismissedRange:L.dismissedRange,state:R,transaction:T})&&(L.dismissedRange=null),L.dismissedRange===null?(L.active=!0,L.decorationId=A.decorationId?A.decorationId:Z,L.range=G.range,L.query=G.query,L.text=G.text):L.active=!1):(G||(L.dismissedRange=null),L.active=!1)}else L.active=!1;return L.active||(L.decorationId=null,L.range={from:0,to:0},L.query=null,L.text=null),L}},props:{handleKeyDown(T,A){var O,R;const{active:I,range:F}=C.getState(T.state);if(!I)return!1;if(A.key==="Escape"||A.key==="Esc"){const B=C.getState(T.state);return(O=w==null?void 0:w.onKeyDown)==null||O.call(w,{view:T,event:A,range:B.range}),k(T,e),!0}return((R=w==null?void 0:w.onKeyDown)==null?void 0:R.call(w,{view:T,event:A,range:F}))||!1},decorations(T){const{active:A,range:O,decorationId:R,query:I}=C.getState(T);if(!A)return null;const F=!(I!=null&&I.length),N=[l];return F&&N.push(u),sr.create(T.doc,[vo.inline(O.from,O.to,{nodeName:a,class:N.join(" "),"data-decoration-id":R,"data-decoration-content":c})])}}});return C}var Nin=RGt,Es="top",Ha="bottom",Ka="right",Ss="left",M7="auto",A_=[Es,Ha,Ka,Ss],Pb="start",
vendor: 17,648 bytes, line 1340
1340U1="end",MGt="clippingParents",yMe="viewport",$w="popper",NGt="reference",Uae=A_.reduce(function(e,t){return e.concat([t+"-"+Pb,t+"-"+U1])},[]),bMe=[].concat(A_,[M7]).reduce(function(e,t){return e.concat([t,t+"-"+Pb,t+"-"+U1])},[]),DGt="beforeRead",LGt="read",$Gt="afterRead",FGt="beforeMain",BGt="main",jGt="afterMain",zGt="beforeWrite",UGt="write",VGt="afterWrite",WGt=[DGt,LGt,$Gt,FGt,BGt,jGt,zGt,UGt,VGt];function su(e){return e?(e.nodeName||"").toLowerCase():null}function ia(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ug(e){var t=ia(e).Element;return e instanceof t||e instanceof Element}function ja(e){var t=ia(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function N7(e){if(typeof ShadowRoot>"u")return!1;var t=ia(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HGt(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ja(o)||!su(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function KGt(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!ja(i)||!su(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const wMe={name:"applyStyles",enabled:!0,phase:"write",fn:HGt,effect:KGt,requires:["computeStyles"]};function Hc(e){return e.split("-")[0]}var km=Math.max,KI=Math.min,Ib=Math.round;function gU(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xMe(){return!/^((?!chrome|android).)*safari/i.test(gU())}function Rb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ja(e)&&(i=e.offsetWidth>0&&Ib(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ib(r.height)/e.offsetHeight||1);var s=ug(e)?ia(e):window,a=s.visualViewport,l=!xMe()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function D7(e){var t=Rb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function EMe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&N7(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _d(e){return ia(e).getComputedStyle(e)}function qGt(e){return["table","td","th"].indexOf(su(e))>=0}function ip(e){return((ug(e)?e.ownerDocument:e.document)||window.document).documentElement}function CD(e){return su(e)==="html"?e:e.assignedSlot||e.parentNode||(N7(e)?e.host:null)||ip(e)}function Vae(e){return!ja(e)||_d(e).position==="fixed"?null:e.offsetParent}function GGt(e){var t=/firefox/i.test(gU()),n=/Trident/i.test(gU());if(n&&ja(e)){var r=_d(e);if(r.position==="fixed")return null}var i=CD(e);for(N7(i)&&(i=i.host);ja(i)&&["html","body"].indexOf(su(i))<0;){var o=_d(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function O_(e){for(var t=ia(e),n=Vae(e);n&&qGt(n)&&_d(n).position==="static";)n=Vae(n);return n&&(su(n)==="html"||su(n)==="body"&&_d(n).position==="static")?t:n||GGt(e)||t}function L7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uE(e,t,n){return km(e,KI(t,n))}function YGt(e,t,n){var r=uE(e,t,n);return r>n?n:r}function SMe(){return{top:0,right:0,bottom:0,left:0}}function _Me(e){return Object.assign({},SMe(),e)}function kMe(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var XGt=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_Me(typeof t!="number"?t:kMe(t,A_))};function ZGt(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Hc(n.placement),l=L7(a),c=[Ss,Ka].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=XGt(i.padding,n),f=D7(o),h=l==="y"?Es:Ss,p=l==="y"?Ha:Ka,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],v=O_(o),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,w=m/2-g/2,x=d[h],E=b-f[u]-d[p],S=b/2-f[u]/2+w,_=uE(x,S,E),k=l;n.modifiersData[r]=(t={},t[k]=_,t.centerOffset=_-S,t)}}function QGt(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||EMe(t.elements.popper,i)&&(t.elements.arrow=i))}const JGt={name:"arrow",enabled:!0,phase:"main",fn:ZGt,effect:QGt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mb(e){return e.split("-")[1]}var eYt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tYt(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ib(n*i)/i||0,y:Ib(r*i)/i||0}}function Wae(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,p=s.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),w=Ss,x=Es,E=window;if(c){var S=O_(n),_="clientHeight",k="clientWidth";if(S===ia(n)&&(S=ip(n),_d(S).position!=="static"&&a==="absolute"&&(_="scrollHeight",k="scrollWidth")),S=S,i===Es||(i===Ss||i===Ka)&&o===U1){x=Ha;var C=d&&S===E&&E.visualViewport?E.visualViewport.height:S[_];m-=C-r.height,m*=l?1:-1}if(i===Ss||(i===Es||i===Ha)&&o===U1){w=Ka;var T=d&&S===E&&E.visualViewport?E.visualViewport.width:S[k];h-=T-r.width,h*=l?1:-1}}var A=Object.assign({position:a},c&&eYt),O=u===!0?tYt({x:h,y:m},ia(n)):{x:h,y:m};if(h=O.x,m=O.y,l){var R;return Object.assign({},A,(R={},R[x]=b?"0":"",R[w]=v?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",R))}return Object.assign({},A,(t={},t[x]=b?m+"px":"",t[w]=v?h+"px":"",t.transform="",t))}function nYt(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Hc(t.placement),variation:Mb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wae(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wae(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rYt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nYt,data:{}};var FC={passive:!0};function iYt(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=ia(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,FC)}),a&&l.addEventListener("resize",n.update,FC),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,FC)}),a&&l.removeEventListener("resize",n.update,FC)}}const oYt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iYt,data:{}};var sYt={left:"right",right:"left",bottom:"top",top:"bottom"};function eA(e){return e.replace(/left|right|bottom|top/g,function(t){return sYt[t]})}var aYt={start:"end",end:"start"};function Hae(e){return e.replace(/start|end/g,function(t){return aYt[t]})}function $7(e){var t=ia(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function F7(e){return Rb(ip(e)).left+$7(e).scrollLeft}function lYt(e,t){var n=ia(e),r=ip(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=xMe();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+F7(e),y:l}}function cYt(e){var t,n=ip(e),r=$7(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=km(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=km(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+F7(e),l=-r.scrollTop;return _d(i||n).direction==="rtl"&&(a+=km(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function B7(e){var t=_d(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function CMe(e){return["html","body","#document"].indexOf(su(e))>=0?e.ownerDocument.body:ja(e)&&B7(e)?e:CMe(CD(e))}function dE(e,t){var n;t===void 0&&(t=[]);var r=CMe(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ia(r),s=i?[o].concat(o.visualViewport||[],B7(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(dE(CD(s)))}function vU(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uYt(e,t){var n=Rb(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Kae(e,t,n){return t===yMe?vU(lYt(e,n)):ug(t)?uYt(t,n):vU(cYt(ip(e)))}function dYt(e){var t=dE(CD(e)),n=["absolute","fixed"].indexOf(_d(e).position)>=0,r=n&&ja(e)?O_(e):e;return ug(r)?t.filter(function(i){return ug(i)&&EMe(i,r)&&su(i)!=="body"}):[]}function fYt(e,t,n,r){var i=t==="clippingParents"?dYt(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=Kae(e,c,r);return l.top=km(u.top,l.top),l.right=KI(u.right,l.right),l.bottom=KI(u.bottom,l.bottom),l.left=km(u.left,l.left),l},Kae(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function TMe(e){var t=e.reference,n=e.element,r=e.placement,i=r?Hc(r):null,o=r?Mb(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Es:l={x:s,y:t.y-n.height};break;case Ha:l={x:s,y:t.y+t.height};break;case Ka:l={x:t.x+t.width,y:a};break;case Ss:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?L7(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Pb:l[c]=l[c]-(t[u]/2-n[u]/2);break;case U1:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function V1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?MGt:a,c=n.rootBoundary,u=c===void 0?yMe:c,d=n.elementContext,f=d===void 0?$w:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,v=_Me(typeof g!="number"?g:kMe(g,A_)),b=f===$w?NGt:$w,w=e.rects.popper,x=e.elements[p?b:f],E=fYt(ug(x)?x:x.contextElement||ip(e.elements.popper),l,u,s),S=Rb(e.elements.reference),_=TMe({reference:S,element:w,placement:i}),k=vU(Object.assign({},w,_)),C=f===$w?k:S,T={top:E.top-C.top+v.top,bottom:C.bottom-E.bottom+v.bottom,left:E.left-C.left+v.left,right:C.right-E.right+v.right},A=e.modifiersData.offset;if(f===$w&&A){var O=A[i];Object.keys(T).forEach(function(R){var I=[Ka,Ha].indexOf(R)>=0?1:-1,F=[Es,Ha].indexOf(R)>=0?"y":"x";T[R]+=O[F]*I})}return T}function hYt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?bMe:l,u=Mb(r),d=u?a?Uae:Uae.filter(function(p){return Mb(p)===u}):A_,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=V1(e,{placement:m,boundary:i,rootBoundary:o,padding:s})[Hc(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function pYt(e){if(Hc(e)===M7)return[];var t=eA(e);return[Hae(e),t,Hae(t)]}function mYt(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,g=t.options.placement,v=Hc(g),b=v===g,w=l||(b||!p?[eA(g)]:pYt(g)),x=[g].concat(w).reduce(function(oe,le){return oe.concat(Hc(le)===M7?hYt(t,{placement:le,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):le)},[]),E=t.rects.reference,S=t.rects.popper,_=new Map,k=!0,C=x[0],T=0;T<x.length;T++){var A=x[T],O=Hc(A),R=Mb(A)===Pb,I=[Es,Ha].indexOf(O)>=0,F=I?"width":"height",N=V1(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),B=I?R?Ka:Ss:R?Ha:Es;E[F]>S[F]&&(B=eA(B));var M=eA(B),L=[];if(o&&L.push(N[O]<=0),a&&L.push(N[B]<=0,N[M]<=0),L.every(function(oe){return oe})){C=A,k=!1;break}_.set(A,L)}if(k)for(var P=p?3:1,G=function(le){var se=x.find(function(ue){var ce=_.get(ue);if(ce)return ce.slice(0,le).every(function(Q){return Q})});if(se)return C=se,"break"},Z=P;Z>0;Z--){var z=G(Z);if(z==="break")break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}}const gYt={name:"flip",enabled:!0,phase:"main",fn:mYt,requiresIfExists:["offset"],data:{_skip:!1}};function qae(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gae(e){return[Es,Ka,Ha,Ss].some(function(t){return e[t]>=0})}function vYt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=V1(t,{elementContext:"reference"}),a=V1(t,{altBoundary:!0}),l=qae(s,r),c=qae(a,i,o),u=Gae(l),d=Gae(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const yYt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vYt};function bYt(e,t,n){var r=Hc(e),i=[Ss,Es].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Ss,Ka].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function wYt(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=bMe.reduce(function(u,d){return u[d]=bYt(d,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const xYt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wYt};function EYt(e){var t=e.state,n=e.name;t.modifiersData[n]=TMe({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const SYt={name:"popperOffsets",enabled:!0,phase:"read",fn:EYt,data:{}};function _Yt(e){return e==="x"?"y":"x"}function kYt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,g=V1(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Hc(t.placement),b=Mb(t.placement),w=!b,x=L7(v),E=_Yt(x),S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,C=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,T=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(o){var R,I=x==="y"?Es:Ss,F=x==="y"?Ha:Ka,N=x==="y"?"height":"width",B=S[x],M=B+g[I],L=B-g[F],P=h?-k[N]/2:0,G=b===Pb?_[N]:k[N],Z=b===Pb?-k[N]:-_[N],z=t.elements.arrow,oe=h&&z?D7(z):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:SMe(),se=le[I],ue=le[F],ce=uE(0,_[N],oe[N]),Q=w?_[N]/2-P-ce-se-T.mainAxis:G-ce-se-T.mainAxis,K=w?-_[N]/2+P+ce+ue+T.mainAxis:Z+ce+ue+T.mainAxis,pe=t.elements.arrow&&O_(t.elements.arrow),X=pe?x==="y"?pe.clientTop||0:pe.clientLeft||0:0,Ze=(R=A==null?void 0:A[x])!=null?R:0,Me=B+Q-Ze-X,tt=B+K-Ze,Oe=uE(h?KI(M,Me):M,B,h?km(L,tt):L);S[x]=Oe,O[x]=Oe-B}if(a){var Pt,Le=x==="x"?Es:Ss,hn=x==="x"?Ha:Ka,vt=S[E],at=E==="y"?"height":"width",Jn=vt+g[Le],Pn=vt-g[hn],$i=[Es,Ss].indexOf(v)!==-1,Jo=(Pt=A==null?void 0:A[E])!=null?Pt:0,H=$i?Jn:vt-_[at]-k[at]-Jo+T.altAxis,J=$i?vt+_[at]+k[at]-Jo-T.altAxis:Pn,me=h&&$i?YGt(H,vt,J):uE(h?H:Jn,vt,h?J:Pn);S[E]=me,O[E]=me-vt}t.modifiersData[r]=O}}const CYt={name:"preventOverflow",enabled:!0,phase:"main",fn:kYt,requiresIfExists:["offset"]};function TYt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function AYt(e){return e===ia(e)||!ja(e)?$7(e):TYt(e)}function OYt(e){var t=e.getBoundingClientRect(),n=Ib(t.width)/e.offsetWidth||1,r=Ib(t.height)/e.offsetHeight||1;return n!==1||r!==1}function PYt(e,t,n){n===void 0&&(n=!1);var r=ja(t),i=ja(t)&&OYt(t),o=ip(t),s=Rb(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((su(t)!=="body"||B7(o))&&(a=AYt(t)),ja(t)?(l=Rb(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=F7(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function IYt(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);
vendor: 16,492 bytes, line 1340
1340s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function RYt(e){var t=IYt(e);return WGt.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function MYt(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function NYt(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yae={placement:"bottom",modifiers:[],strategy:"absolute"};function Xae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function DYt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Yae:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yae,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(v){var b=typeof v=="function"?v(u.options):v;m(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:ug(a)?dE(a):a.contextElement?dE(a.contextElement):[],popper:dE(l)};var w=RYt(NYt([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(x){return x.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var v=u.elements,b=v.reference,w=v.popper;if(Xae(b,w)){u.rects={reference:PYt(b,O_(w),u.options.strategy==="fixed"),popper:D7(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var E=u.orderedModifiers[x],S=E.fn,_=E.options,k=_===void 0?{}:_,C=E.name;typeof S=="function"&&(u=S({state:u,options:k,name:C,instance:h})||u)}}}},update:MYt(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!Xae(a,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var v=g.name,b=g.options,w=b===void 0?{}:b,x=g.effect;if(typeof x=="function"){var E=x({state:u,name:v,instance:h,options:w}),S=function(){};d.push(E||S)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}var LYt=[oYt,SYt,rYt,wMe,xYt,gYt,CYt,JGt,yYt],$Yt=DYt({defaultModifiers:LYt}),FYt="tippy-box",AMe="tippy-content",BYt="tippy-backdrop",OMe="tippy-arrow",PMe="tippy-svg-arrow",Ip={passive:!0,capture:!0},IMe=function(){return document.body};function gF(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function j7(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function RMe(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Zae(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function jYt(e){return e.split(/\s+/).filter(Boolean)}function xv(e){return[].concat(e)}function Qae(e,t){e.indexOf(t)===-1&&e.push(t)}function zYt(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function UYt(e){return e.split("-")[0]}function qI(e){return[].slice.call(e)}function Jae(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function fE(){return document.createElement("div")}function TD(e){return["Element","Fragment"].some(function(t){return j7(e,t)})}function VYt(e){return j7(e,"NodeList")}function WYt(e){return j7(e,"MouseEvent")}function HYt(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function KYt(e){return TD(e)?[e]:VYt(e)?qI(e):Array.isArray(e)?e:qI(document.querySelectorAll(e))}function vF(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function ele(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function qYt(e){var t,n=xv(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function GYt(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,l=a.interactiveBorder,c=UYt(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,m=o.top-r+d>l,g=r-o.bottom-f>l,v=o.left-n+h>l,b=n-o.right-p>l;return m||g||v||b})}function yF(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function tle(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var xc={isTouch:!1},nle=0;function YYt(){xc.isTouch||(xc.isTouch=!0,window.performance&&document.addEventListener("mousemove",MMe))}function MMe(){var e=performance.now();e-nle<20&&(xc.isTouch=!1,document.removeEventListener("mousemove",MMe)),nle=e}function XYt(){var e=document.activeElement;if(HYt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function ZYt(){document.addEventListener("touchstart",YYt,Ip),window.addEventListener("blur",XYt)}var QYt=typeof window<"u"&&typeof document<"u",JYt=QYt?!!window.msCrypto:!1,eXt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},tXt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Cl=Object.assign({appendTo:IMe,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},eXt,tXt),nXt=Object.keys(Cl),rXt=function(t){var n=Object.keys(t);n.forEach(function(r){Cl[r]=t[r]})};function NMe(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var a;r[o]=e[o]!==void 0?e[o]:(a=Cl[o])!=null?a:s}return r},{});return Object.assign({},e,n)}function iXt(e,t){var n=t?Object.keys(NMe(Object.assign({},Cl,{plugins:t}))):nXt,r=n.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return r}function rle(e,t){var n=Object.assign({},t,{content:RMe(t.content,[e])},t.ignoreAttributes?{}:iXt(e,t.plugins));return n.aria=Object.assign({},Cl.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var oXt=function(){return"innerHTML"};function yU(e,t){e[oXt()]=t}function ile(e){var t=fE();return e===!0?t.className=OMe:(t.className=PMe,TD(e)?t.appendChild(e):yU(t,e)),t}function ole(e,t){TD(t.content)?(yU(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?yU(e,t.content):e.textContent=t.content)}function bU(e){var t=e.firstElementChild,n=qI(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(AMe)}),arrow:n.find(function(r){return r.classList.contains(OMe)||r.classList.contains(PMe)}),backdrop:n.find(function(r){return r.classList.contains(BYt)})}}function DMe(e){var t=fE(),n=fE();n.className=FYt,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=fE();r.className=AMe,r.setAttribute("data-state","hidden"),ole(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,s){var a=bU(t),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&ole(c,e.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(ile(s.arrow))):l.appendChild(ile(s.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}DMe.$$tippy=!0;var sXt=1,BC=[],bF=[];function aXt(e,t){var n=rle(e,Object.assign({},Cl,NMe(Jae(t)))),r,i,o,s=!1,a=!1,l=!1,c=!1,u,d,f,h=[],p=Zae(Me,n.interactiveDebounce),m,g=sXt++,v=null,b=zYt(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:g,reference:e,popper:fE(),popperInstance:v,props:n,state:w,plugins:b,clearDelayTimeouts:H,setProps:J,setContent:me,show:Ae,hide:st,hideWithInteractivity:Kt,enable:$i,disable:Jo,unmount:Fi,destroy:U};if(!n.render)return x;var E=n.render(x),S=E.popper,_=E.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+x.id,x.popper=S,e._tippy=x,S._tippy=x;var k=b.map(function(j){return j.fn(x)}),C=e.hasAttribute("aria-expanded");return pe(),P(),B(),M("onCreate",[x]),n.showOnCreate&&Jn(),S.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&x.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){x.props.interactive&&x.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",p)}),x;function T(){var j=x.props.touch;return Array.isArray(j)?j:[j,0]}function A(){return T()[0]==="hold"}function O(){var j;return!!((j=x.props.render)!=null&&j.$$tippy)}function R(){return m||e}function I(){var j=R().parentNode;return j?qYt(j):document}function F(){return bU(S)}function N(j){return x.state.isMounted&&!x.state.isVisible||xc.isTouch||u&&u.type==="focus"?0:gF(x.props.delay,j?0:1,Cl.delay)}function B(j){j===void 0&&(j=!1),S.style.pointerEvents=x.props.interactive&&!j?"":"none",S.style.zIndex=""+x.props.zIndex}function M(j,V,Y){if(Y===void 0&&(Y=!0),k.forEach(function(ie){ie[j]&&ie[j].apply(ie,V)}),Y){var ne;(ne=x.props)[j].apply(ne,V)}}function L(){var j=x.props.aria;if(j.content){var V="aria-"+j.content,Y=S.id,ne=xv(x.props.triggerTarget||e);ne.forEach(function(ie){var ge=ie.getAttribute(V);if(x.state.isVisible)ie.setAttribute(V,ge?ge+" "+Y:Y);else{var be=ge&&ge.replace(Y,"").trim();be?ie.setAttribute(V,be):ie.removeAttribute(V)}})}}function P(){if(!(C||!x.props.aria.expanded)){var j=xv(x.props.triggerTarget||e);j.forEach(function(V){x.props.interactive?V.setAttribute("aria-expanded",x.state.isVisible&&V===R()?"true":"false"):V.removeAttribute("aria-expanded")})}}function G(){I().removeEventListener("mousemove",p),BC=BC.filter(function(j){return j!==p})}function Z(j){if(!(xc.isTouch&&(l||j.type==="mousedown"))){var V=j.composedPath&&j.composedPath()[0]||j.target;if(!(x.props.interactive&&tle(S,V))){if(xv(x.props.triggerTarget||e).some(function(Y){return tle(Y,V)})){if(xc.isTouch||x.state.isVisible&&x.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[x,j]);x.props.hideOnClick===!0&&(x.clearDelayTimeouts(),x.hide(),a=!0,setTimeout(function(){a=!1}),x.state.isMounted||se())}}}function z(){l=!0}function oe(){l=!1}function le(){var j=I();j.addEventListener("mousedown",Z,!0),j.addEventListener("touchend",Z,Ip),j.addEventListener("touchstart",oe,Ip),j.addEventListener("touchmove",z,Ip)}function se(){var j=I();j.removeEventListener("mousedown",Z,!0),j.removeEventListener("touchend",Z,Ip),j.removeEventListener("touchstart",oe,Ip),j.removeEventListener("touchmove",z,Ip)}function ue(j,V){Q(j,function(){!x.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&V()})}function ce(j,V){Q(j,V)}function Q(j,V){var Y=F().box;function ne(ie){ie.target===Y&&(yF(Y,"remove",ne),V())}if(j===0)return V();yF(Y,"remove",d),yF(Y,"add",ne),d=ne}function K(j,V,Y){Y===void 0&&(Y=!1);var ne=xv(x.props.triggerTarget||e);ne.forEach(function(ie){ie.addEventListener(j,V,Y),h.push({node:ie,eventType:j,handler:V,options:Y})})}function pe(){A()&&(K("touchstart",Ze,{passive:!0}),K("touchend",tt,{passive:!0})),jYt(x.props.trigger).forEach(function(j){if(j!=="manual")switch(K(j,Ze),j){case"mouseenter":K("mouseleave",tt);break;case"focus":K(JYt?"focusout":"blur",Oe);break;case"focusin":K("focusout",Oe);break}})}function X(){h.forEach(function(j){var V=j.node,Y=j.eventType,ne=j.handler,ie=j.options;V.removeEventListener(Y,ne,ie)}),h=[]}function Ze(j){var V,Y=!1;if(!(!x.state.isEnabled||Pt(j)||a)){var ne=((V=u)==null?void 0:V.type)==="focus";u=j,m=j.currentTarget,P(),!x.state.isVisible&&WYt(j)&&BC.forEach(function(ie){return ie(j)}),j.type==="click"&&(x.props.trigger.indexOf("mouseenter")<0||s)&&x.props.hideOnClick!==!1&&x.state.isVisible?Y=!0:Jn(j),j.type==="click"&&(s=!Y),Y&&!ne&&Pn(j)}}function Me(j){var V=j.target,Y=R().contains(V)||S.contains(V);if(!(j.type==="mousemove"&&Y)){var ne=at().concat(S).map(function(ie){var ge,be=ie._tippy,ze=(ge=be.popperInstance)==null?void 0:ge.state;return ze?{popperRect:ie.getBoundingClientRect(),popperState:ze,props:n}:null}).filter(Boolean);GYt(ne,j)&&(G(),Pn(j))}}function tt(j){var V=Pt(j)||x.props.trigger.indexOf("click")>=0&&s;if(!V){if(x.props.interactive){x.hideWithInteractivity(j);return}Pn(j)}}function Oe(j){x.props.trigger.indexOf("focusin")<0&&j.target!==R()||x.props.interactive&&j.relatedTarget&&S.contains(j.relatedTarget)||Pn(j)}function Pt(j){return xc.isTouch?A()!==j.type.indexOf("touch")>=0:!1}function Le(){hn();var j=x.props,V=j.popperOptions,Y=j.placement,ne=j.offset,ie=j.getReferenceClientRect,ge=j.moveTransition,be=O()?bU(S).arrow:null,ze=ie?{getBoundingClientRect:ie,contextElement:ie.contextElement||R()}:e,Ne={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(jn){var zn=jn.state;if(O()){var Bi=F(),Wr=Bi.box;["placement","reference-hidden","escaped"].forEach(function(As){As==="placement"?Wr.setAttribute("data-placement",zn.placement):zn.attributes.popper["data-popper-"+As]?Wr.setAttribute("data-"+As,""):Wr.removeAttribute("data-"+As)}),zn.attributes.popper={}}}},yt=[{name:"offset",options:{offset:ne}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ge}},Ne];O()&&be&&yt.push({name:"arrow",options:{element:be,padding:3}}),yt.push.apply(yt,(V==null?void 0:V.modifiers)||[]),x.popperInstance=$Yt(ze,S,Object.assign({},V,{placement:Y,onFirstUpdate:f,modifiers:yt}))}function hn(){x.popperInstance&&(x.popperInstance.destroy(),x.popperInstance=null)}function vt(){var j=x.props.appendTo,V,Y=R();x.props.interactive&&j===IMe||j==="parent"?V=Y.parentNode:V=RMe(j,[Y]),V.contains(S)||V.appendChild(S),x.state.isMounted=!0,Le()}function at(){return qI(S.querySelectorAll("[data-tippy-root]"))}function Jn(j){x.clearDelayTimeouts(),j&&M("onTrigger",[x,j]),le();var V=N(!0),Y=T(),ne=Y[0],ie=Y[1];xc.isTouch&&ne==="hold"&&ie&&(V=ie),V?r=setTimeout(function(){x.show()},V):x.show()}function Pn(j){if(x.clearDelayTimeouts(),M("onUntrigger",[x,j]),!x.state.isVisible){se();return}if(!(x.props.trigger.indexOf("mouseenter")>=0&&x.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(j.type)>=0&&s)){var V=N(!1);V?i=setTimeout(function(){x.state.isVisible&&x.hide()},V):o=requestAnimationFrame(function(){x.hide()})}}function $i(){x.state.isEnabled=!0}function Jo(){x.hide(),x.state.isEnabled=!1}function H(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function J(j){if(!x.state.isDestroyed){M("onBeforeUpdate",[x,j]),X();var V=x.props,Y=rle(e,Object.assign({},V,Jae(j),{ignoreAttributes:!0}));x.props=Y,pe(),V.interactiveDebounce!==Y.interactiveDebounce&&(G(),p=Zae(Me,Y.interactiveDebounce)),V.triggerTarget&&!Y.triggerTarget?xv(V.triggerTarget).forEach(function(ne){ne.removeAttribute("aria-expanded")}):Y.triggerTarget&&e.removeAttribute("aria-expanded"),P(),B(),_&&_(V,Y),x.popperInstance&&(Le(),at().forEach(function(ne){requestAnimationFrame(ne._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[x,j])}}function me(j){x.setProps({content:j})}function Ae(){var j=x.state.isVisible,V=x.state.isDestroyed,Y=!x.state.isEnabled,ne=xc.isTouch&&!x.props.touch,ie=gF(x.props.duration,0,Cl.duration);if(!(j||V||Y||ne)&&!R().hasAttribute("disabled")&&(M("onShow",[x],!1),x.props.onShow(x)!==!1)){if
1340(x.state.isVisible=!0,O()&&(S.style.visibility="visible"),B(),le(),x.state.isMounted||(S.style.transition="none"),O()){var ge=F(),be=ge.box,ze=ge.content;vF([be,ze],0)}f=function(){var yt;if(!(!x.state.isVisible||c)){if(c=!0,S.offsetHeight,S.style.transition=x.props.moveTransition,O()&&x.props.animation){var Jt=F(),jn=Jt.box,zn=Jt.content;vF([jn,zn],ie),ele([jn,zn],"visible")}L(),P(),Qae(bF,x),(yt=x.popperInstance)==null||yt.forceUpdate(),M("onMount",[x]),x.props.animation&&O()&&ce(ie,function(){x.state.isShown=!0,M("onShown",[x])})}},vt()}}function st(){var j=!x.state.isVisible,V=x.state.isDestroyed,Y=!x.state.isEnabled,ne=gF(x.props.duration,1,Cl.duration);if(!(j||V||Y)&&(M("onHide",[x],!1),x.props.onHide(x)!==!1)){if(x.state.isVisible=!1,x.state.isShown=!1,c=!1,s=!1,O()&&(S.style.visibility="hidden"),G(),se(),B(!0),O()){var ie=F(),ge=ie.box,be=ie.content;x.props.animation&&(vF([ge,be],ne),ele([ge,be],"hidden"))}L(),P(),x.props.animation?O()&&ue(ne,x.unmount):x.unmount()}}function Kt(j){I().addEventListener("mousemove",p),Qae(BC,p),p(j)}function Fi(){x.state.isVisible&&x.hide(),x.state.isMounted&&(hn(),at().forEach(function(j){j._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),bF=bF.filter(function(j){return j!==x}),x.state.isMounted=!1,M("onHidden",[x]))}function U(){x.state.isDestroyed||(x.clearDelayTimeouts(),x.unmount(),X(),delete e._tippy,x.state.isDestroyed=!0,M("onDestroy",[x]))}}function AD(e,t){t===void 0&&(t={});var n=Cl.plugins.concat(t.plugins||[]);ZYt();var r=Object.assign({},t,{plugins:n}),i=KYt(e),o=i.reduce(function(s,a){var l=a&&aXt(a,r);return l&&s.push(l),s},[]);return TD(e)?o[0]:o}AD.defaultProps=Cl;AD.setDefaultProps=rXt;AD.currentInput=xc;Object.assign({},wMe,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});AD.setDefaultProps({render:DMe});var z7="Radio",[lXt,LMe]=Ri(z7),[cXt,uXt]=lXt(z7),$Me=y.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:o,disabled:s,value:a="on",onCheck:l,form:c,...u}=e,[d,f]=y.useState(null),h=xt(t,g=>f(g)),p=y.useRef(!1),m=d?c||!!d.closest("form"):!0;return D.jsxs(cXt,{scope:n,checked:i,disabled:s,children:[D.jsx(Qe.button,{type:"button",role:"radio","aria-checked":i,"data-state":zMe(i),"data-disabled":s?"":void 0,disabled:s,value:a,...u,ref:h,onClick:Ee(e.onClick,g=>{i||l==null||l(),m&&(p.current=g.isPropagationStopped(),p.current||g.stopPropagation())})}),m&&D.jsx(jMe,{control:d,bubbles:!p.current,name:r,value:a,checked:i,required:o,disabled:s,form:c,style:{transform:"translateX(-100%)"}})]})});$Me.displayName=z7;var FMe="RadioIndicator",BMe=y.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,o=uXt(FMe,n);return D.jsx(no,{present:r||o.checked,children:D.jsx(Qe.span,{"data-state":zMe(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});BMe.displayName=FMe;var dXt="RadioBubbleInput",jMe=y.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{const s=y.useRef(null),a=xt(s,o),l=ON(n),c=qR(t);return y.useEffect(()=>{const u=s.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&h){const p=new Event("click",{bubbles:r});h.call(u,n),u.dispatchEvent(p)}},[l,n,r]),D.jsx(Qe.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});jMe.displayName=dXt;function zMe(e){return e?"checked":"unchecked"}var fXt=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OD="RadioGroup",[hXt]=Ri(OD,[e0,LMe]),UMe=e0(),VMe=LMe(),[pXt,mXt]=hXt(OD),WMe=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:s=!1,disabled:a=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=UMe(n),p=Qb(c),[m,g]=Wo({prop:o,defaultProp:i??null,onChange:d,caller:OD});return D.jsx(pXt,{scope:n,name:r,required:s,disabled:a,value:m,onValueChange:g,children:D.jsx(JV,{asChild:!0,...h,orientation:l,dir:p,loop:u,children:D.jsx(Qe.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":a?"":void 0,dir:p,...f,ref:t})})})});WMe.displayName=OD;var HMe="RadioGroupItem",KMe=y.forwardRef((e,t)=>
1340{const{__scopeRadioGroup:n,disabled:r,...i}=e,o=mXt(HMe,n),s=o.disabled||r,a=UMe(n),l=VMe(n),c=y.useRef(null),u=xt(t,c),d=o.value===i.value,f=y.useRef(!1);return y.useEffect(()=>{const h=m=>{fXt.includes(m.key)&&(f.current=!0)},p=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",p)}},[]),D.jsx(e6,{asChild:!0,...a,focusable:!s,active:d,children:D.jsx($Me,{disabled:s,required:o.required,checked:d,...l,...i,name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:Ee(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Ee(i.onFocus,()=>{var h;f.current&&((h=c.current)==null||h.click())})})})});KMe.displayName=HMe;var gXt="RadioGroupIndicator",qMe=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=VMe(n);return D.jsx(BMe,{...i,...r,ref:t})});qMe.displayName=gXt;var Din=WMe,Lin=KMe,$in=qMe;function vXt(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))}Array(12).fill(0);let wU=1;class yXt{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,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:wU++,s=this.toasts.find(l=>l.id===o),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}
1340),{...l,...t,id:o,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:o}),o},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 i=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,s;const a=i.then(async c=>{if(s=["resolve",c],$.isValidElement(c))o=!1,this.create({id:r,type:"default",message:c});else if(wXt(c)&&!c.ok){o=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,p=typeof d=="object"&&!$.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...p})}else if(c instanceof Error){o=!1;const d=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,p=typeof d=="object"&&!$.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...p})}else if(n.success!==void 0){o=!1;const d=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,p=typeof d=="object"&&!$.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:f,...p})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){o=!1;const u=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,h=typeof u=="object"&&!$.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:d,...h})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,u)=>a.then(()=>s[0]==="reject"?u(s[1]):c(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||wU++;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 ga=new yXt,bXt=(e,t)=>{const n=(t==null?void 0:t.id)||wU++;return ga.addToast({title:e,...t,id:n}),n},wXt=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",xXt=bXt,EXt=()=>ga.toasts,SXt=()=>ga.getActiveToasts(),Fin=Object.assign(xXt,{success:ga.success,info:ga.info,warning:ga.warning,error:ga.error,custom:ga.custom,message:ga.message,promise:ga.promise,dismiss:ga.dismiss,loading:ga.loading},{getHistory:EXt,getToasts:SXt});vXt("[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;
1340left: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}
1340[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%);
1340--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%)}");var Xl="Accordion",_Xt=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[U7,kXt,CXt]=rS(Xl),[PD]=Ri(Xl,[CXt,hke]),V7=hke(),GMe=$.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,o=r;return D.jsx(U7.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?D.jsx(PXt,{...o,ref:t}):D.jsx(OXt,{...i,ref:t})})});GMe.displayName=Xl;var[YMe,TXt]=PD(Xl),[XMe,AXt]=PD(Xl,{collapsible:!1}),OXt=$.forwardRef((e,t)=>
1340{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...s}=e,[a,l]=Wo({prop:n,defaultProp:r??"",onChange:i,caller:Xl});return D.jsx(YMe,{scope:e.__scopeAccordion,value:$.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:$.useCallback(()=>o&&l(""),[o,l]),children:D.jsx(XMe,{scope:e.__scopeAccordion,collapsible:o,children:D.jsx(ZMe,{...s,ref:t})})})}),PXt=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[s,a]=Wo({prop:n,defaultProp:r??[],onChange:i,caller:Xl}),l=$.useCallback(u=>a((d=[])=>[...d,u]),[a]),c=$.useCallback(u=>a((d=[])=>d.filter(f=>f!==u)),[a]);return D.jsx(YMe,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:c,children:D.jsx(XMe,{scope:e.__scopeAccordion,collapsible:!0,children:D.jsx(ZMe,{...o,ref:t})})})}),[IXt,ID]=PD(Xl),ZMe=$.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:o="vertical",...s}=e,a=$.useRef(null),l=xt(a,t),c=kXt(n),d=Qb(i)==="ltr",f=Ee(e.onKeyDown,h=>{var k;if(!_Xt.includes(h.key))return;const p=h.target,m=c().filter(C=>{var T;return!((T=C.ref.current)!=null&&T.disabled)}),g=m.findIndex(C=>C.ref.current===p),v=m.length;if(g===-1)return;h.preventDefault();let b=g;const w=0,x=v-1,E=()=>{b=g+1,b>x&&(b=w)},S=()=>{b=g-1,b<w&&(b=x)};switch(h.key){case"Home":b=w;break;case"End":b=x;break;case"ArrowRight":o==="horizontal"&&(d?E():S());break;case"ArrowDown":o==="vertical"&&E();break;case"ArrowLeft":o==="horizontal"&&(d?S():E());break;case"ArrowUp":o==="vertical"&&S();break}const _=b%v;(k=m[_].ref.current)==null||k.focus()});return D.jsx(IXt,{scope:n,disabled:r,direction:i,orientation:o,children:D.jsx(U7.Slot,{scope:n,children:D.jsx(Qe.div,{...s,"data-orientation":o,ref:l,onKeyDown:r?void 0:f})})})}),GI="AccordionItem",[RXt,W7]=PD(GI),QMe=$.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,o=ID(GI,n),s=TXt(GI,n),a=V7(n),l=ys(),c=r&&s.value.includes(r)||!1,u=o.disabled||e.disabled;return D.jsx(RXt,{scope:n,open:c,disabled:u,triggerId:l,children:D.jsx(RCt,{"data-orientation":o.orientation,"data-state":iNe(c),...a,...i,ref:t,disabled:u,open:c,onOpenChange:d=>{d?s.onItemOpen(r):s.onItemClose(r)}})})});QMe.displayName=GI;var JMe="AccordionHeader",eNe=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ID(Xl,n),o=W7(JMe,n);return D.jsx(Qe.h3,{"data-orientation":i.orientation,"data-state":iNe(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});eNe.displayName=JMe;var xU="AccordionTrigger",tNe=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ID(Xl,n),o=W7(xU,n),s=AXt(xU,n),a=V7(n);return D.jsx(U7.ItemSlot,{scope:n,children:D.jsx(MCt,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...r,ref:t})})});tNe.displayName=xU;var nNe="AccordionContent",rNe=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=ID(Xl,n),o=W7(nNe,n),s=V7(n);return D.jsx(NCt,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});rNe.displayName=nNe;function iNe(e){return e?"open":"closed"}var Bin=GMe,jin=QMe,zin=eNe,Uin=tNe,Vin=rNe,oNe={},sNe={exports:{}};/*! 1341 Copyright (c) 2018 Jed Watson. 1342 Licensed under the MIT License (MIT), see 1343 http://jedwatson.github.io/classnames 1344*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(sNe);var MXt=sNe.exports,ch={},aNe={},$d={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}t.prototype={diff:function(i,o){var s,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=a.callback;typeof a=="function"&&(l=a,a={}),this.options=a;var c=this;function u(_){return l?(setTimeout(function(){l(void 0,_)},0),!0):_}i=this.castInput(i),o=this.castInput(o),i=this.removeEmpty(this.tokenize(i)),o=this.removeEmpty(this.tokenize(o));var d=o.length,f=i.length,h=1,p=d+f;a.maxEditLength&&(p=Math.min(p,a.maxEditLength));var m=(s=a.timeout)!==null&&s!==void 0?s:1/0,g=Date.now()+m,v=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(v[0],o,i,0);if(v[0].oldPos+1>=f&&b+1>=d)return u([{value:this.join(o),count:o.length}]);var w=-1/0,x=1/0;function E(){for(var _=Math.max(w,-h);_<=Math.min(x,h);_+=2){var k=void 0,C=v[_-1],T=v[_+1];C&&(v[_-1]=void 0);var A=!1;if(T){var O=T.oldPos-_;A=T&&0<=O&&O<d}var R=C&&C.oldPos+1<f;if(!A&&!R){v[_]=void 0;continue}if(!R||A&&C.oldPos+1<T.oldPos?k=c.addToPath(T,!0,void 0,0):k=c.addToPath(C,void 0,!0,1),b=c.extractCommon(k,o,i,_),k.oldPos+1>=f&&b+1>
1344=d)return u(n(c,k.lastComponent,o,i,c.useLongestToken));v[_]=k,k.oldPos+1>=f&&(x=Math.min(x,_-1)),b+1>=d&&(w=Math.max(w,_+1))}h++}if(l)(function _(){setTimeout(function(){if(h>p||Date.now()>g)return l();E()||_()},0)})();else for(;h<=p&&Date.now()<=g;){var S=E();if(S)return S}},addToPath:function(i,o,s,a){var l=i.lastComponent;return l&&l.added===o&&l.removed===s?{oldPos:i.oldPos+a,lastComponent:{count:l.count+1,added:o,removed:s,previousComponent:l.previousComponent}}:{oldPos:i.oldPos+a,lastComponent:{count:1,added:o,removed:s,previousComponent:l}}},extractCommon:function(i,o,s,a){for(var l=o.length,c=s.length,u=i.oldPos,d=u-a,f=0;d+1<l&&u+1<c&&this.equals(o[d+1],s[u+1]);)d++,u++,f++;return f&&(i.lastComponent={count:f,previousComponent:i.lastComponent}),i.oldPos=u,d},equals:function(i,o){return this.options.comparator?this.options.comparator(i,o):i===o||this.options.ignoreCase&&i.toLowerCase()===o.toLowerCase()},removeEmpty:function(i){for(var o=[],s=0;s<i.length;s++)i[s]&&o.push(i[s]);return o},castInput:function(i){return i},tokenize:function(i){return i.split("")},join:function(i){return i.join("")}};function n(r,i,o,s,a){for(var l=[],c;i;)l.push(i),c=i.previousComponent,delete i.previousComponent,i=c;l.reverse();for(var u=0,d=l.length,f=0,h=0;u<d;u++){var p=l[u];if(p.removed){if(p.value=r.join(s.slice(h,h+p.count)),h+=p.count,u&&l[u-1].added){var g=l[u-1];l[u-1]=l[u],l[u]=g}}else{if(!p.added&&a){var m=o.slice(f,f+p.count);m=m.map(function(b,w){var x=s[h+w];return x.length>b.length?x:b}),p.value=r.join(m)}else p.value=r.join(o.slice(f,f+p.count));f+=p.count,p.added||(h+=p.count)}}var v=l[d-1];return d>1&&typeof v.value=="string"&&(v.added||v.removed)&&r.equals("",v.value)&&(l[d-2].value+=v.value,l.pop()),l}})($d);var P_={};Object.defineProperty(P_,"__esModule",{value:!0});P_.diffChars=LXt;P_.characterDiff=void 0;var NXt=DXt($d);function DXt(e){return e&&e.__esModule?e:{default:e}}var lNe=new NXt.default;P_.characterDiff=lNe;function LXt(e,t,n){return lNe.diff(e,t,n)}var I0={},RD={};Object.defineProperty(RD,"__esModule",{value:!0});RD.generateOptions=$Xt;function $Xt(e,t){if(typeof e=="function")t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}Object.defineProperty(I0,"__esModule",{value:!0});I0.diffWords=zXt;I0.diffWordsWithSpace=UXt;I0.wordDiff=void 0;var FXt=jXt($d),BXt=RD;function jXt(e){return e&&e.__esModule?e:{default:e}}var sle=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ale=/\S/,I_=new FXt.default;I0.wordDiff=I_;I_.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ale.test(e)&&!ale.test(t)};I_.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&sle.test(t[n])&&sle.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function zXt(e,t,n){return n=(0,BXt.generateOptions)(n,{ignoreWhitespace:!0}),I_.diff(e,t,n)}function UXt(e,t,n){return I_.diff(e,t,n)}var op={};Object.defineProperty(op,"__esModule",{value:!0});op.diffLines=KXt;op.diffTrimmedLines=qXt;op.lineDiff=void 0;var VXt=HXt($d),WXt=RD;function HXt(e){return e&&e.__esModule?e:{default:e}}var MD=new VXt.default;op.lineDiff=MD;MD.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,` 1345`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function KXt(e,t,n){return MD.diff(e,t,n)}function qXt(e,t,n){var r=(0,WXt.generateOptions)(n,{ignoreWhitespace:!0});return MD.diff(e,t,r)}var R_={};Object.defineProperty(R_,"__esModule",{value:!0});R_.diffSentences=XXt;R_.sentenceDiff=void 0;var GXt=YXt($d);function YXt(e){return e&&e.__esModule?e:{default:e}}var H7=new GXt.default;R_.sentenceDiff=H7;H7.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};function XXt(e,t,n){return H7.diff(e,t,n)}var M_={};Object.defineProperty(M_,"__esModule",{value:!0});M_.diffCss=JXt;M_.cssDiff=void 0;var ZXt=QXt($d);
1345function QXt(e){return e&&e.__esModule?e:{default:e}}var K7=new ZXt.default;M_.cssDiff=K7;K7.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function JXt(e,t,n){return K7.diff(e,t,n)}var R0={};Object.defineProperty(R0,"__esModule",{value:!0});R0.diffJson=rZt;R0.canonicalize=YI;R0.jsonDiff=void 0;var cNe=tZt($d),eZt=op;function tZt(e){return e&&e.__esModule?e:{default:e}}function tA(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tA=function(n){return typeof n}:tA=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tA(e)}var nZt=Object.prototype.toString,dg=new cNe.default;R0.jsonDiff=dg;dg.useLongestToken=!0;dg.tokenize=eZt.lineDiff.tokenize;dg.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,s){return typeof s>"u"?n:s}:r;return typeof e=="string"?e:JSON.stringify(YI(e,null,null,i),i," ")};dg.equals=function(e,t){return cNe.default.prototype.equals.call(dg,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function rZt(e,t,n){return dg.diff(e,t,n)}function YI(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var s;if(nZt.call(e)==="[object Array]"){for(t.push(e),s=new Array(e.length),n.push(s),o=0;o<e.length;o+=1)s[o]=YI(e[o],t,n,r,i);return t.pop(),n.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),tA(e)==="object"&&e!==null){t.push(e),s={},n.push(s);var a=[],l;for(l in e)e.hasOwnProperty(l)&&a.push(l);for(a.sort(),o=0;o<a.length;o+=1)l=a[o],s[l]=YI(e[l],t,n,r,l);t.pop(),n.pop()}else s=e;return s}var N_={};Object.defineProperty(N_,"__esModule",{value:!0});N_.diffArrays=sZt;N_.arrayDiff=void 0;var iZt=oZt($d);function oZt(e){return e&&e.__esModule?e:{default:e}}var W1=new iZt.default;N_.arrayDiff=W1;W1.tokenize=function(e){return e.slice()};W1.join=W1.removeEmpty=function(e){return e};function sZt(e,t,n){return W1.diff(e,t,n)}var ND={},D_={};Object.defineProperty(D_,"__esModule",{value:!0});D_.parsePatch=aZt;function aZt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var c={};for(i.push(c);o<n.length;){var u=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(u))break;var d=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(u);d&&(c.index=u.substring(d[0].length).trim()),o++}for(a(c),a(c),c.hunks=[];o<n.length;){var f=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(f))break;if(/^@@/.test(f))c.hunks.push(l());else{if(f&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(f));o++}}}function a(c){var u=/^(---|\+\+\+)\s+/.exec(n[o]);if(u){var d=u[1]==="---"?"old":"new",f=n[o].substring(3).trim().split(" ",2),h=f[0].replace(/\\\\/g,"\\");h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),c[d+"FileName"]=h,c[d+"Header"]=(f[1]||"").trim(),o++}}function l(){var c=o,u=n[o++],d=u.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),f={oldStart:+d[1],oldLines:typeof d[2]>"u"?1:+d[2],newStart:+d[3],newLines:typeof d[4]>"u"?1:+d[4],lines:[],linedelimiters:[]};f.oldLines===0&&(f.oldStart+=1),f.newLines===0&&(f.newStart+=1);for(var h=0,p=0;o<n.length&&!(n[o].indexOf("--- ")===0&&o+2<n.length&&n[o+1].indexOf("+++ ")===0&&n[o+2].indexOf("@@")===0);o++){var m=n[o].length==0&&o!=n.length-1?" ":n[o][0];if(m==="+"||m==="-"||m===" "||m==="\\")f.lines.push(n[o]),f.linedelimiters.push(r[o]||` 1346`),m==="+"?h++:m==="-"?p++:m===" "&&(h++,p++);else break}if(!h&&f.newLines===1&&(f.newLines=0),!p&&f.oldLines===1&&(f.oldLines=0),t.strict){if(h!==f.newLines)throw new Error("Added line count did not match for hunk at line "+(c+1));if(p!==f.oldLines)throw new Error("Removed line count did not match for hunk at line "+(c+1))}return f}for(;o<n.length;)s();return i}var uNe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n,r,i){var o=!0,s=!1,a=!1,l=1;return function c(){if(o&&!a){if(s?l++:o=!1,n+l<=i)return l;a=!0}if(!s)return a||(o=!0),r<=n-l?-l++:(s=!0,c())}}})(uNe);Object.defineProperty(ND,"__esModule",{value:!0});ND.applyPatch=fNe;ND.applyPatches=uZt;var dNe=D_,lZt=cZt(uNe);
1346function cZt(e){return e&&e.__esModule?e:{default:e}}function fNe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string"&&(t=(0,dNe.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,s=n.compareLine||function(F,N,B,M){return N===M},a=0,l=n.fuzzFactor||0,c=0,u=0,d,f;function h(F,N){for(var B=0;B<F.lines.length;B++){var M=F.lines[B],L=M.length>0?M[0]:" ",P=M.length>0?M.substr(1):M;if(L===" "||L==="-"){if(!s(N+1,r[N],L,P)&&(a++,a>l))return!1;N++}}return!0}for(var p=0;p<o.length;p++){for(var m=o[p],g=r.length-m.oldLines,v=0,b=u+m.oldStart-1,w=(0,lZt.default)(b,c,g);v!==void 0;v=w())if(h(m,b+v)){m.offset=u+=v;break}if(v===void 0)return!1;c=m.offset+m.oldStart+m.oldLines}for(var x=0,E=0;E<o.length;E++){var S=o[E],_=S.oldStart+S.offset+x-1;x+=S.newLines-S.oldLines;for(var k=0;k<S.lines.length;k++){var C=S.lines[k],T=C.length>0?C[0]:" ",A=C.length>0?C.substr(1):C,O=S.linedelimiters&&S.linedelimiters[k]||` 1347`;if(T===" ")_++;else if(T==="-")r.splice(_,1),i.splice(_,1);else if(T==="+")r.splice(_,0,A),i.splice(_,0,O),_++;else if(T==="\\"){var R=S.lines[k-1]?S.lines[k-1][0]:null;R==="+"?d=!0:R==="-"&&(f=!0)}}}if(d)for(;!r[r.length-1];)r.pop(),i.pop();else f&&(r.push(""),i.push(` 1348`));for(var I=0;I<r.length-1;I++)r[I]=r[I]+i[I];return r.join("")}function uZt(e,t){typeof e=="string"&&(e=(0,dNe.parsePatch)(e));var n=0;function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,function(o,s){if(o)return t.complete(o);var a=fNe(s,i,t);t.patched(i,a,function(l){if(l)return t.complete(l);r()})})}r()}var DD={},$g={};Object.defineProperty($g,"__esModule",{value:!0});$g.structuredPatch=hNe;$g.formatPatch=q7;$g.createTwoFilesPatch=pNe;$g.createPatch=gZt;var dZt=op;function wF(e){return mZt(e)||pZt(e)||hZt(e)||fZt()}function fZt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1349In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hZt(e,t){if(e){if(typeof e=="string")return EU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EU(e,t)}}function pZt(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mZt(e){if(Array.isArray(e))return EU(e)}function EU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hNe(e,t,n,r,i,o,s){s||(s={}),typeof s.context>"u"&&(s.context=4);var a=(0,dZt.diffLines)(n,r,s);if(!a)return;a.push({value:"",lines:[]});function l(v){return v.map(function(b){return" "+b})}for(var c=[],u=0,d=0,f=[],h=1,p=1,m=function(b){var w=a[b],x=w.lines||w.value.replace(/\n$/,"").split(` 1350`);if(w.lines=x,w.added||w.removed){var E;if(!u){var S=a[b-1];u=h,d=p,S&&(f=s.context>0?l(S.lines.slice(-s.context)):[],u-=f.length,d-=f.length)}(E=f).push.apply(E,wF(x.map(function(I){return(w.added?"+":"-")+I}))),w.added?p+=x.length:h+=x.length}else{if(u)if(x.length<=s.context*2&&b<a.length-2){var _;(_=f).push.apply(_,wF(l(x)))}else{var k,C=Math.min(x.length,s.context);(k=f).push.apply(k,wF(l(x.slice(0,C))));var T={oldStart:u,oldLines:h-u+C,newStart:d,newLines:p-d+C,lines:f};if(b>=a.length-2&&x.length<=s.context){var A=/\n$/.test(n),O=/\n$/.test(r),R=x.length==0&&f.length>T.oldLines;!A&&R&&n.length>0&&f.splice(T.oldLines,0,"\\ No newline at end of file"),(!A&&!R||!O)&&f.push("\\ No newline at end of file")}c.push(T),u=0,d=0,f=[]}h+=x.length,p+=x.length}},g=0;g<a.length;g++)m(g);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:c}}function q7(e){if(Array.isArray(e))return e.map(q7).join(` 1351`);var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join(` 1352`)+` 1353`}function pNe(e,t,n,r,i,o,s){return q7(hNe(e,t,n,r,i,o,s))}function gZt(e,t,n,r,i,o){return pNe(e,e,t,n,r,i,o)}var LD={};Object.defineProperty(LD,"__esModule",{value:!0});LD.arrayEqual=vZt;LD.arrayStartsWith=mNe;function vZt(e,t){return e.length!==t.length?!1:mNe(e,t)}function mNe(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(DD,"__esModule",{value:!0});DD.calcLineCount=gNe;DD.merge=_Zt;var yZt=$g,bZt=D_,xF=LD;function by(e){return SZt(e)||EZt(e)||xZt(e)||wZt()}function wZt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1354In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xZt(e,t){if(e){if(typeof e=="string")return SU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SU(e,t)}}function EZt(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function SZt(e){if(Array.isArray(e))return SU(e)}function SU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gNe(e){var t=_U(e.lines),n=t.oldLines,r=t.newLines;n!==void 0?e.oldLines=n:delete e.oldLines,r!==void 0?e.newLines=r:delete e.newLines}function _Zt(e,t,n){e=lle(e,n),t=lle(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(cle(e)?cle(t)?(r.oldFileName=jC(r,e.oldFileName,t.oldFileName),r.newFileName=jC(r,e.newFileName,t.newFileName),r.oldHeader=jC(r,e.oldHeader,t.oldHeader),r.newHeader=jC(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,o=0,s=0,a=0;i<e.hunks.length||o<t.hunks.length;){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[o]||{oldStart:1/0};if(ule(l,c))r.hunks.push(dle(l,s)),i++,a+=l.newLines-l.oldLines;else if(ule(c,l))r.hunks.push(dle(c,a)),o++,s+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+s,c.oldStart+a),newLines:0,lines:[]};kZt(u,l.oldStart,l.lines,c.oldStart,c.lines),o++,i++,r.hunks.push(u)}}return r}function lle(e,t){if(typeof e=="string"){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,bZt.parsePatch)(e)[0];
1354if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,yZt.structuredPatch)(void 0,void 0,t,e)}return e}function cle(e){return e.newFileName&&e.newFileName!==e.oldFileName}function jC(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function ule(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function dle(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function kZt(e,t,n,r,i){var o={offset:t,lines:n,index:0},s={offset:r,lines:i,index:0};for(hle(e,o,s),hle(e,s,o);o.index<o.lines.length&&s.index<s.lines.length;){var a=o.lines[o.index],l=s.lines[s.index];if((a[0]==="-"||a[0]==="+")&&(l[0]==="-"||l[0]==="+"))CZt(e,o,s);else if(a[0]==="+"&&l[0]===" "){var c;(c=e.lines).push.apply(c,by(Zp(o)))}else if(l[0]==="+"&&a[0]===" "){var u;(u=e.lines).push.apply(u,by(Zp(s)))}else a[0]==="-"&&l[0]===" "?fle(e,o,s):l[0]==="-"&&a[0]===" "?fle(e,s,o,!0):a===l?(e.lines.push(a),o.index++,s.index++):G7(e,Zp(o),Zp(s))}ple(e,o),ple(e,s),gNe(e)}function CZt(e,t,n){var r=Zp(t),i=Zp(n);if(mle(r)&&mle(i)){if((0,xF.arrayStartsWith)(r,i)&&gle(n,r,r.length-i.length)){var o;
1354(o=e.lines).push.apply(o,by(r));return}else if((0,xF.arrayStartsWith)(i,r)&&gle(t,i,i.length-r.length)){var s;(s=e.lines).push.apply(s,by(i));return}}else if((0,xF.arrayEqual)(r,i)){var a;(a=e.lines).push.apply(a,by(r));return}G7(e,r,i)}function fle(e,t,n,r){var i=Zp(t),o=TZt(n,i);if(o.merged){var s;(s=e.lines).push.apply(s,by(o.merged))}else G7(e,r?o:i,r?i:o)}function G7(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function hle(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function ple(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function Zp(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if(n==="-"&&r[0]==="+"&&(n="+"),n===r[0])t.push(r),e.index++;else break}return t}function TZt(e,t){for(var n=[],r=[],i=0,o=!1,s=!1;i<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],l=t[i];if(l[0]==="+")break;if(o=o||a[0]!==" ",r.push(l),i++,a[0]==="+")for(s=!0;a[0]==="+";)n.push(a),a=e.lines[++e.index];
1354l.substr(1)===a.substr(1)?(n.push(a),e.index++):s=!0}if((t[i]||"")[0]==="+"&&o&&(s=!0),s)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}function mle(e){return e.reduce(function(t,n){return t&&n[0]==="-"},!0)}function gle(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function _U(e){var t=0,n=0;return e.forEach(function(r){if(typeof r!="string"){var i=_U(r.mine),o=_U(r.theirs);t!==void 0&&(i.oldLines===o.oldLines?t+=i.oldLines:t=void 0),n!==void 0&&(i.newLines===o.newLines?n+=i.newLines:n=void 0)}else n!==void 0&&(r[0]==="+"||r[0]===" ")&&n++,t!==void 0&&(r[0]==="-"||r[0]===" ")&&t++}),{oldLines:t,newLines:n}}var Y7={};Object.defineProperty(Y7,"__esModule",{value:!0});Y7.reversePatch=vNe;function vle(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vle(Object(n),!0).forEach(function(r){AZt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vle(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AZt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vNe(e){return Array.isArray(e)?e.map(vNe).reverse():yle(yle({},e),{},{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(function(t){return{oldLines:t.newLines,oldStart:t.newStart,newLines:t.oldLines,newStart:t.oldStart,linedelimiters:t.linedelimiters,lines:t.lines.map(function(n){return n.startsWith("-")?"+".concat(n.slice(1)):n.startsWith("+")?"-".concat(n.slice(1)):n})}})})}var X7={};Object.defineProperty(X7,"__esModule",{value:!0});X7.convertChangesToDMP=OZt;function OZt(e){for(var t=[],n,r,i=0;i<e.length;i++)n=e[i],n.added?r=1:n.removed?r=-1:r=0,t.push([r,n.value]);return t}var Z7={};Object.defineProperty(Z7,"__esModule",{value:!0});Z7.convertChangesToXML=PZt;function PZt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(IZt(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}function IZt(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,"""),t}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return s.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return a.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return a.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return l.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return c.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return c.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return u.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return d.merge}}),Object.defineProperty(e,"reversePatch",{enumerable:!0,get:function(){return f.reversePatch}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return h.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return h.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return h.createPatch}}),Object.defineProperty(e,"formatPatch",{enumerable:!0,get:function(){return h.formatPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return p.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return m.convertChangesToXML}});var t=g($d),n=P_,r=I0,i=op,o=R_,s=M_,a=R0,l=N_,c=ND,u=D_,d=DD,f=Y7,h=$g,p=X7,m=Z7;
1354function g(v){return v&&v.__esModule?v:{default:v}}})(aNe);var RZt=zt&&zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),MZt=zt&&zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),NZt=zt&&zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&RZt(t,e,n);return MZt(t,e),t};Object.defineProperty(ch,"__esModule",{value:!0});ch.computeLineInformation=ch.DiffMethod=ch.DiffType=void 0;const kU=NZt(aNe),DZt=kU;var rd;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"})(rd||(ch.DiffType=rd={}));var XI;(function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson"})(XI||(ch.DiffMethod=XI={}));const ble=e=>e===""?[]:e.replace(/\n$/,"").split(` 1355`),LZt=(e,t,n=XI.CHARS)=>{const r=DZt[n](e,t),i={left:[],right:[]};return r.forEach(({added:o,removed:s,value:a})=>{const l={};return o&&(l.type=rd.ADDED,l.value=a,i.right.push(l)),s&&(l.type=rd.REMOVED,l.value=a,i.left.push(l)),!s&&!o&&(l.type=rd.DEFAULT,l.value=a,i.right.push(l),i.left.push(l)),l}),i},$Zt=(e,t,n=!1,r=XI.CHARS,i=0,o=[])=>{let s=[];typeof e=="string"&&typeof t=="string"?s=kU.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):s=kU.diffJson(e,t);let a=i,l=i,c=[],u=0;const d=[],f=[],h=(p,m,g,v,b)=>ble(p).map((x,E)=>{const S={},_={};if(!(f.includes(`${m}-${E}`)||b&&E!==0)){if(g||v){let k=!0;if(v){l+=1,S.lineNumber=l,S.type=rd.REMOVED,S.value=x||" ";const C=s[m+1];if(C&&C.added){const T=ble(C.value)[E];if(T){const A=h(T,m,!0,!1,!0),{value:O,lineNumber:R,type:I}=A[0].right;if(f.push(`${m+1}-${E}`),_.lineNumber=R,S.value===O)k=!1,_.type=0,S.type=0,_.value=O;else if(_.type=I,n)_.value=O;else{const F=LZt(x,O,r);_.value=F.right,S.value=F.left}}}}else a+=1,_.lineNumber=a,_.type=rd.ADDED,_.value=x;k&&!b&&(d.includes(u)||d.push(u))}else l+=1,a+=1,S.lineNumber=l,S.type=rd.DEFAULT,S.value=x,_.lineNumber=a,_.type=rd.DEFAULT,_.value=x;return(o!=null&&o.includes(`L-${S.lineNumber}`)||o!=null&&o.includes(`R-${_.lineNumber}`)&&!d.includes(u))&&d.push(u),b||(u+=1),{right:_,left:S}}}).filter(Boolean);return s.forEach(({added:p,removed:m,value:g},v)=>{c=[...c,...h(g,v,p,m)]}),{lineInformation:c,diffLines:d}};ch.computeLineInformation=$Zt;var Q7={};function FZt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function BZt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jZt=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(BZt(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=FZt(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
1355,t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),so="-ms-",ZI="-moz-",en="-webkit-",yNe="comm",J7="rule",eK="decl",zZt="@import",bNe="@keyframes",UZt="@layer",VZt=Math.abs,$D=String.fromCharCode,WZt=Object.assign;function HZt(e,t){return qi(e,0)^45?(((t<<2^qi(e,0))<<2^qi(e,1))<<2^qi(e,2))<<2^qi(e,3):0}function wNe(e){return e.trim()}function KZt(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function CU(e,t){return e.indexOf(t)}function qi(e,t){return e.charCodeAt(t)|0}function H1(e,t,n){return e.slice(t,n)}function Ec(e){return e.length}function tK(e){return e.length}function zC(e,t){return t.push(e),e}function qZt(e,t){return e.map(t).join("")}var FD=1,Nb=1,xNe=0,ks=0,Qr=0,M0="";function BD(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:FD,column:Nb,length:s,return:""}}function Fw(e,t){return WZt(BD("",null,null,"",null,null,0),e,{length:-e.length},t)}function GZt(){return Qr}function YZt(){return Qr=ks>0?qi(M0,--ks):0,Nb--,Qr===10&&(Nb=1,FD--),Qr}function qs(){return Qr=ks<xNe?qi(M0,ks++):0,Nb++,Qr===10&&(Nb=1,FD++),Qr}function Kc(){return qi(M0,ks)}function nA(){return ks}function L_(e,t){return H1(M0,e,t)}function K1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ENe(e){return FD=Nb=1,xNe=Ec(M0=e),ks=0,[]}function SNe(e){return M0="",e}function rA(e){return wNe(L_(ks-1,TU(e===91?e+2:e===40?e+1:e)))}function XZt(e){for(;(Qr=Kc())&&Qr<33;)qs();return K1(e)>2||K1(Qr)>3?"":" "}function ZZt(e,t){for(;--t&&qs()&&!(Qr<48||Qr>102||Qr>57&&Qr<65||Qr>70&&Qr<97););return L_(e,nA()+(t<6&&Kc()==32&&qs()==32))}function TU(e){for(;qs();)switch(Qr){case e:return ks;case 34:case 39:e!==34&&e!==39&&TU(Qr);break;case 40:e===41&&TU(e);break;case 92:qs();break}return ks}function QZt(e,t){for(;qs()&&e+Qr!==57;)if(e+Qr===84&&Kc()===47)break;return"/*"+L_(t,ks-1)+"*"+$D(e===47?e:qs())}function JZt(e){for(;!K1(Kc());)qs();return L_(e,ks)}function eQt(e){return SNe(iA("",null,null,null,[""],e=ENe(e),0,[0],e))}function iA(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,p=0,m=1,g=1,v=1,b=0,w="",x=i,E=o,S=r,_=w;g;)switch(p=b,b=qs()){case 40:if(p!=108&&qi(_,d-1)==58){CU(_+=nn(rA(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=rA(b);break;case 9:case 10:case 13:case 32:_+=XZt(p);break;case 92:_+=ZZt(nA()-1,7);continue;case 47:switch(Kc()){case 42:case 47:zC(tQt(QZt(qs(),nA()),t,n),l);break;default:_+="/"}break;case 123*m:a[c++]=Ec(_)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:v==-1&&(_=nn(_,/\f/g,"")),h>0&&Ec(_)-d&&zC(h>32?xle(_+";",r,n,d-1):xle(nn(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(zC(S=wle(_,t,n,c,u,i,a,w,x=[],E=[],d),o),b===123)if(u===0)iA(_,t,S,S,x,o,d,a,E);else switch(f===99&&qi(_,3)===110?100:f){case 100:case 108:case 109:case 115:iA(e,S,S,r&&zC(wle(e,S,S,0,0,i,a,w,i,x=[],d),E),i,E,d,a,r?x:E);break;default:iA(_,S,S,S,[""],E,0,a,E)}}c=u=h=0,m=v=1,w=_="",d=s;break;case 58:d=1+Ec(_),h=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&YZt()==125)continue}switch(_+=$D(b),b*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(Ec(_)-1)*v,v=1;break;case 64:Kc()===45&&(_+=rA(qs())),f=Kc(),u=d=Ec(w=_+=JZt(nA())),b++;break;case 45:p===45&&Ec(_)==2&&(m=0)}}return o}function wle(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=tK(f),p=0,m=0,g=0;p<r;++p)for(var v=0,b=H1(e,d+1,d=VZt(m=s[p])),w=e;v<h;++v)(w=wNe(m>0?f[v]+" "+b:nn(b,/&\f/g,f[v])))&&(l[g++]=w);return BD(e,t,n,i===0?J7:a,l,c,u)}function tQt(e,t,n){return BD(e,t,n,yNe,$D(GZt()),H1(e,2,-2),0)}function xle(e,t,n,r){return BD(e,t,n,eK,H1(e,0,r),H1(e,r+1,-1),r)}function wy(e,t){for(var n="",r=tK(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function nQt(e,t,n,r){switch(e.type){case UZt:if(e.children.length)break;case zZt:case eK:return e.return=e.return||e.value;case yNe:return"";case bNe:return e.return=e.value+"{"+wy(e.children,r)+"}";case J7:e.value=e.props.join(",")}return Ec(n=wy(e.children,r))?e.return=e.value+"{"+n+"}":""}function rQt(e){var t=tK(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}
1355function iQt(e){return function(t){t.root||(t=t.return)&&e(t)}}function oQt(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var sQt=function(t,n,r){for(var i=0,o=0;i=o,o=Kc(),i===38&&o===12&&(n[r]=1),!K1(o);)qs();return L_(t,ks)},aQt=function(t,n){var r=-1,i=44;do switch(K1(i)){case 0:i===38&&Kc()===12&&(n[r]=1),t[r]+=sQt(ks-1,n,r);break;case 2:t[r]+=rA(i);break;case 4:if(i===44){t[++r]=Kc()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=$D(i)}while(i=qs());return t},lQt=function(t,n){return SNe(aQt(ENe(t),n))},Ele=new WeakMap,cQt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ele.get(r))&&!i){Ele.set(t,!0);for(var o=[],s=lQt(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},uQt=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function _Ne(e,t){switch(HZt(e,t)){case 5103:return en+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return en+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return en+e+ZI+e+so+e+e;case 6828:case 4268:return en+e+so+e+e;case 6165:return en+e+so+"flex-"+e+e;case 5187:return en+e+nn(e,/(\w+).+(:[^]+)/,en+"box-$1$2"+so+"flex-$1$2")+e;case 5443:return en+e+so+"flex-item-"+nn(e,/flex-|-self/,"")+e;case 4675:return en+e+so+"flex-line-pack"+nn(e,/align-content|flex-|-self/,"")+e;case 5548:return en+e+so+nn(e,"shrink","negative")+e;case 5292:return en+e+so+nn(e,"basis","preferred-size")+e;case 6060:return en+"box-"+nn(e,"-grow","")+en+e+so+nn(e,"grow","positive")+e;case 4554:return en+nn(e,/([^-])(transform)/g,"$1"+en+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,en+"$1"),/(image-set)/,en+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,en+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,en+"box-pack:$3"+so+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+en+e+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,en+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ec(e)-1-t>6)switch(qi(e,t+1)){case 109:if(qi(e,t+4)!==45)break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+en+"$2-$3$1"+ZI+(qi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~CU(e,"stretch")?_Ne(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qi(e,t+1)!==115)break;case 6444:switch(qi(e,Ec(e)-3-(~CU(e,"!important")&&10))){case 107:return nn(e,":",":"+en)+e;case 101:return nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+en+(qi(e,14)===45?"inline-":"")+"box$3$1"+en+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch(qi(e,t+11)){case 114:return en+e+so+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return en+e+so+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return en+e+so+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return en+e+so+e+e}return e}var dQt=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case eK:t.return=_Ne(t.value,t.length);break;case bNe:return wy([Fw(t,{value:nn(t.value,"@","@"+en)})],i);case J7:if(t.length)return qZt(t.props,function(o){switch(KZt(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wy([Fw(t,{props:[nn(o,/:(read-\w+)/,":"+ZI+"$1")]})],i);case"::placeholder":return wy([Fw(t,{props:[nn(o,/:(plac\w+)/,":"+en+"input-$1")]}),Fw(t,{props:[nn(o,/:(plac\w+)/,":"+ZI+"$1")]}),Fw(t,{props:[nn(o,/:(plac\w+)/,so+"input-$1")]})],i)}return""})}},fQt=[dQt],hQt=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||fQt,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)o[g[v]]=!0;a.push(m)});var l,c=[cQt,uQt];{var u,d=[nQt,iQt(function(m){u.insert(m)})],f=rQt(c.concat(i,d)),h=function(g){return wy(eQt(g),f)};l=function(g,v,b,w){u=b,h(g?g+"{"+v.styles+"}":v.styles),w&&(p.inserted[v.name]=!0)}}
1355var p={key:n,sheet:new jZt({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};function pQt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var mQt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gQt=/[A-Z]|^ms/g,vQt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kNe=function(t){return t.charCodeAt(1)===45},Sle=function(t){return t!=null&&typeof t!="boolean"},EF=oQt(function(e){return kNe(e)?e:e.replace(gQt,"-$&").toLowerCase()}),_le=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vQt,function(r,i,o){return Vf={name:i,styles:o,next:Vf},i})}return mQt[t]!==1&&!kNe(t)&&typeof n=="number"&&n!==0?n+"px":n};function QI(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Vf={name:i.name,styles:i.styles,next:Vf},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Vf={name:s.name,styles:s.styles,next:Vf},s=s.next;var a=o.styles+";";return a}return yQt(e,t,n)}}var l=n;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function yQt(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=QI(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Sle(a)&&(r+=EF(o)+":"+_le(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Sle(s[l])&&(r+=EF(o)+":"+_le(o,s[l])+";");else{var c=QI(e,t,s);switch(o){case"animation":case"animationName":{r+=EF(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var kle=/label:\s*([^\s;{]+)\s*(;|$)/g,Vf;function SF(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Vf=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=QI(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=QI(n,t,e[a]),r){var l=o;i+=l[a]}kle.lastIndex=0;for(var c="",u;(u=kle.exec(i))!==null;)c+="-"+u[1];var d=pQt(i)+c;return{name:d,styles:i,next:Vf}}function CNe(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var bQt=function(t,n,r){var i=t.key+"-"+n.name;t.registered[i]===void 0&&(t.registered[i]=n.styles)},wQt=function(t,n,r){bQt(t,n);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Cle(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Tle(e,t,n){var r=[],i=CNe(e,r,n);return r.length<2?n:i+t(r)}var xQt=function(t){var n=hQt(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=SF(c,n.registered,void 0);return wQt(n,d),n.key+"-"+d.name},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=SF(c,n.registered),f="animation-"+d.name;return Cle(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=SF(c,n.registered);Cle(n,d)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Tle(n.registered,r,EQt(c))};return{css:r,cx:s,injectGlobal:o,keyframes:i,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:CNe.bind(null,n.registered),merge:Tle.bind(null,n.registered,r)}},EQt=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];
1355if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var s in i)i[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n};const SQt=Object.freeze(Object.defineProperty({__proto__:null,default:xQt},Symbol.toStringTag,{value:"Module"})),_Qt=zle(SQt);var kQt=zt&&zt.__rest||function(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},CQt=zt&&zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Q7,"__esModule",{value:!0});const TQt=CQt(_Qt);Q7.default=(e,t=!1,n="")=>{const{variables:r={}}=e,i=kQt(e,["variables"]),o={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackgroun
1355d:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},r.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},r.dark||{})},s=t?o.dark:o.light,{css:a,cx:l}=(0,TQt.default)({key:"react-diff",nonce:n}),c=a({width:"100%",label:"content"}),u=a({[`.${c}`]:{width:"50%"},label:"split-view"}),d=a({width:"100%",background:s.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),f=a({color:s.codeFoldContentColor,label:"code-fold-content"}),h=a({color:s.diffViewerColor,label:"content-text"}),p=a({background:s.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${s.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${s.diffViewerTitleBorderColor}`},[`.${h}`]:{color:s.diffViewerTitleColor}}),m=a({color:s.gutterColor,label:"line-number"}),g=a({background:s.removedBackground,color:s.removedColor,pre:{color:s.removedColor},[`.${m}`]:{color:s.removedGutterColor},label:"diff-removed"}),v=a({background:s.addedBackground,color:s.addedColor,pre:{color:s.addedColor},[`.${m}`]:{color:s.addedGutterColor},label:"diff-added"}),b=a({background:s.changedBackground,[`.${m}`]:{color:s.gutterColor},label:"diff-changed"}),w=a({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),x=a({background:s.wordAddedBackground,label:"word-added"}),E=a({background:s.wordRemovedBackground,label:"word-removed"}),S=a({backgroundColor:s.codeFoldGutterBackground,label:"code-fold-gutter"}),_=a({backgroundColor:s.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),k=a({backgroundColor:s.emptyLineBackground,label:"empty-line"}),C=a({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${v}`]:{pre:{color:s.addedColor}},[`&.${g}`]:{pre:{color:s.removedColor}}}
1355),T=a({background:s.highlightBackground,label:"highlighted-line",[`.${x}, .${E}`]:{backgroundColor:"initial"}}),A=a({label:"highlighted-gutter"}),O=a({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:s.gutterBackground,"&:hover":{cursor:"pointer",background:s.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${v}`]:{background:s.addedGutterBackground},[`&.${g}`]:{background:s.removedGutterBackground},[`&.${A}`]:{background:s.highlightGutterBackground,"&:hover":{background:s.highlightGutterBackground}}}),R=a({"&:hover":{background:s.gutterBackground,cursor:"initial"},label:"empty-gutter"}),I=a({verticalAlign:"baseline",label:"line"}),F={diffContainer:d,diffRemoved:g,diffAdded:v,diffChanged:b,splitView:u,marker:C,highlightedGutter:A,highlightedLine:T,gutter:O,line:I,wordDiff:w,wordAdded:x,wordRemoved:E,codeFoldGutter:S,codeFold:_,emptyGutter:R,emptyLine:k,lineNumber:m,contentText:h,content:c,codeFoldContent:f,titleBlock:p},N=Object.keys(i).reduce((B,M)=>Object.assign(Object.assign({},B),{[M]:a(i[M])}),{});return Object.keys(F).reduce((B,M)=>Object.assign(Object.assign({},B),{[M]:N[M]?l(F[M],N[M]):F[M]}),{})};var jD={};Object.defineProperty(jD,"__esModule",{value:!0});jD.computeHiddenBlocks=void 0;function AQt(e,t,n){let r=0,i,o={},s=[];return e.forEach((a,l)=>{const c=t.some(u=>u>=l-n&&u<=l+n);!c&&i==null?(i={index:r,startLine:l,endLine:l,lines:1},s.push(i),o[l]=i.index,r++):c?i=void 0:(i.endLine=l,i.lines++,o[l]=i.index)}),{lineBlocks:o,blocks:s}}jD.computeHiddenBlocks=AQt;var Ale=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function OQt(e,t){return!!(e===t||Ale(e)&&Ale(t))}function PQt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!OQt(e[n],t[n]))return!1;return!0}function IQt(e,t){t===void 0&&(t=PQt);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}const RQt=Object.freeze(Object.defineProperty({__proto__:null,default:IQt},Symbol.toStringTag,{value:"Module"})),MQt=zle(RQt);(function(e){var t=zt&&zt.__createBinding||(Object.create?function(m,g,v,b){b===void 0&&(b=v);var w=Object.getOwnPropertyDescriptor(g,v);(!w||("get"in w?!g.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return g[v]}}),Object.defineProperty(m,b,w)}:function(m,g,v,b){b===void 0&&(b=v),m[b]=g[v]}),n=zt&&zt.__setModuleDefault||(Object.create?function(m,g){Object.defineProperty(m,"default",{enumerable:!0,value:g})}:function(m,g){m.default=g}),r=zt&&zt.__importStar||function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(g,m,v);return n(g,m),g},i=zt&&zt.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiffMethod=e.LineNumberPrefix=void 0;const o=D,s=r(y),a=i(MXt),l=ch;Object.defineProperty(e,"DiffMethod",{enumerable:!0,get:function(){return l.DiffMethod}});const c=i(Q7),u=jD,d=MQt,f=d.default||d;var h;(function(m){m.LEFT="L",m.RIGHT="R"})(h||(e.LineNumberPrefix=h={}));class p extends s.Component{constructor(g){super(g),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=v=>{const b=this.state.expandedBlocks.slice();b.push(v),this.setState({expandedBlocks:b})},this.computeStyles=f(c.default),this.onLineNumberClickProxy=v=>this.props.onLineNumberClick?b=>this.props.onLineNumberClick(v,b):()=>{},this.renderWordDiff=(v,b)=>v.map((w,x)=>(0,o.jsx)("span",{className:(0,a.default)(this.styles.wordDiff,{[this.styles.wordAdded]:w.type===l.DiffType.ADDED,[this.styles.wordRemoved]:w.type===l.DiffType.REMOVED}),children:b?b(w.value):w.value},x)),this.renderLine=(v,b,w,x,E,S)=>{const _=`${w}-${v}`,k=`${S}-${E}`,C=this.props.highlightLines.includes(_)||this.props.highlightLines.includes(k),T=b===l.DiffType.ADDED,A=b===l.DiffType.REMOVED,O=b===l.DiffType.CHANGED;let R;return Array.isArray(x)?R=this.renderWordDiff(x,this.props.renderContent):this.props.renderContent?R=this.props.renderContent(x):R=x,(0,o.jsxs)(s.Fragment,{children:[!this.props.hideLineNumbers&&(0,o.jsx)("td",{onClick:v&&this.onLineNumberClickProxy(_),className:(0,a.default)(this.styles.gutter,{[this.styles.emptyGutter]:!v,[this.styles.diffAdded]:T,[this.styles.diffRemoved]:A,[this.styles.diffChanged]:O,[this.styles.highlightedGutter]:C}),children:(0,o.jsx)("pre",{className:this.styles.lineNumber,children:v})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,o.jsx)("td",{onClick:E&&this.onLineNumberClickProxy(k),className:(0,a.default)(this.styles.gutter,{[this.styles.emptyGutter]:!E,[this.styles.diffAdded]:T,[this.styles.diffRemoved]:A,[this.styles.diffChanged]:O,[this.styles.highlightedGutter]:C}),children:(0,o.jsx)("pre",{className:this.styles.lineNumber,children:E})}),this.props.renderGutter?this.props.renderGutter({lineNumber:v,type:b,prefix:w,value:x,additionalLineNumber:E,additionalPrefix:S,styles:this.styles}):null,!this.props.hideMarkers&&(0,o.jsx)("td",{className:(0,a.default)(this.styles.marker,{[this.styles.emptyLine]:!R,[this.styles.diffAdded]:T,[this.styles.diffRemoved]:A,[this.styles.diffChanged]:O,[this.styles.highlightedLine]:C}),children:(0,o.jsxs)("pre",{children:[T&&"+",A&&"-"]})}),(0,o.jsx)("td",{className:(0,a.default)(this.styles.content,{[this.styles.emptyLine]:!R,[this.styles.diffAdded]:T,[this.styles.diffRemoved]:A,[this.styles.diffChanged]:O,[this.styles.highlightedLine]:C}),children:(0,o.jsx)("pre",{className:this.styles.contentText,children:R})})]})},this.renderSplitView=({left:v,right:b},w)=>(0,o.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(v.lineNumber,v.type,h.LEFT,v.value),this.renderLine(b.lineNumber,b.type,h.RIGHT,b.value)]},w),this.renderInlineView=({left:v,right:b},w)=>{let x;return v.type===l.DiffType.REMOVED&&b.type===l.DiffType.ADDED?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("tr",{className:this.styles.line,children:this.renderLine(v.lineNumber,v.type,h.LEFT,v.value,null)}),(0,o.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,b.type,h.RIGHT,b.value,b.lineNumber)})]},w):(v.type===l.DiffType.REMOVED&&(x=this.renderLine(v.lineNumber,v.type,h.LEFT,v.value,null)),v.type===l.DiffType.DEFAULT&&(x=this.renderLine(v.lineNumber,v.type,h.LEFT,v.value,b.lineNumber,h.RIGHT)),b.type===l.DiffType.ADDED&&(x=this.renderLine(null,b.type,h.RIGHT,b.value,b.lineNumber)),(0,o.jsx)("tr",{className:this.styles.line,children:x},w))},this.onBlockClickProxy=v=>()=>this.onBlockExpand(v),this.renderSkippedLineIndicator=(v,b,w,x)=>{const{hideLineNumbers:E,splitView:S}=this.props,_=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(v,w,x):(0,o.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",v," lines ..."]}),k=(0,o.jsx)("td",{children:(0,o.jsx)("a",{onClick:this.onBlockClickProxy(b),tabIndex:0,children:_})}),C=!S&&!E;return(0,o.jsxs)("tr",{className:this.styles.codeFold,children:[!E&&(0,o.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,o.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,o.jsx)("td",{className:(0,a.default)({[this.styles.codeFoldGutter]:C})}),C?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("td",{}),k]}):(0,o.jsxs)(s.Fragment,{children:[k,this.props.renderGutter?(0,o.jsx)("td",{}):null,(0,o.jsx)("td",{})]}),(0,o.jsx)("td",{}),(0,o.jsx)("td",{})]},`${w}-${x}`)},this.renderDiff=()=>{const{oldValue:v,newValue:b,splitView:w,disableWordDiff:x,compareMethod:E,linesOffset:S}=this.props,{lineInformation:_,diffLines:k}=(0,l.computeLineInformation)(v,b,x,E,S,this.props.alwaysShowLine
1355s),C=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:T,blocks:A}=(0,u.computeHiddenBlocks)(_,k,C);return _.map((O,R)=>{if(this.props.showDiffOnly){const F=T[R];if(F!==void 0){const N=A[F].endLine===R;if(!this.state.expandedBlocks.includes(F)&&N)return(0,o.jsx)(s.Fragment,{children:this.renderSkippedLineIndicator(A[F].lines,F,O.left.lineNumber,O.right.lineNumber)},R);if(!this.state.expandedBlocks.includes(F))return null}}return w?this.renderSplitView(O,R):this.renderInlineView(O,R)})},this.render=()=>{const{oldValue:v,newValue:b,useDarkTheme:w,leftTitle:x,rightTitle:E,splitView:S,hideLineNumbers:_,hideMarkers:k,nonce:C}=this.props;if(this.props.compareMethod!==l.DiffMethod.JSON&&(typeof v!="string"||typeof b!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,w,C);const T=this.renderDiff();let A=_?2:3,O=_?2:4;k&&(A-=1,O-=1);const R=this.props.renderGutter?1:0,I=(x||E)&&(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{colSpan:(S?A:O)+R,className:this.styles.titleBlock,children:(0,o.jsx)("pre",{className:this.styles.contentText,children:x})}),S&&(0,o.jsx)("td",{colSpan:A+R,className:this.styles.titleBlock,children:(0,o.jsx)("pre",{className:this.styles.contentText,children:E})})]});return(0,o.jsx)("table",{className:(0,a.default)(this.styles.diffContainer,{[this.styles.splitView]:S}),children:(0,o.jsxs)("tbody",{children:[I,T]})})},this.state={expandedBlocks:[]}}}p.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:l.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},e.default=p})(oNe);const Win=yr(oNe);var TNe="acacia",NQt=function(t){return t===3?"v3":t},ANe="https://js.stripe.com",DQt="".concat(ANe,"/").concat(TNe,"/stripe.js"),LQt=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,$Qt=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var FQt=function(t){return LQt.test(t)||$Qt.test(t)},BQt=function(){for(var t=document.querySelectorAll('script[src^="'.concat(ANe,'"]')),n=0;n<t.length;n++){var r=t[n];if(FQt(r.src))return r}return null},Ole=function(t){var n="",r=document.createElement("script");r.src="".concat(DQt).concat(n);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r},jQt=function(t,n){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"6.1.0",startTime:n})},Bw=null,UC=null,VC=null,zQt=function(t){return function(n){t(new Error("Failed to load Stripe.js",{cause:n}))}},UQt=function(t,n){return function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))}},VQt=function(t){return Bw!==null?Bw:(Bw=new Promise(function(n,r){if(typeof window>"u"||typeof document>"u"){n(null);return}if(window.Stripe){n(window.Stripe);return}try{var i=BQt();if(!(i&&t)){if(!i)i=Ole(t);else if(i&&VC!==null&&UC!==null){var o;i.removeEventListener("load",VC),i.removeEventListener("error",UC),(o=i.parentNode)===null||o===void 0||o.removeChild(i),i=Ole(t)}}VC=UQt(n,r),UC=zQt(r),i.addEventListener("load",VC),i.addEventListener("error",UC)}catch(s){r(s);return}}),Bw.catch(function(n){return Bw=null,Promise.reject(n)}))},WQt=function(t,n,r){if(t===null)return null;var i=n[0],o=i.match(/^pk_test/),s=NQt(t.version),a=TNe;o&&s!==a&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("6.1.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var l=t.apply(void 0,n);return jQt(l,r),l},jw,ONe=!1,PNe=function(){return jw||(jw=VQt(null).catch(function(t){return jw=null,Promise.reject(t)}),jw)};Promise.resolve().then(function(){return PNe()}).catch(function(e){ONe||console.warn(e)});var HQt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];ONe=!0;var i=Date.now();return PNe().then(function(o){return WQt(o,n,i)})};const Hin=Object.freeze(Object.defineProperty({__proto__:null,loadStripe:HQt},Symbol.toStringTag,{value:"Module"}));
1355export{Dnn as $,sJt as A,hnn as B,aJt as C,oJt as D,pnn as E,A5 as F,vnn as G,zb as H,bnn as I,JQt as J,Ann as K,ynn as L,Ven as M,wJe as N,FGe as O,tJt as P,XQt as Q,rJt as R,dnn as S,iJt as T,YQt as U,nJt as V,ro as W,Xtn as X,Pnn as Y,Xbe as Z,Nnn as _,lJt as a,ztn as a$,Len as a0,oWe as a1,etn as a2,Ftn as a3,GJt as a4,Stn as a5,AJt as a6,Ptn as a7,fJt as a8,bJt as a9,htn as aA,wen as aB,kJt as aC,$Jt as aD,zJt as aE,otn as aF,JJt as aG,Dtn as aH,Ntn as aI,TJt as aJ,DJt as aK,QJt as aL,CJt as aM,Vnn as aN,frn as aO,Kxt as aP,dSt as aQ,SSt as aR,Hnn as aS,idt as aT,e1t as aU,urn as aV,X1t as aW,drn as aX,dwt as aY,sN as aZ,XJt as a_,cen as aa,WJt as ab,Wen as ac,atn as ad,mtn as ae,YJt as af,ytn as ag,cnn as ah,ren as ai,rtn as aj,ktn as ak,xJe as al,Rnn as am,Ml as an,Jtn as ao,QQt as ap,ZQt as aq,XLe as ar,Mnn as as,Lnn as at,sK as au,$ as av,got as aw,Uen as ax,Ztn as ay,Wtn as az,unn as b,Ltn as b$,ien as b0,oen as b1,crn as b2,CEt as b3,Utn as b4,whe as b5,$en as b6,Ben as b7,Oen as b8,Onn as b9,eJt as bA,grn as bB,prn as bC,hrn as bD,vrn as bE,yrn as bF,brn as bG,mrn as bH,RCt as bI,gke as bJ,utn as bK,Ien as bL,ten as bM,Jen as bN,men as bO,Tnn as bP,ben as bQ,Mtn as bR,gen as bS,hen as bT,iin as bU,sin as bV,mAt as bW,oin as bX,rin as bY,nin as bZ,ltn as b_,Vit as ba,dJt as bb,ftn as bc,SJt as bd,jen as be,len as bf,vtn as bg,pr as bh,fin as bi,pLt as bj,Q9 as bk,pin as bl,gin as bm,yin as bn,vin as bo,ken as bp,win as bq,bin as br,Ein as bs,xin as bt,sPe as bu,tPe as bv,Sin as bw,ZP as bx,wtn as by,ctn as bz,Wt as c,Q3e as c$,jJt as c0,Vtn as c1,$tn as c2,wJt as c3,btn as c4,IJt as c5,ain as c6,qQt as c7,g6e as c8,E6e as c9,gJt as cA,een as cB,Gtn as cC,yen as cD,Etn as cE,qen as cF,uen as cG,zen as cH,qJt as cI,gtn as cJ,Atn as cK,ven as cL,den as cM,_Jt as cN,Ktn as cO,ntn as cP,qtn as cQ,xJt as cR,Fin as cS,Bin as cT,jin as cU,zin as cV,Uin as cW,PJt as cX,Vin as cY,GQt as cZ,EJt as c_,_6e as ca,aV as cb,Fen as cc,dtn as cd,mJt as ce,k6e as cf,lV as cg,y6e as ch,w6e as ci,Ttn as cj,Ken as ck,Din as cl,Lin as cm,$in as cn,Xen as co,ZJt as cp,LJt as cq,_en as cr,phe as cs,Aen as ct,Gen as cu,ttn as cv,Qen as cw,I6e as cx,EWe as cy,Otn as cz,$Ge as d,BJt as d$,nen as d0,FJt as d1,pen as d2,_tn as d3,lin as d4,cin as d5,uin as d6,din as d7,$nn as d8,Fnn as d9,Lrn as dA,$rn as dB,Frn as dC,Brn as dD,NJt as dE,jrn as dF,zrn as dG,Urn as dH,Vrn as dI,Hrn as dJ,qrn as dK,Xrn as dL,Zrn as dM,Yrn as dN,Grn as dO,Krn as dP,Wrn as dQ,Qrn as dR,Jrn as dS,ein as dT,aen as dU,Sen as dV,xtn as dW,Hen as dX,Ren as dY,Rtn as dZ,Itn as d_,Bnn as da,jnn as db,znn as dc,wrn as dd,xrn as de,Srn as df,Ern as dg,_rn as dh,krn as di,Crn as dj,Trn as dk,Orn as dl,Irn as dm,Prn as dn,Rrn as dp,MJt as dq,Mrn as dr,Arn as ds,Nrn as dt,KJt as du,Yen as dv,cn as dw,hl as dx,$t as dy,Drn as dz,BGe as e,hJt as e0,pJt as e1,Zen as e2,wIt as e3,xIt as e4,aa as e5,Cin as e6,Ur as e7,kin as e8,vJt as e9,itn as eA,Tin as eB,o7t as eC,Pe as eD,Pen as eE,ptn as eF,fen as eG,uJt as eH,Een as eI,HJt as eJ,Htn as eK,Win as eL,VJt as eM,tin as eN,sen as eO,Ytn as eP,cJt as eQ,enn as eR,Hin as eS,cr as ea,Nin as eb,g7t as ec,AD as ed,Ten as ee,Fn as ef,Bn as eg,sr as eh,vo as ei,Men as ej,_in as ek,Oin as el,Min as em,Pin as en,Ain as eo,Rin as ep,Iin as eq,yJt as er,Cen as es,Btn as et,Ctn as eu,xen as ev,Den as ew,Nen as ex,stn as ey,jtn as ez,lWe as f,Q5 as g,sge as h,jGe as i,D as j,zGe as k,DGe as l,LGe as m,_nn as n,RJt as o,knn as p,mnn as q,y as r,gnn as s,Qtn as t,wnn as u,Enn as v,OJt as w,xnn as x,UJt as y,Snn as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.